Benjamin Wagner's Q&A profile
Visual Studio indenting in different editors
Hi, i have given indentation to my editor at the time of parsing by capturing the charcters in OnCommand method and then applying edits on textspan and it is doing perfectly fine. But the problem i am facing now is that when i opens more than one file of my editor in one project in expiremental hive i am not able to get indentation in all of the files but in only one file which was opened with the adding of the new project. Plz tell me how can i get the solution. Thanx in advance.. Have you attached your command filter to all views If I understand your problem correctly, it sounds like your command filter i ...Show All
Windows Forms listbox issues
this is driving me up the wall. when i modify a listbox's item collection, and this happens to change to selected index, the selectedIndexChanged state does not fire! so, if i do a listBox.clear() or a listBox.remove(), selectedIndexChanged doesn't do a thing. how can i listen for changes to the listBox items collection or get the listBox to tell me about any change to its selection state, regardless of whether or not it come from win32 events or programatically thanks in advance! it doesn't seem to, as that looks like its for binding to datasources and for binding controls. good idea, though. and maybe there is ...Show All
Windows Forms Detect Listview ColumnHeader Right Click
I would like a different context menu to appear when a Listview's ColumnHeader is right clicked. This question I found on microsoft.public.dotnet.framework.windowsforms.controls is the behavior I'm interested in achieving: "Is there a preferred and/or correct way to distinguish a Right Click on a list view's column header versus the list itself Checking the ContextMenu.SouceControl property  ...Show All
Visual Studio Team System UsePropertiesWhereAppropriate vs PropertiesShouldNotReturnArrays
Hi, I'm converting some code to match FxCop rules but I've one problem with 2 looping rules. Here is the code : public decimal[] GetValues () { return m_values; } public void SetValues (decimal[] value) { Debug.Assert(value != null && value.Length > 0); m_values = value; } Warning message is : Cause: A public or protected method has a name that begins with "Get," takes no parameters, and returns a value that is not an array. but THIS IS AN ARRAY what is the solution I can't use property because I'll get a warning that I use an array ...Show All
Visual Basic Creating Control Arrays!
How can i create a control array in VB 2005 If I convert a VB 6 project into VB 2005 the control that's in an array has an extra property in the misc sections called Index on Text1 or what ever the control is called. But when I copy the control into another VB 2005 project it no longer has that property! How can i create this in another project I read http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=67447&SiteID=1 but it did not answer my question. Thanks! This feature is no longer support in VB.NET. I've just found a link. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=263432&SiteID=1. ...Show All
Visual Studio Team System "The process cannot access the file" during GET
I get the following error everytime I do a GET (latest or specific): C:\Q3\webroot\aspnet_client\aaa.js: The process cannot access the file because it is being used by another process. I get the same error in the output window with multiple files... Some files are placed in my workspace correctly but the ones with this error are missing. (I'm using Beta 3 refresh) Buck Hodges wrote: Hmm, there's something else going on here, but it's a mystery to me right now. In tf.exe.config over in c:\program files\microsoft visual studio 8\common7\ide, you'll find a commented-out diagnostics section. P ...Show All
SQL Server Regenerating Package Id's
I noticed that when you copy/paste your packages the package ID stays the same as the original. This can be a problem when reading reports and such... I recently saw a webcast in which there was a brief talk about this problem and the workaround was to regenerate the package ID's, however, no explanation on how to do so. Does anyone know how to regenerate package id's thanks in advance, Jason Software: SSIS JuneCTP This is all well and good, but what about task IDs in those copied packages See the other thread just started on this problem... Task IDs are read only. ...Show All
Software Development for Windows Vista Problems with DataTable as Property
Hi, I created activity with property DataTable (dependency property) and I want to bind it with DataTable in main workflow, but when I click on properties window on this property I do not have options to bind it. When I change this property from DataTable to string or XmlReader it works, but with DataTable it does not. Any help how to pass from one activity to another DataTables Thanks for any advice. Peter same problem here. i cannot bind any collections; only 'simple' datatypes, like strings, ints etc... ...Show All
.NET Development comdlg32.ocx error
what is it and what can i do to fix it I am getting this error when I create a program on my PC, which has SP3, and try to execute it on my client's computer, which has SP2. I'd like to get the SP2 version for this project but to keep the SP3 version for other applications. Is there a way ...Show All
Windows Live Developer Forums MSN Messenger - "The following message could not be delivered to all recipients"
Hello, I've had masive problems with people trying to contact me getting the "The following message could not be delivered to all recipients" error messages. I am signed in, talking to other people but when some people talk to me they get that. What's worse, other times when people talk to me they don't get an error message and I never receive their messages. I have UPnP enabled through the router and the protocol installed on local computers. All firewalls are disabled and port forwarding enabled. Just the same, I never had to do any of this stuff and I could always use MSN fine. I have installed Windows XP Pro SP2 with t ...Show All
Visual Studio Express Editions Connecting to access mdb file problem.
I am having some trouble connecting to my Access Database from Visual Studio Express 2005. I can add a connection if it is a sql database, but when i change the Datasource to the access option and hit ok i get a window that allows me to change my Connection string, and thats it. If i cancel it exits the wizard. Also the only data provider i have is .net framework provider for ole db. Should i have a second provider The other software i have installed is access 97,and access 2003 both with their corresponding developer software. I also have an educational version of visual studio .net 2003 and i can connect to the db using . ...Show All
SQL Server Restoring a primary log shipping database - will it ship ?
Hi, If I perform a point in time restore on a database that is currently a primary log shipping database, will the rollback be reflected on the secondary servers or are extra steps neccesary to accomplish this Thanks. ...Show All
Visual Basic How do you get the "Solution Configurations list box" back? HELP!!!!!!!!!!!!!!!
I need to switch a program from debug to release and ofcourse in the help it states: "On the Standard toolbar, click Debug or Release from the Solution Configurations list box." Only it isn't on the standard toolbar anymore nor is it under the add remove buttons pulldown menu. It was there when I installed VS 2005 Beta and I didn't remove it but it seems to have disappeared on it's own and I can't see where to get it back and under the projects property window it isn't available and no where in help does it say how to get the listbox back to selct Debug or Release HELP!!!!!!!!!!!!!!!!!!!!!!! It sou ...Show All
Software Development for Windows Vista Custom activity based on HandleExternalEventActivity
I would like to create a custom activity that responds to external events and then executes a sequence of activities. I initially created an activity derived from a sequence and added my HandleExternalEventActivity at the start of the sequence. However, because sequence does not implement IEventDriven I can't add it into an EventDrivenActivity sequence and therefore can't use the Listen shape to respond to my external event or something else. So, at the moment I have derived from HandleExternalEventActivity but can't figure out how to execute my sequence of follow on activities. One idea I had was to use WorkflowChanges to dynamically ...Show All
SQL Server XML source
I used a URL to xml feed as source and it worked great. A nother URL I visit requires me to add the lastvisited time to the URL. Any suggestions how to do this in SSIS (Assume I can select time lastvisited from database but how do I add it to the url and make it execute every 5 min for example) Regards, Throstur I'm assuming the URL is in the connection string of an http connection manager, is that correct If so, you can use an expression on the ConnectionString property of the connection manager to set it to whatever you want. If you need any help in doing that then reply here but to get you start ...Show All
