Jim Carnicelli's Q&A profile
.NET Development DirectoryServices - Get users from active directory
Hello! I'm using the following code to get the users of a specific active directory, but it also returns the computer names. How can I get the users only Dim myDirectory As New DirectoryEntry("LDAP://" & directoryName, sAdminUser, sAdminPassword) Dim mySearcher As New DirectorySearcher(myDirectory) mySearcher.Filter ="(&(objectClass=user)(objectClass=person))" Dim mySearchResultColl As SearchResultCollection = mySearcher.Find ...Show All
Visual Basic How do I keep my previous picture(s) from disappearing?
I have a picturebox with a background image. I display a picture (.png) with a transparent background. No problem. I display a 2nd .png picture with a transparent background. The first picture disappears! I want to keep adding pictures over the background (like layers). How do I keep my previous picture(s) from disappearing the picturebox control's image property only holds a single image...hence the ...Show All
SQL Server AdventureWorks db for 101 Samples
I'm not sure if this should be asked here. If it's the wrong place, let me know and I'll correct. I've just downloaded 101 Samples for Visual Studio 2005 . But the data access samples require AdventureWorks database which is not included in the C# sample. Who know where I can get this database It is a SQL 2005 database, I think. Thanks! You can download AdventureWorks from this site: http://www.microsoft.com/do ...Show All
Visual Studio 2008 (Pre-release) Passthrough of ASP.NET identity to WCF service layer.
I have a WCF service hosted in IIS, and an ASP.NET application that consumes it. I need to provide user-based security at both the application and service level, and so I'm trying to propogate the ASP.NET user through to the WCF service. I need to be able to do this for both Windows and Web-Forms authenticated users, but I figured Windows would be the easier win to start with. My binding is currently wsHttpBinding, and I've tried both Transpo ...Show All
Visual Studio Team System Code Analysis Policy
I was looking to create a Code Analysis Policy for Checkin but noticed that the docs are still under development. Is there a pointer to a blog anywhere on this slee, Yes, you can indeed sign up for the checkin event using the docs in the extensibility kit. I don't know for sure, but I would expect there's an example in there. There are couple of forum posts that show subscribing to events, such as this one. http://forums.microsoft.c ...Show All
Microsoft ISV Community Center Forums Please, How change a class name in VBA Excel 2003
help me Is this what you mean Select the class module in the project explorer pane of theVB editor, and in the properties pane (press F4 if it's not visible), select and edit the Name property. Keep in mind that now you have to change every reference to this class in your code. - Jon ------- Jon Peltier, Microsoft Excel MVP Peltier Technical Services Tutorials and Custom Solutions http://PeltierTech.com/ _______ ...Show All
.NET Development Partial classes documentation tags for raw XML documentation
Partial classes introduced in .Net 2.0 are very useful in many cases (beside keeping separate generated code from hand-written code). Yet, the raw XML documentation does not include any information about the partial classes. In a sense, this choice reflects the partial class semantics from the compiler viewpoint. But documentation is targeting people not the compiler, and the origin of a method in a partial class carry a lot information in itse ...Show All
Visual Studio Team System How to import TFS Users as Project Resources
I have a new TFS project which has a number of our Active Directory users assigned with permissions. Our AD Friendly names are in the form "lastname, firstname". When I Get All Tasks from TFS in Projects, each name appears as two people. (E.G. Doe, John in AD appears as users Doe and John in the Project Resource Sheet.) Is there a way to get the TFS users into Project without having to change our AD I am too small a fish to force a co ...Show All
Windows Forms How to detect any mouse click or key press anywhere, either inside or outside the application
Hi, my application needs to detect any mouse clicks and keyboard strokes. These clicks/keypress can be anywhere either inside or outside this application. Can anyone help me with this See the thread <a href="http://windowsforms.net/Forums/ShowPost.aspx tabIndex= ...Show All
SQL Server How to encorporate IF
How can I put an If statement saying If # RECORDS returned from the query below IF # records returned is > 1 then SUM(rmstranamt) AS rmstranamt10 ELSE rmstranamt AS rmstranamt10 here's my statement ------------------------- SELECT RMSFILENUM, rmstranamt AS rmstranamt10 <-----If statement goes here ...Show All
Visual Studio Express Editions External Tools
In Visual Studio 2003 in the menu Tools/External Tools... I add a menu to the File Explorer: Title: Explorer Command: C:\Windows\explorer.exe Arguments: $(ProjectDir) In VS.NET 2003 works fine, but when I do the same in Visual Basic 2005 Express Edition the external tool not works, appears a MessageBox with this message: "The path 'C:\Projects\WindowsApp1\\' not exists or not is a directory" & ...Show All
Windows Forms "The value violates the MaxLength limit of this column"
C#, VS Pro 2005, Windows app with a datagridview: Simple form with 5 fields. The database is empty. The field that generates this error is formatted varchar, length of 6. The field is the second on the form, and is the only field complained about. Tried both a combobox lookup table and typing values into the table (textbox). Same error. This has stalled me for several hours. I tried printing out a message box with the cells data, but ca ...Show All
Visual Studio Object datasources vanish from rdlc data sources in web project
Anyone having issues with their object datasources appearing and vanishing from the datasource browser I create an object for binding as a datasource in my App_Code folder, compile my web project and it appears in the datasources in the report designer. Then I will make an aspx, setup a reportviewer control for my new report, go back to the rdlc and the object datasource sometimes just vanishes. I refresh, no luck. The only solution I ...Show All
Visual Studio Express Editions Menu Bar
Hello I'm new to Visual Basic, I was wondering how can I create a Menu bar across the top of the screen in my monitor specifying font size, and font style ...Show All
Visual Studio Express Editions Value Conversion Error
Hi Whenever I retrieve a piece of information from a custom query, and then trying to add that information to a new row, I always receive a "Value of type Integer cannot be converted to 'System.Guid'" error. Does anyone know what could be the root of the problem Dim currentHighID As Integer = Me .Tbl_OrderDetailTableAdapter.GetMaxID newRow.ID = currentHighID+1 <<line with error ...Show All
