Search results for query: *

  1. D

    Import Excel UserForm

    I have some Excel UserForms that I developed for an application in Excel. Now I want to port the application to a VB.Net program but do not want to have to re-design all of the forms. How can I import a Userform that I designed with Active X controls into a VB.Net application?
  2. D

    Event Handler Exists?

    Thanks for reply. However, if the handler has not been added and you try to remove it, a Null exception error is generated which, of course you can trap. I just wanted to eliminate the error as it is a control that others use and it can be annoying to fill the Immediate Window with Null...
  3. D

    Event Handler Exists?

    I add an event handler in my code for a user control depending on the specific operation that is requested: AddHandler myEvent, Addressof Handle_MyEvent When the control is disposed of, I want to remove the event handler only if it was added in the first place using: If "the handler exists"...
  4. D

    Question Insert a record by using code in DataTable

    The code below will do what you want: Dimension dTable as DataTable = New DataTable ("Employees") dTable.Columns.Add("EmplID", System.Type.GetType("System.Int32")) dTable.Columns.Add("FirstName", System.Type.GetType("System.String")) dTable.Columns.Add("LastName"...
  5. D

    Question DataTable Column of Type DateTime

    Thanks to all who viewed the Question on DataTable and DateTime type. I found the error as it was in the next column type which was set up to automatically fill with a difference in dates. It was set up wrong and when I tried to set the Date Column, it caused an error when trying to set the...
  6. D

    Question DataTable Column of Type DateTime

    I have created a DataTable "dTable" and am trying to add a column of type DataTime then add a row with the DateTime column set to Jan 1, 2012. I have added several other columns of various types then added a row with the columns filled in. However, whenever I try to add a row with the DateTime...
Back
Top