I solved the problem by changing the SelectionChangeCommitted to SelectedIndexChanged and pre-loading the classes when the app starts. That way, it doesn't have to make a call to the database every...
I can't use the SelectedIndexChanged event. I need the 2nd combobox to load when the first is selected. The user can press a button while focus is on the first combobox to skip to a particular...
I have 3 comboboxes (ex. State, County, City). I have code in the Combobox_SelectionChangeCommitted function to load the child combobox when the Parent is selected. If there's only 1 item loaded...
The dll project that I need is in a solution with many other projects and I can't bring in just the one I need without getting the rest. Then there's issues with services and such that I don't...
Is there an easy way to display the Line Number of where an error occurred? I'm debugging an application, but I can't run the app in the environment. I build the dll and use the dll in another...
I'm loading my DataGridView with 10 rows. 5 of those rows fit on the screen without having to scroll. The verticla scrollbar will scroll enough to see the 6th row, but will not scroll to view the...
Can the TrueValue and FalseValue for a checkbox column in a DataGridView be set in code rather than in the control properties? And without using code to add the column to the DGV? And then how to I...
I have an application that has been working in a Production environment for a few years now. I need to make some tweaks to it and I'm at the testing phase and all of a sudden, I'm getting a...
I query the database using ADO and pass the recordset to Crystal Reports. I need to close the recordset before exiting the function, but when I do, the report is blank (as if it wasn't done...
I'm using CR 8.5 with RDC and ADO, and SQL Server 2005. The pictures are .jpg's and are stored in an Image type column in a Picture table. I'm using ADO within VB to pull back a list of pictures...
I'm in the process of testing the new SQL Server 2005 database with applications that are currently running against SQL Server 7. I have the following code (using RDO, rs = Recordset, qy = Query):
...
I'm using Crystal Reports 8.5 using RDC. I have several reports in my program, some are Portrait orientation, others are Landscape. This program is distributed to about 20 different computers.
...
Just replace the x's with the correct values of the Error Codes (which you will have to look up somewhere). If you declare them in the same code module as your function, you can leave them Private...
Make sure you use Option Explicit at the top of all your code modules. This forces you to declare all variables and will error if you have a variable that hasn't been declared. If E.Hyde is correct...
To reproduce the problem, open a new project, add a Command Button and a Checkbox. Copy and paste the checkbox and click Yes when it asks if you want to create a control array. Paste all the code...
Do a search for disconnected recordset. This will allow you to query the database, close the connection, and still be able to read the recordset. Here is function I use:
Thanks vb_the_best, but that won't work for me. I have a class that gets passed a form. The class interates through each control on the form and creates a new class for each control that can be...