Hendrikbez's Q&A profile
Visual Studio Express Editions Need to display given names from Active Directory
Can anyone help me! I am using this msdn to accomplish Active Directory Authentication from ASP.NET - http://msdn2.microsoft.com/en-us/library/ms180890.aspx Thats all good. Now I need to display the "givenname" and "sn" (surname) from active Directory on to the web form of the authenticated login user. Cheers Hi, Your thread seems to be more appropriate in asp.net forum and there you may find satisfactory answers. Thank you. ...Show All
.NET Development get windows directory name
Hi, I have a Visual Studio 2005 VB.Net project. I need to access a file which is located in windows directory. How can I do that. Is there a function to get the full path of the Windows directory I saw the GetWindowsDirectory () function but I can't use it. Do I need a certain reference to a library for it or what Thanks. another approach: Dim WindowsDirectoryPath As String = Environment . GetEnvironmentVariable ( "windir" ) ...Show All
SQL Server Horizontal results
how can i use concatenation to query the results horizontally example output: CustomerID=1002, Name=Mr Anderson, City=NY Look at FOR XML as a possible solution, if you have some leeway in the format. Even the basic AUTO version will give you an XML formatted version of your rows, including the name of the column in the output: select ContactID, NameStyle, Title, FirstName, MiddleName, LastName from person.contact where contactId = 1 for xml auto XML_F52E2B61-18A1-11d1-B105-00805F49916B ----------------------------------------------------------------------------------------------- <person.contact ContactID="1" NameStyle="0" Title="Mr." FirstName="Gustavo" LastName ...Show All
Visual Studio Express Editions Forms size changed after converting to VB 2005 Express
I recently installed VB 2005 express on my new Vista OS machine. I coverted my VB 2000 projects (written on my XP machine) to VB 2005. Now all my Forms are too big to fit on the screen. What can I do to change the size of the forms so that they fit on the screen again, besides starting from scratch and redoing everything. Steve Yes!! Good Call!! I had set both machines to have the same resolution and color but somehow my new machine had either altered itself (another monitor showed up in my screen setting, not sure what that’s all about yet) or I did not save my setting properly. Saved me a lot of work Thanks Steve ...Show All
Visual C++ Platform SDK problems (VS2005 TSfSD, March '06 PSDK (windows 2003 r2))
Hi All, I'm having trouble integrating PSDK with VC++ component of Visual Studio 2005 Team System for Software Developers. After adding the include, lib and bin directories to the VC directories settings in VS, I can no longer successfully build VC++ applications, due to a whole bunch of ATL header problems. For example, If I create a new MFC Dialog based app with standard settings, attempting to build yields 123 errors, the first few of which i've posted here (for brevity) 1>------ Rebuild All started: Project: TestBuild, Configuration: Debug Win32 ------ 1>Deleting intermediate and output files for project 'TestBuild', configuration 'Debug|Win32' 1>Compiling... 1>stdafx.cpp 1>c:\program files\microsoft platform sdk\includ ...Show All
Software Development for Windows Vista Access Denied insufficient rights
This weekend we purchased the toshiba A130 loaded with windows vista. I deleted some of the programs that i wouldn't use and added my printing software with no problems. But when I tried to load my Pinnacle software I received the following message. "Access denied, insufficient rights-to install software you must have administrative rights. Please log on as Administrator and start the installation again." At that time I was the only user and already WAS the administrator. I called toshiba and spent a very long and frustrating time NOT getting helped. I tried a few more things on my own but admittedly I have very limited computer skills. Can anyone help me Thanks! I have the same problem exactly ...Show All
Windows Forms Datagridview problem
HI, i am having a problem with datagridview while adding new records. if the row being added loses focus (clicking elsewhere on the grid), the row being added is lost. Is that a property of the datagridview! or is there a way to prevent this from happening. I have seen the datagridview to drop a new record that you are adding when there is a dataerror. The error could be caused by having a null in a column that does not allow nulls. Try handling the datagridview's DataError event or give a column that does not accept nulls a value in the DefaultValuesNeeded event. ...Show All
.NET Development Reading data from Excell Sheet in VB.Net
Hi, I'm want to read data of an Excel file in VB.Net. I'm using SQL Server as my backend. I also want to know which namespace should be imported. So help me. Thanks Hi, You can connect to the excel file directly: Dim strConn As String = "Provider=Microsoft.Jet.OleDb.4.0;" _ & "data source=f:\inetpub\wwwroot\dotnetjohn\NameAndAddress.xls;" _ & "Extended Properties=Excel 8.0;" 'First DataGrid Dim objConn As New OleDbConnection ( strConn ) Dim strSql As String = "Select LastName, FirstName, Address, City, State From Addresses" lblSql1 . Text = strSq ...Show All
SQL Server AS400 member
I need to query data through SSIS from what I was told is an AS400 DB2 member table. I am assuming this is a sub-table of the main table. I was going to write a correlated sub-query in SQL to get this data, however our AS400 contracted programmer says that there is an easier way and she pointed me to the main table's member. I do not know how to go about accessing this. Has anybody had experience with this The AS400 programmer is familiar with SQL syntax, however she does not know how to have SQL grab the data from a member table. If all else fails, I will just construct my correlated sub-query. Thanks for the information. I assume you are using a multi-member physical file PF(t he AS400 refers ...Show All
Software Development for Windows Vista overload methods in WF
Hi all, i would like to know how can methods(activity) be overloaded in WF. For example i have a if-else activity, a sendMail() method. If the ToName is XXX then doSomthing() and then sendMail(XXX), else if ToName is YYY then doSomthing() and then sendMail(YYY). How can the parameter be handed over Should i use a queue for the parameter (or Dependence Property) But how can i choose at runtime the right parameter Thanks Emy_P, Just so I can understand what you have here, let me take a shot at describing what you have based on your description... You have created a custom If/Else activity: Is this derived from CompositeActivity or is this a SequentialActivity and you've dropped a base class If/Else ...Show All
Visual Studio Express Editions Ordered List in a Textbox
Below is the code to place 50 items in a Textbox/Listbox in the Listbox the items show 1 - 50 but in the Textbox they show 50 - 1 I know why it's doing this but how do I reverse it to show 1 - 50 same as the Listbox For i = 1 To 50 TextBox1.Text = (i.ToString & ") " & (arrNumber(i))) & vbCrLf & TextBox1.Text ListBox1.Items.Add(i.ToString & ") " & (arrNumber(i))) Next Dim Count as Integer = 1 For i = 50 To 1 Step -1 TextBox1.Text = (count.ToString & ") " & (arrNumber(count))) & vbCrLf & TextBox1.Text ListBox1.Items.Add(count.ToString & ") " & (arrNumber(i))) count +=1 Next ...Show All
Visual Studio Express Editions Web Browser Help
Hi, I'm trying to add alot of stuff to my web browser. I searched in google, but I didn't find anything. I tryed writting codes to see if I can get it, but I can't get it :( 1. Favorites 2. View Text Size 3. Web Browser site Name something like this (Visual Basic General - MSDN Forums - Mozilla Firefox) 4. History 5. Enter button when you type in the URL 6. Show the URl in the URL bar for every link. And I'll try to figure out the rest, because I have alot of stuff that I want to learn, but I think it's rude to ask for too much. Thanks. There is a sample VB express web browser program at http://msdn2.microsoft.com/en-us/library/3tst62z1.aspx That should help some. I have tryed it, it works. ...Show All
Visual Studio Team System Next MSSCCI Provider release
We are really being hurt by the issues with the TFS MSSCCI Provider when branching solutions and the bindings not being changed. See this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=405834&SiteID=1 Is there any ETA on when this will be available Would making a PSS call help or hinder Grant Grant, We are actively working on the branching issue in the MSSCCI provider. We hope to release the next MSSCCI provider by the end of the year or early in 2007. What environment (e.g. VS2003) and what type of projects are you using the TFS MSSCCI provider Ed http://blogs.msdn.com/edhintz ...Show All
SQL Server Transact-sql code does not work. HELP!
Hi all, I am new to transact-sql and hoped that someone here might be able to help. I have a db with a field called "part" ... part contains text in the format: xxxxx-xx-xxxxx (the number of x's before or after each hyphen vary) such that I could have xxx-xxxxx-xxx as the part. Someone wrote this transact-sql to take my current "part" field and move it to three different part fields ... a,b,c If xxxxx-xx-xxxxx was the part in the original db, then a would contain xxxxx .. b contains xx ... c contains xxxxx Make sense Here is the code. It doesn't work and I can't seem to figure out why! It looks like it is just trying to find the hyphens and cut out the text from that... but it fails with an error that say ...Show All
Windows Forms VB.NET 2.0 - Splash screen closing event?
I have a built in splash screen, and I set a handler as such: If Not My .Application.SplashScreen Is Nothing Then AddHandler My .Application.SplashScreen.Deactivate, AddressOf SplashScreen1_Deactivate End If 'And here is the sub Private Sub SplashScreen1_Deactivate( ByVal sender As Object , ByVal e As System.EventArgs) MsgBox(Threading.Thread.CurrentThread.Name) End Sub This event fires, but fires in the splash screen thread, not the main program thread. How can I detect when the splash screen closes so I can run a sub to process stuff Thanks, Rick I would have thought that it would be better to use the Sub Main() and control t ...Show All
