Hi,
I found out how to do the DataAdapter commands but can't save changes to the database.
Can you help fix my code?
Sorry for this changed post.
This new code is based on some code from msdn. If I change more then 1 row in the DataGrid I get an error that says:
concurrency violation: the...
Hi Everyone,
I'm using oledb to populate a DataGridView with data from an MS Access database.
Can you tell me how to update the database with all changes the user makes in the DataGridView which includes inserts, changes and deletes?
The DataGridView is also using a DataView.
Thanks.
Truly...
Hi,
I think I need to re-word my question. Sorry for any confusion my previous question may have presented.
If there are 5 controls on a form and they are in a collection, how do I get the index number of the control that the user clicks on?
Truly,
Emad
Hi Sorwen,
Thanks for the reply.
It did not work maybe because I'm using an open source ribbon control and after I did a messagebox to see what sender had it showed sender=System.Windows.Forms.Ribbon which comes from that open source control. It gave me a casting error.
Is there something I...
Hi Everyone,
I would like to get the index number of a tab collection when the user clicks on a tab. I already have a click event in place.
Here is what I tried so far:
Private Sub Ribbon1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Ribbon1.Click...
Hi Everyone,
Thanks for the replies.
I tried to locate the dll files and the installer removed them which I was hoping for, but the references to the dll files still exist inside Visual Studio.
I can uncheck them but they are still listed in the dialog.
Hopefully you can help me remove...
Hi Everyone,
Can you tell me how do you remove items from the "Choose Toolbox Items" dialog?
I uninstalled some WinForms controls but the installer did not remove the items in that dialog.
Thanks.
Truly,
Emad
Hi Everyone,
I have been reading that placing all SQL queries into ref cursors is more secure than having them float around the Visual Basic exe file.
That is way I would like to know how to load data from an Oracle ref cursor into a datagrid.
For now I would use the scott, tiger default...
Hi Everyone,
I created this error handler to trap when the user types in an dependent id from a data grid view using Oracle as the database. I did it to replace the default error dialog that is displayed when an error occurs:
Public Sub DataErrorEventHandler(ByVal sender As System.Object...
Hi Everyone,
I have a scoping question.
I have 2 forms and on the main form there are several variables like this:
Public Class frmMainForm
Dim strSourceMSDataFolder As String = "c:\data\ms data"
Dim strSourceDBADataFolder As String = "C:\Data\DBA"
Dim strDestinationDrive As...
Hi Everyone,
I found out how to get the folder name into a listbox.
Here's the code I used:
Private Sub btnMaintenance_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMaintenance.Click
strDestinationDrive = Nothing
FindThumbDrive()...
Hi RiverGuy,
It's close but it would only handle click events.
The events could be anything such as a window re-size a button click, or anything else.
I'm hoping to trap both the control name that causes an even as well as what the actual event name is but I don't know which even that will...
Hi realm174,
I was able to find a solution:
Private Sub FindThumbDrive()
' Find the highest drive letter of a thumb drive inserted into the computer.
'---------------------------------------------------------------------------
For Each objDrive As DriveInfo In...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.