Patrick van Strien's Q&A profile
Visual Studio Team System Can Field "Assigned to" in WIT show account name instead of account ID
currently, our account ID were already created. and its rule is strange. for example account ID is LSan123, the related account name is SanLihua. So the account ID is not readable. it is difficult to associate the account ID with account Name. So we want that the "Assigned to" field list Account name, instead of account ID Can anybody tell me how to show account name in "Assigned to" field Hi, There is no way to switch to display names in beta3, but this feature is coming soon - it will be available in the release version of V1. The following blog has an excerpt from an email by Brian Harry, outlining the pl ...Show All
Windows Forms DropDown - easy newbie
Hello all, Can someone please tell me how I can implement a simple design time dropdown for a property of my control. I can not seem to find any examples of this. I need to place two possible values in a dropdown. I can get my property to show, but is just has an editable textbox. Thanks for any help, Troy thanks Tony, much ...Show All
Visual Studio EnvDTE80.Debugger.CurrentProcess, Process2.Attach2 questions
1. Is the correct sequence to attach to process: Process2.Attach2("Managed"); EnvDTE80.Debugger.CurrentProcess = p; or the other way around 2. Why are Process2.Break or EnvDTE80.Debugger.Break throwing COM exceptions First one says something about not supported. 3. Are these methods asynchronous i.e. does the attached process continue on executing Is it possible to attach in a way so that after attaching, the debugger breaks into the process 4. Why are breakpoints not honoured after attaching At least that is what I am seeing Thanks Pawan You have asked these questions in multiple posti ...Show All
.NET Development How to insulate the client from poor network reliability?
We are developing some in-house ERP applications, that will use an WinForms UI and an IIS-hosted Web Service. The clients will be using a wireless network that is prone to alot of interference. I wish to ensure that the request and response are not corrupted due to network interference. What would be the best way to accomplish this I imagine some form of checksum on the SOAP messages would suffice. Is something like this built into web services via VS 2005 If not and I have to implement it myself, what would be the best way to go about accomplishing this FYI, I am accessing the web services via a proxy c ...Show All
Visual C# TreeView Question Pt2
Ok, my last question was answered quickly and efficiently like ALWAYS, and I appreicate the help so much. I have another question tho. In my tree I have 3 root directories. ("Week1", "Week2", "Week3"). Now how do I make it so the user cannot "branch out" the week2, and week3 root directories Hi, you can try the following: 1) add an event handler for the BeforeExpand event of the treeview e.g. treeView1.BeforeExpand += new TreeViewCancelEventHandler (treeView1_BeforeExpand); 2) add event handling code as follows: void treeView1_BeforeExpand(object sender, TreeViewCancelEventArgs e) { if (e.Action == TreeViewAction. ...Show All
SQL Server RAPI fails on CeMountDBVol (WinMobile 5)
My PC app uses RAPI to install files to a CEDB database on Windows Mobile devices. Works for PPC 2002, 2003 devices, ActiveSync v3.8 and 4.1 On Windows Mobile 5.0 devices with AS 4.1, RAPI fails on CeMountDBVol with an ERROR_INVALID_PARAMETER. What needs to be done to correct this I have read about RAPI Security policy, but this case doesn't seem to apply. I am loading RAPI DLL dynamically. ex: bResult = (*pCeMountDBVol)(pDBguid, // guid of mount DBVolumeFullName, // full path and name of database volume OPEN_ALWAYS)); // flags I didn't think that there were secur ...Show All
Visual C# Copy Local Fails
I have a large solution (16 c# dll projects, 1 c# exe project) where the dll projects are project references of the exe project. I have set copy local true for all the projects. The problem is on alternating rebuild-all builds one or two of the 16 dll's are not copied into the exe's bin/debug directory. On the good build, all references are there and on the next build, some of the dll's are missing. Any suggestions SB The problem was fixed by toggling the references to copy local = false and then back to copy local = true. This causes the following entry to be written into ...Show All
Visual Studio Tools for Office CommandBar problem, help please????
Hi I have made my own commandbar with VSTO, and it works perfekt in all scenarios but one, which I can seem to fix. The one scenario taht doesn't work is when I open several windows in Outlook, with the "New Mail" button. Only the first window opened will contain the commandbar, all other windows will not. My code is this: private CommandBar _armada; private Inspectors _inspectors; private CommandBarButton _sendButton; private void ThisApplication_Startup( object sender, System. EventArgs e) { _inspectors = this .Inspectors; _inspectors.NewInspector += new InspectorsEvents_NewInspec ...Show All
.NET Development '\0' in xml string
hi i am reading an xml document from a string which i receive bytewise from the network. the string is assembled out of char like that s\0e\0n\0d\0 for "send" for example. i really don't know how the '\0' came in there, but so far they didn't bother me. but no with an xmldocument they do. if i try to load the string with either document.LoadXml(string) or document.innerXml = string then i get an exception saying "name cannot begin with '.' character, line 1, position 2", so there seems to be a '.' right where the \0 is in the string (so my assumption is that \0 stands for a '.', but i am really not that good at this chara ...Show All
Visual Basic Automatically Declare and Assign in Default
Good, if i compare (=, < ,>) an objec t to another that have been already declare or assign , this first object without declaration must take the type default of the other which has been declared and assigned. this operation make short line to type. Maybe,no thanks. I'm not quite sure either, but here is one way you could address it. For an optimization, I defined an explicit default value for types using Constants. Dim i1 as Integer = 1 Dim i2 as Integer = 2 Const defaultInteger As Integer = 0 If i1 < i2 Then i1 = defaultInteger End If & ...Show All
Visual Studio Team System Error You are not a valid account when accessing a team project
Hello, We have just set up a Team Foundation Server, it appears that all the users have been setup correctly, but when I try to access a team project from my local machine using my windows login I receive the error "you are not a valid account", so although things look ok they are probably not. I would appreicate any suggestions or assistanct in resolving this issue. Thanks! Catherine Hello Bruce, Thanks for your reply, but after reviewing the details pursuing this as a solve this solution isn't very comforting. According to Buck Hodges, http://blogs.msdn.com/buckh/archive/2005/07/11/437820.aspx , the July CTP ...Show All
.NET Development ASP.Net 2.0 Context.User not set in AuthenticateRequest
Been using the following code in a VS2003 site for years upon using it in VS2005... Checking Context.User.IsInRole before leaving the event gives me one value, one debugger step more, in the Page_Load event of the page, and Context.User.IsInRole gives something completely different. It appears to me that the following code is no longer updating Context.User. Any ideas rprince@radiaInteractive.com protected void Application_AuthenticateRequest(Object sender, EventArgs e) { if (Request.IsAuthenticated) { // Get user roles string[] roles = ((System.Web.Security.FormsIdentity) Context.User.Identity).Ticket.UserData.Split(';'); // Create ...Show All
Visual FoxPro Path settings in Environment Manager
I cannot get foxpro to save the path settings in the Environment Manager, every time I exit out and return the path is gone. Any ideas LOL! I think I may need to stop drinking 15 cups of coffee before noon at this end... seemed like a reasonable amount of code at the time. I just read a post by Tamar over on tek-tips that included Home(7) in it and thought "I think maybe I should just do that from now on". <g> Thank you for posting the abbreviated version. ...Show All
Visual Studio Team System Beta 3 Setup Error: Windows SharePoint Services is not configured as recommended by Team Foundation Server
I am trying to install Team Foundation Server Beta 3 as single server installation and installed all required software components. However, during the installation, it gives me "Windows SharePoint Services is not configured as recommended by Team Foundation Server" error under "Recommened Components" dialog box. I exactly have followed an instruction specified in setup guide for Team Foundation Server Beta 3 for SharePoint services installation. Could anybody tell me what the problem is Thanks in advance. Eric Read the installation guide. "When the installation is complete, a Web browser window opens and dis ...Show All
Visual C# How to find registered event handlers?
Hi, I'm trying to determine if an object has any event handlers registered on it. The reason I need this, is to not let an object to register one single event twice. this .menu.BeforePopup += new CancelEventHandler(menu_BeforePopup); // OK this .menu.BeforePopup += new CancelEventHandler(menu_BeforePopup); // Don't let it happen twice Any help would be great Hi Patrik, and what is here the "anEvent" Is it the event itself or the event handler I just can't call GetInvocationList() on any of events.. ...Show All
