trichards57's Q&A profile
Windows Forms Operation is not valid due to the current state of the object.
Somebody got a clue about this message: Operation is not valid due to the current state of the object. regards remco I'm getting the exact same error for trying to write to a VertexBuffer as well! I'm trying to write more points than 3 in the buffer for the Managed DirectX 9 SDK .... Tutorial example 2, so I can have DirectX draw it as a LineList, LineStrip, or another. How would the program 'state' know how many Vertices should be written at once It hadn't even gotten to the point where TriangleList was declared as the method desired. In fact, I commented out the line of code, and it still gives the e ...Show All
Visual Basic Iterating through text boxes using loops
**This is copied / pasted from the "Language" forum. **Moderator please leave this post here and delete the other if necessary. I'm writing a program for class (so please don't help TOO much with the logic) but I'm not familiar with all I can do with VB yet. The program is a window with 10 virticle text boxes with corresponding labels. These represent the floors of an elevator. Each text box is prepopulated with a number representing people. The elevator needs to start at the first floor, go up, stop at each floor, fill to its capacity and go back down. It then "drops the people" off on the first floor. First ...Show All
Windows Forms 2 treeviews. no event fired?
Hey I've got a form with 2 treeviews. The treeviews are used for navigation. The problem is this: When a node in a treeview is selected and I move to the other treeview and click a node. If I go back and click the node that was selected in the first treeview nothing happens... I have to first select a second node in that treeview  ...Show All
Visual Basic Control Y !!!
What have you people done to Control-Y For the past 10 years that I've used Windows this meant REDO (opposite of UNDO). In VB2005 it deletes a line. SERIOUSLY!!! not funny. HA! I gotta say I was a bit perturbed. For the longest while, I've just been using Visual Web Developer while previously using Visual Studio and have become accustomed to the Ctrl-Z, Ctrl-Y as well as them being in other apps (Office is the only one that comes to mind). Well today, I got into Visual Basic Express and was doing some undoing and redoing parts of the code and suddenly the lines would start cutting out. I didn't think ...Show All
Windows Forms How To Get Grid Current Cell Text
How can I get the DataGridView cell contents in the Current Row Column 1 I tried this but it doesnt work TextBox1.Text = CType(ProductsDataGridView.CurrentCell.RowIndex, String) & CType(ProductsDataGridView.Columns(1), String) Wouldn't ... ProductsDataGridView.Rows[ProductsDataGridView.CurrentCell.RowIndex].Cells[0].Value; work ...Show All
.NET Development Non-Blocking Sockets
I've been looking for information in regards to non-blocking sockets and I have had minimal luck. Basically what I'm trying to accomplish is create a server where I'll allow multiple connections and just echo what was recieved to the Server Console and the Client Screen. I have the basic stuff needed Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint ipLocal = new IPEndPoint(IPAddress.Any, 8221); //bind to local IP Address... s.Bind(ipLocal); //start listening... s.Listen(4); I was recently taught how to do this using blocked sockets but was then ...Show All
SQL Server Failed Remote Login to SQL 2005
Greetings, I just installed SQL2005 and moved my application database from SQL2k. I configured the server for Integrated login, enabled the remote login, and enabled the TCP/IP, and Pipes protocols (Server and client). The application connects to the database through 'Ole for SQL Server', and it utilizes a Crystal report (v8.5). I am Passing the connection string to the report through the Crystal ActiveX control. It works great under SQL2k but under SQL2005 I receive the error 'Cannot find the sever... error 20599'. The report uses the 'ole for SQL...' driver just as the main application. The application itself connects successfull ...Show All
Windows Forms Drawing reversible rectangle
I have two picture boxes on my form. One picture box is located on a scrolling panel and represents a "big map". The second picture box displays a "small map" that is subset of the "big map". What I am trying to do is display a rectangle in the "big map" that represents the area in the second picture box. The problem is that the rectangle I'm displaying with the DrawReversibleFrame() API goes away when I scroll the panel where the "big map" is displayed. I was catching the scroll event for the panel and simply trying to redraw the rectangle, but it didn't help. Private m_MapOutline As New Rectangle(0, 0, 0, 0) Private Sub ...Show All
Visual Studio Tools for Office Need guidance on which VSTO tools to use for Word template project
I am trying to implement "in place" editing of data at certain locations in a Word document - ideally using something like form fields, with XML nodes or VSTO bookmarks. The catch: I need this data to round trip to a userform or actions pane. In the past, this was not possible - when the user clicked a form field or bookmark and typed, it obliterated the bookmark, making it difficult to reliably get that information back into a recordset or form. I think the XML nodes and new bookmark objects and events will allow this, but I am not which is best suited for this project. Which technology (or combination of new technologies) ...Show All
Windows Forms How to display mdichild window over the controls hosted in mdiparent
Hi I am having a MDIParent window with some controls hosted in that.When I show a MDI Child window on that it is showing behind that controls.Is there any method to bring the MDIChild to front view Thanks in Advance Joy ...Show All
.NET Development How to create derived datagrid column?
Hi All, I am wondering if there is a way to create a derived column in the datagrid control. For example: I am creating a datatable from an ODBC data source with a few columns, one of which is a status flag that is a string displaying either "Y" or "N". I am wanting the datagrid colum to display these values as "Open" or "Closed". I can easily write a method to do this but how would I apply the return value to the grid column Suggestions Any info is greatly appreciated. Thanks! J.H. For anyone interested, I found what I was looking for using Ex ...Show All
Visual C# Getting rid of excel.exe from memory
I use excel interop to load in data from excel file. After the loading is done, I call myExcelInstance.Quit(). But in task manager I can still see an EXCEL.EXE for each file I opened, eating up a fair bit of memory. These instances don't go away until I close my application. What am I doing wrong ~S You can try to decrements the reference count of the runtime callable wrapper with the Marshal.ReleaseComObject method. Marshal.ReleaseComObject( myExcellInstance ); myExcellInstance = null ; You should release all your COM object like the _Workbook and/or _Worksheet objects. ...Show All
Visual Studio Express Editions Forms Designer
I am currently going thru the VB.Net Express Edition 2005 tutorials. In tutorial no. 2 they describe aligning controls and as you move a control a blue line appears to show you the alignment of 1 control to another. I cannot get this line to appear. Can someone tell me the setting to turn this feature on. Thank you It should just work - perhaps it doesn't work in Express It happens as you drag items, for example, place a button, then drag another button next to it. It will show the line when it gets to the right distance apart. ...Show All
Windows Forms Adding a new "blank" record to edit
I have a bunch of controls bound to a dataset. When I bring up existing data and make edits, all is well. But I'm missing the boat completely when it comes to adding a new blank record to be filled in. I try adding a new row, but just get DBNull exceptions. Where am I going wrong You're probably having the "two different&n ...Show All
SQL Server Remote Connections with SQL Developers Edition
Hi, I want to allow someone to update the data in a database being developed in SQL Developers Edition. The idea is while I'm developing the database the person who's database it is can do the data entry. The data monkey lives no where near me so I cannot keep keep updating a local copy there... I've tried to set up and connect but the server keeps refusing the connection. So question is... can SQL Developers Edition allow remote connections... and if so, which I hope it can, whats the way to go about setting it up. Far as I can tell I'm ok in regards to specifying the location of the server, the SQL user account is set up and has a ...Show All
