Click here to Skip to main content
14,971,029 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondownload from dynamic url Pin
bapay20-Mar-12 11:18
Memberbapay20-Mar-12 11:18 
AnswerRe: download from dynamic url Pin
Bernhard Hiller20-Mar-12 23:15
MemberBernhard Hiller20-Mar-12 23:15 
QuestionTextbox numbers values Pin
Venecos20-Mar-12 7:11
MemberVenecos20-Mar-12 7:11 
AnswerRe: Textbox numbers values Pin
Bernhard Hiller20-Mar-12 23:26
MemberBernhard Hiller20-Mar-12 23:26 
AnswerRe: Textbox numbers values Pin
ProEnggSoft23-Mar-12 20:24
MemberProEnggSoft23-Mar-12 20:24 
QuestionHow to create a chained combobox Pin
braathaa19-Mar-12 16:52
Memberbraathaa19-Mar-12 16:52 
AnswerRe: How to create a chained combobox Pin
Bernhard Hiller20-Mar-12 23:34
MemberBernhard Hiller20-Mar-12 23:34 
AnswerRe: How to create a chained combobox Pin
ProEnggSoft23-Mar-12 20:01
MemberProEnggSoft23-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


'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
Membermarvolo318-Mar-12 22:56 
AnswerRe: How to create a program to sort people into groups. Pin
Chandrasekharan P18-Mar-12 23:19
MemberChandrasekharan P18-Mar-12 23:19 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo320-Mar-12 21:31
Membermarvolo320-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
Membermarvolo320-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
Membermarvolo320-Mar-12 21:25 
AnswerRe: How to create a program to sort people into groups. Pin
Prasad_Kulkarni19-Mar-12 0:14
MemberPrasad_Kulkarni19-Mar-12 0:14 
GeneralRe: How to create a program to sort people into groups. Pin
marvolo321-Mar-12 23:27
Membermarvolo321-Mar-12 23:27 
QuestionHow to Create a VB bar chart , based on the selected combobox Pin
braathaa18-Mar-12 18:20
Memberbraathaa18-Mar-12 18:20 
AnswerRe: How to Create a VB bar chart , based on the selected combobox Pin
Chandrasekharan P18-Mar-12 19:43
MemberChandrasekharan P18-Mar-12 19:43 
GeneralRe: How to Create a VB bar chart , based on the selected combobox Pin
braathaa19-Mar-12 16:55
Memberbraathaa19-Mar-12 16:55 
QuestionWhat are the methods of connection and transfer of data Pin
bapay18-Mar-12 12:13
Memberbapay18-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
Memberbapay18-Mar-12 18:45 
GeneralRe: What are the methods of connection and transfer of data Pin
bapay18-Mar-12 18:48
Memberbapay18-Mar-12 18:48 
GeneralRe: What are the methods of connection and transfer of data Pin
Chandrasekharan P18-Mar-12 20:24
MemberChandrasekharan 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.