Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: emaduddeen
  • Order by date
  1. emaduddeen

    DataGridView - How do I update an MS Access with grid changes?

    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...
  2. emaduddeen

    DataGridView - How do I update an MS Access with grid changes?

    Hi riverguy I never did that before. Could you give instructions on how to do it? Truly, emad
  3. emaduddeen

    DataGridView - How do I update an MS Access with grid changes?

    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...
  4. emaduddeen

    How do I get a user clicked on collection index number?

    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
  5. emaduddeen

    How do I get a user clicked on collection index number?

    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...
  6. emaduddeen

    How do I get a user clicked on collection index number?

    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...
  7. emaduddeen

    How do you remove items from the "Choose Toolbox Items" dialog?

    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...
  8. emaduddeen

    How do you remove items from the "Choose Toolbox Items" dialog?

    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
  9. emaduddeen

    How do you load data from an Oracle ref cursor into a datagrid?

    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...
  10. emaduddeen

    How do you trap an Oracle "Unique Constraint" error in an event handle

    Hi RiverGuy, Thanks for the code. It works well. Truly, Emad
  11. emaduddeen

    How do you trap an Oracle "Unique Constraint" error in an event handle

    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...
  12. emaduddeen

    How do you fill a listbox only with directory names?

    Hi Sorwen, Thanks for the code. I will try your version later since it uses less code. Truly, Emad
  13. emaduddeen

    Scope Question - How do you make a variable global to other forms?

    Hi Andrzejek, Hope you don't get in trouble with your boss. Truly, Emad
  14. emaduddeen

    Scope Question - How do you make a variable global to other forms?

    Hi, Thanks guys for the help. It's appreciated! Truly, Emad
  15. emaduddeen

    Scope Question - How do you make a variable global to other forms?

    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...
  16. emaduddeen

    How do you fill a listbox only with directory names?

    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()...
  17. emaduddeen

    How do you fill a listbox only with directory names?

    Hi Everyone, Can you show me the code needed to fill a listbox with only directory (folder) names? Thanks. Truly, Emad
  18. emaduddeen

    How do you know what event fired and which control fired it?

    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...
  19. emaduddeen

    How do you know what event fired and which control fired it?

    Hi Everyone, Can you show me what code to use to find out what event fires and what control triggered the event to fire? Thanks. Truly, Emad
  20. emaduddeen

    How do you locate the 1st available removable drive in code?

    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...

Part and Inventory Search

Back
Top