Click here to Skip to main content
15,892,161 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondownload from dynamic url Pin
bapay20-Mar-12 11:18
bapay20-Mar-12 11:18 
AnswerRe: download from dynamic url Pin
Bernhard Hiller20-Mar-12 23:15
Bernhard Hiller20-Mar-12 23:15 
QuestionTextbox numbers values Pin
Venecos20-Mar-12 7:11
Venecos20-Mar-12 7:11 
AnswerRe: Textbox numbers values Pin
Bernhard Hiller20-Mar-12 23:26
Bernhard Hiller20-Mar-12 23:26 
AnswerRe: Textbox numbers values Pin
ProEnggSoft23-Mar-12 20:24
ProEnggSoft23-Mar-12 20:24 
QuestionHow to create a chained combobox Pin
braathaa19-Mar-12 16:52
braathaa19-Mar-12 16:52 
AnswerRe: How to create a chained combobox Pin
Bernhard Hiller20-Mar-12 23:34
Bernhard Hiller20-Mar-12 23:34 
AnswerRe: How to create a chained combobox Pin
ProEnggSoft23-Mar-12 20:01
ProEnggSoft23-Mar-12 20:01 
The solution given by Bernhard Hiller works fine.

Another option is in the DataSet designer or programmatically, create a relation between Country and Region DataTables like
Relation Name: CountryRegion
Parent Table: Country, primary key: CountryID
Child Table: Region, Foreign key: CountryID


VB
'Now create a BindingSource for Country ComboBox
Dim CountryBindingSource As New BindingSource(DataSet1, "Country")
'Then create a binding source with CountryBindingSource as the parent using the relation 
Dim RegionBindingSource As New BindingSource(CountryBindingSource, "CountryRegion")
'Now set the DataSource, DisplayMember and ValueMember properties of both the ComboBoxes
comboBox1.DataSource = CountryBindingSource
comboBox1.DisplayMember = "Country"
comboBox1.ValueMember = "CountryID"
comboBox2.DataSource = RegionBindingSource
comboBox2.DisplayMember = "Region"
comboBox2.ValueMember = "RegionID"

QuestionHow to create a program to sort people into groups. Pin
marvolo318-Mar-12 22:56
marvolo318-Mar-12 22:56 
AnswerRe: How to create a program to sort people into groups. Pin
Chandrasekharan P18-Mar-12 23:19
Chandrasekharan P18-Mar-12 23:19 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo320-Mar-12 21:31
marvolo320-Mar-12 21:31 
AnswerRe: How to create a program to sort people into groups. Pin
Wayne Gaylard18-Mar-12 23:22
professionalWayne Gaylard18-Mar-12 23:22 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo320-Mar-12 20:49
marvolo320-Mar-12 20:49 
GeneralRe: How to create a program to sort people into groups. Pin
Wayne Gaylard20-Mar-12 21:16
professionalWayne Gaylard20-Mar-12 21:16 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo320-Mar-12 21:25
marvolo320-Mar-12 21:25 
AnswerRe: How to create a program to sort people into groups. Pin
Prasad_Kulkarni19-Mar-12 0:14
Prasad_Kulkarni19-Mar-12 0:14 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo321-Mar-12 23:27
marvolo321-Mar-12 23:27 
QuestionHow to Create a VB bar chart , based on the selected combobox Pin
braathaa18-Mar-12 18:20
braathaa18-Mar-12 18:20 
AnswerRe: How to Create a VB bar chart , based on the selected combobox Pin
Chandrasekharan P18-Mar-12 19:43
Chandrasekharan P18-Mar-12 19:43 
GeneralRe: How to Create a VB bar chart , based on the selected combobox Pin
braathaa19-Mar-12 16:55
braathaa19-Mar-12 16:55 
QuestionWhat are the methods of connection and transfer of data Pin
bapay18-Mar-12 12:13
bapay18-Mar-12 12:13 
AnswerRe: What are the methods of connection and transfer of data Pin
Dave Kreskowiak18-Mar-12 14:57
mveDave Kreskowiak18-Mar-12 14:57 
GeneralRe: What are the methods of connection and transfer of data Pin
bapay18-Mar-12 18:45
bapay18-Mar-12 18:45 
GeneralRe: What are the methods of connection and transfer of data Pin
bapay18-Mar-12 18:48
bapay18-Mar-12 18:48 
GeneralRe: What are the methods of connection and transfer of data Pin
Chandrasekharan P18-Mar-12 20:24
Chandrasekharan P18-Mar-12 20:24 

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.