Click here to Skip to main content
15,902,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralHelp - Disable Ctrl - Esc Pin
Anonymous3-Jan-04 18:41
Anonymous3-Jan-04 18:41 
GeneralRe: Help - Disable Ctrl - Esc Pin
Dave Kreskowiak4-Jan-04 8:14
mveDave Kreskowiak4-Jan-04 8:14 
GeneralSending to a Web Form Pin
ProjectInsanity3-Jan-04 17:19
ProjectInsanity3-Jan-04 17:19 
GeneralBasic VB Excel Chart data selection Pin
mitreviper3-Jan-04 16:13
mitreviper3-Jan-04 16:13 
GeneralDatagrid "Edit Only" Pin
pchak3-Jan-04 8:12
pchak3-Jan-04 8:12 
GeneralRe: Datagrid "Edit Only" Pin
Guillermo Rivero3-Jan-04 17:24
Guillermo Rivero3-Jan-04 17:24 
GeneralHelp required Pin
emmshazi3-Jan-04 4:27
emmshazi3-Jan-04 4:27 
GeneralRe: Help required Pin
Guillermo Rivero3-Jan-04 17:31
Guillermo Rivero3-Jan-04 17:31 
Try this.

Public Structure uListElement
Public ID as integer
Public Name as string
Public Override Function ToString() as String
Return Name
End Function
End Structure

Now, fill the listbox1 with this structure, where each element in the structure is a ListElement, e.g.

Dim vElement as uListElement
vElement.ID=CountryCode
vElement.Name=CountryName
ListBox1.Items.Add(uListElement)

In the ListBox1 SelectedIndexChanged event, cast the SelectedItem into a uListItem and you can get the ID of the selected country. Once you have the element, you can execute a select on the datatable of the cities that belongs to the country you just selected. Then you can repeat the same for the Areas and Customers... Got the idea ?

Free your mind...
GeneralRe: Help required Pin
Member 7660843-Jan-04 17:51
Member 7660843-Jan-04 17:51 
Generaltask scheduler Pin
Vipul Bhatt2-Jan-04 18:52
Vipul Bhatt2-Jan-04 18:52 
GeneralClickity Pin
Colin Angus Mackay3-Jan-04 2:46
Colin Angus Mackay3-Jan-04 2:46 
GeneralRe: task scheduler Pin
Colin Angus Mackay3-Jan-04 2:56
Colin Angus Mackay3-Jan-04 2:56 
GeneralParameter passing and reading [task scheduler] Pin
Vipul Bhatt2-Jan-04 18:48
Vipul Bhatt2-Jan-04 18:48 
GeneralClickity Pin
Colin Angus Mackay3-Jan-04 2:46
Colin Angus Mackay3-Jan-04 2:46 
GeneralRe: Parameter passing and reading [task scheduler] Pin
Colin Angus Mackay3-Jan-04 3:01
Colin Angus Mackay3-Jan-04 3:01 
GeneralRecursive File Copy/Delete Pin
crouchie042-Jan-04 13:23
crouchie042-Jan-04 13:23 
GeneralRe: Recursive File Copy/Delete Pin
BenBadger4-Jan-04 7:15
sussBenBadger4-Jan-04 7:15 
GeneralRe: Recursive File Copy/Delete Pin
Guillermo Rivero4-Jan-04 8:00
Guillermo Rivero4-Jan-04 8:00 
GeneralRe: Recursive File Copy/Delete Pin
Anonymous4-Jan-04 10:55
Anonymous4-Jan-04 10:55 
GeneralRe: Recursive File Copy/Delete Pin
Dave Kreskowiak5-Jan-04 4:02
mveDave Kreskowiak5-Jan-04 4:02 
GeneralComparing lists Pin
Member 7476772-Jan-04 8:22
Member 7476772-Jan-04 8:22 
GeneralRe: Comparing lists Pin
mitreviper3-Jan-04 16:25
mitreviper3-Jan-04 16:25 
GeneralNeed help on DateTimePicker Pin
cometz2-Jan-04 6:25
cometz2-Jan-04 6:25 
GeneralRe: Need help on DateTimePicker Pin
sagmam23-Jul-04 6:58
sagmam23-Jul-04 6:58 
GeneralPassing Data between Windows Forms Pin
Robert Gronenthal2-Jan-04 5:28
Robert Gronenthal2-Jan-04 5:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.