Click here to Skip to main content
15,790,135 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondownload from dynamic url Pin
bapay20-Mar-12 12:18
bapay20-Mar-12 12:18 
AnswerRe: download from dynamic url Pin
Bernhard Hiller21-Mar-12 0:15
Bernhard Hiller21-Mar-12 0:15 
QuestionTextbox numbers values Pin
Venecos20-Mar-12 8:11
Venecos20-Mar-12 8:11 
AnswerRe: Textbox numbers values Pin
Bernhard Hiller21-Mar-12 0:26
Bernhard Hiller21-Mar-12 0:26 
AnswerRe: Textbox numbers values Pin
ProEnggSoft23-Mar-12 21:24
ProEnggSoft23-Mar-12 21:24 
QuestionHow to create a chained combobox Pin
braathaa19-Mar-12 17:52
braathaa19-Mar-12 17:52 
AnswerRe: How to create a chained combobox Pin
Bernhard Hiller21-Mar-12 0:34
Bernhard Hiller21-Mar-12 0:34 
AnswerRe: How to create a chained combobox Pin
ProEnggSoft23-Mar-12 21:01
ProEnggSoft23-Mar-12 21: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 23:56
marvolo318-Mar-12 23:56 
AnswerRe: How to create a program to sort people into groups. Pin
Chandrasekharan P19-Mar-12 0:19
Chandrasekharan P19-Mar-12 0:19 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo320-Mar-12 22:31
marvolo320-Mar-12 22:31 
AnswerRe: How to create a program to sort people into groups. Pin
Wayne Gaylard19-Mar-12 0:22
professionalWayne Gaylard19-Mar-12 0:22 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo320-Mar-12 21:49
marvolo320-Mar-12 21:49 
GeneralRe: How to create a program to sort people into groups. Pin
Wayne Gaylard20-Mar-12 22:16
professionalWayne Gaylard20-Mar-12 22:16 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo320-Mar-12 22:25
marvolo320-Mar-12 22:25 
AnswerRe: How to create a program to sort people into groups. Pin
Prasad_Kulkarni19-Mar-12 1:14
Prasad_Kulkarni19-Mar-12 1:14 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo322-Mar-12 0:27
marvolo322-Mar-12 0:27 
QuestionHow to Create a VB bar chart , based on the selected combobox Pin
braathaa18-Mar-12 19:20
braathaa18-Mar-12 19:20 
AnswerRe: How to Create a VB bar chart , based on the selected combobox Pin
Chandrasekharan P18-Mar-12 20:43
Chandrasekharan P18-Mar-12 20:43 
GeneralRe: How to Create a VB bar chart , based on the selected combobox Pin
braathaa19-Mar-12 17:55
braathaa19-Mar-12 17:55 
QuestionWhat are the methods of connection and transfer of data Pin
bapay18-Mar-12 13:13
bapay18-Mar-12 13:13 
AnswerRe: What are the methods of connection and transfer of data Pin
Dave Kreskowiak18-Mar-12 15:57
mveDave Kreskowiak18-Mar-12 15:57 
GeneralRe: What are the methods of connection and transfer of data Pin
bapay18-Mar-12 19:45
bapay18-Mar-12 19:45 
GeneralRe: What are the methods of connection and transfer of data Pin
bapay18-Mar-12 19:48
bapay18-Mar-12 19:48 
GeneralRe: What are the methods of connection and transfer of data Pin
Chandrasekharan P18-Mar-12 21:24
Chandrasekharan P18-Mar-12 21: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.