Dale Lane's Q&A profile
Visual Studio Express Editions index out of range error with StringCollection
I have this error that only started occurring after I published the application. It didn't happen when I was just debugging. I've read that there is some bug with the StringCollection where you can't have a null string collection and then add a string to it later, so I came up with a way to handle that. I'm getting an "index out of range" error with this though, and it has to be in my Form1_Load event, since it happens when the form first comes up. I've looked through this and I don't know how to fix it. Any help would be appreciated. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As ...Show All
Visual Studio Express Editions notepad
Hi to all, Iam implementing a notepad application.When i seleceted from Format->font menu the fonts are applied to the existing text in the textbox.After applying i saved the application.But the selected fonts from the Font menu are not applied to the text I used the following code for saving streamwriter sw = new StreamWriter (--filename); sw.Write(textBox1.Text); sw.Close(); Please help me. Thanks in advance. Hi, In the open file dialog written this code to load the file richTextBox1.LoadFile(openFileDialog1.FileName); It is giving an exception ,File format is not valid. ...Show All
Visual Studio Bug with datetime picker?
I create report that uses stored procedure with 2 parameters. 1st parameter is datetime, 2nd is string. In preview mode I see datetime picker for 1st parameter. I pick September 1, 2005. I use Russian regional settings and date is displayed as dd.mm.yyyy (01.09.2005). It is OK. But after I click "View Report" date is changed to 09.01.2005 (January 9, 2005) and I get empty report because I have not data on this date. I click again and date is changed to 01.09.2005 (September 1, 2005) and I get report with data. I click again and date is changed to 09.01.2005 etc. If I change Standards and Formats in Regional Options to English (mm.d ...Show All
Game Technologies: DirectX, XNA, XACT, etc. rear view mirror using stencil buffer
hi all, iam displaying a vehicle rear view mirror using stencil buffer. my problem is when iam displaying this its only showing the objects which are rendered lastly. can anyone help me . or am i using wrong principle by using stencil buffer ,because iam 30 days buddy for direct3d programming. any other solutions are also welcome bye have a bug free day I am not sure what you are mean with “rendered lastly”. Do you mean that what you see depends on the order you draw it or something else Using the ...Show All
Software Development for Windows Vista Problem adding a SetState Activity in a StateMachine
Ok, this is the third time I've restarted this workflow and something in the designer has failed...how much longer can my thinning hair stand it I cannot add SetState activities. What happens is, I drop the SetState into the EventDriven handler workflow and the Properties for the SetState appear but not the graphic. If I try to change the name of the SetState activity, it errors with "Property value is not valid." In the details, it says "The given key was not present in the dictionary." What dictionary How can I make sure it is present without rebuilding the whole workflow (again) *sigh* Please help! Rich ...Show All
Visual Studio Team System Certification
Exist a certification program for Team System Beta version or other Thank at this time we are looking at beta certifications around PDC, I will blog more about it when we get closer thanks Michael ...Show All
SQL Server How can I use Microsoft SQL Server 2000 DTS Designer Components on X64 machine?
Is there a X64 version of Microsoft SQL Server 2000 DTS Designer Components from Feature pack for SQL Server 2005 I have installed an X86 version on the AMD64 machine. But when I open a sql 2000 dts package, there is always a warning window. The Message is as follows: SQL Server 2000 DTS Designer components are required to edit DTS packages. Install the special Web download, "SQL Server 2000 DTS Designer Components" to use this feature. (Microsoft.SqlServer.DtsObjectExplorerUI) at Microsoft.SqlServer.Dts.ObjectExplorerUI.LegacyActionBase.CreateLegacyDesigner() at Microsoft.SqlServer.Dts.ObjectExplorerUI.OpenLegacyP ...Show All
Visual Studio VSWebSite in VS 2005?
Is VSWebSite supposed to be used for VS 2005 automation If so, where is it documented I want to add a website to VS 2005 via automation. What is the best way to do that Thanks! Jim, I suspect Roger was referring to VSWebSite as either class or namespace in one of the IDE assemblies. On my Beta 2 installation it's called VsWebSite.Interop.dll and located in ogram Files>\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\ folder. Thought I'd point it out. ...Show All
Visual Studio 2008 (Pre-release) ContextMenu and Data?
I would like to add a ContextMenu to objects in a ListBox. These objects have a DataTemplate. I got it to add a ContextMenu to the DataTemplate so it was displayed on each item. But how can I react to any Click Event I tried to use <MenuItem Click="OnItemMenuClick" /> but how can I get a reference to the data the ContextMenu lies on top Parent properties point to nothing ... Well I'd have to think about it some more, but just like you could configure the ContextMenu in the event handler before you show it manually, you might also be able to bind it the to SelectedItem manually instead and let all the DataBinding magic declared in ...Show All
Windows Forms Sorting CategoryAttributes for PropertyGrids
This is my first post, and I just want to say that I am so excited that I found this dev forum. It will come in very handy for development. Thanks everyone for being a part of it. I wanted to talk about Sorting Categories in property grids. I have failed to find anything that tells me how to do it. I have made a properties sorting class, but not category. I have come across a way to do it. Pardon my stupidity if everyone already knows this, but for the new devs, it will help. Lets take my example: This is property grid data to be shown in a windows form property grid. I'm not going to go into the wi ...Show All
Visual C++ C2061 Compiler error
Hi. I got error message when I try to build my project "d:\Documents and Settings\Phoenix\ \My_app\autonapominalka\main.cpp(164): error C2061: syntax error : identifier 'form1'" Code sample: //-------------------------- Form * form1 = new error; //some code form1->Controls->Add(listbox);// error shows on this string form1->Show(); //----------------------------- So, I have declaration but Visual C++ thinks that form1 is undeclarated. How can i resolve the problem I use Visual Studio .NET 2003 Could you post a complete small sample code that can reproduce the issue Edit: Marking the ...Show All
Visual Studio Team System Writing custom FxCop rules ...
Hi All I would like to know if I can write custom rules for the below scenarios. 1. Finding the number of lines in a class or method 2. Given a class, can I find out the parent class (base class) or interface I am not sure if the overloaded Check method or other methods of " BaseIntrospectionRule" has the facility to implement my requirement. If any one of the community people have some solution for the above, please let me know. Thanks Thanks Michael. I just managed to sense and was preparing to experiement when I saw your response. The FullName property of BaseType gives me the base / parent class. ...Show All
Visual Studio Team System Work Item Extensibility?
Will it be possible to extend the functionality of Work Items We are looking for the following capabilities: - Creating Tasks Sharepoint list for viewing Work Items. - Adding a "notes" section to Work Items so that a collection of timestamped multi-user comments can be attached to each Work Item. - Attaching files to work items: "shared web documents" from sharepoint sites (particularly the Project's own document libraries) instead of local files ... we have many knowledge base files on our sharepoint sites that we'd like to attach to work items, but not duplicate them. ... Are these possible with the extensibility of TFS Or will we have to ...Show All
Visual C# Windows Service - multiple instances
I want to run multiple instances of the same service on one machine. So I wrote a service installer that looks for three parameters which can be passed in via the installutil.exe. So far so good, I can install multiple instances, but of course it makes no sense that they all do the same and use the same configuration. So I thought I could use the service name (property ServiceName) in the service itself to e.g. look for a configuration section in the machine.config or under a key in the registry, but if I do not set this name inside the service it is unset. Does anybody has an idea how I can get the service name from inside the servi ...Show All
Visual Basic Dereferencing A Variable in VB?
Surprised this has not come up before, but is there a way to dereference a variable in VB For example, in FoxPro I could create the following: mystring = " \\myserver\myfolder\myfilename.dbf " ... and then use it later as in: " use &mystring. " I think C/C++ have this ability also. For example, I have several properties in a class and I need to access the contents of those properties from an array of variables that are the name of the properties without knowing at runtime what the contents of the array are. Any suggestions Thanks. Strider, I used to do exactly the same ...Show All
