Is this where you're trying to display the record?
lb1.Items.Add(strNumber & strState & strManager)
If so, then it is inside an If..Then statement that depends on the value of txtStore.Text.
Without knowing what txtStore.Text is, I can't tell you if the code will work. But if you step...
Move this statement:
outside of the If...EndIf.
In the future, try setting a breakpoint and then stepping through your code. You would see that the MoveNext is never executed.
You'll have to add a DataGridTableStyle to the grid, and then add DataGridColumnStyles to the table style for each column that you want displayed. Under the column styles, you'll find a property called NullText. Clear it out or put in there anything you want. All of this can be easily...
Is this Results label databound? If so, look into the Binding.Format event here:
If you're just setting the value manually, try this:
Results.Text = (x /...
Nevermind, I think. It looks like you are checking for invalid or empty paths, but you aren't changing the return value when this happens. Try doing something like this:
Private Sub MyPictureBox_FormatImage(ByVal sender As Object, ByVal e As ConvertEventArgs)
If Trim(e.Value.ToString) <>...
If you're looking to have a menu that dynamically shows the open windows, check out this link:
I don't have anything to test this code on, but here's my best guess:
Dim b as Binding = New Binding("Image", MyDataSet.MyDataTable, "DataColumnImagePath")
AddHandler b.Format, AddressOf MyPictureBox_FormatImage
Private Sub MyPictureBox_FormatImage(ByVal...
Binding.Format is where you format your data from the database prior to displaying it to your user. For instance, a database value of 1.2 can be displayed as $1.20.
Binding.Parse is just the opposite. It "unformats" the displayed value prior to writing it back to the data source. As in the...