Jump to content
Xtreme .Net Talk

trippbrown

Members
  • Posts

    6
  • Joined

  • Last visited

trippbrown's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. thanks Thanks for the help, however it was nothing of that nature. My dumbass self never noticed that somehow my Fill method was commented out. Dam comments. :) thanks.:)
  2. Any one got some ideas? Anyone?
  3. Have you tried changeing the text alignment properties of the items in question? I usually have to change mine to middle center and then realign.
  4. Thanks for the quick help. However, that gave me the same error. I think what is causing the problem is that the list box is populated VIA a SQL statement that contains a DISTINCT clause, so not all values from the table of that field are listed. I think i somehow need it to match the String that the table stores. I am not to sure about it though.
  5. I keep getting this error when I try to display data into text boxes when a user double clicks on a listing in a list box. ---Option Scrict is ON.--- Error Below: --------------------------- An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll Additional information: Cast from type 'DBNull' to type 'String' is not valid. ---------------------------- Private Sub lstProducts_DoubleClick(All the .Net Generated stuff) Dim I As Integer I = lstProducts.SelectedIndex With DsProducts1.Products txtProductID.Text = CStr(.Rows(I).Item("ProductID")) txtName.Text = CStr(.Rows(I).Item("Name")) txtDescrip.Text = CStr(.Rows(I).Item("Descrip")) cboQty.SelectedText = CStr(.Rows(I).Item("Qty")) End With End Sub Any Ideas of what is going on? Everything is stored in the table as Text.
×
×
  • Create New...