Question on structures....

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

I am missing something here and appreciate any help.

I am using a structure of states. I assign the datasource to 2 independent
combo boxes (component one) on my form. When I change the selected
state in, say, the cboHmState combo box, it also changes in the cboMlState
combo box.

How do I unlink this dependency I did NOT want in the first place? Please
help.

Thanks, W.

cboHmState.DataSource = States 'Populate the list
cboHmState.Splits(0).DisplayColumns(0).Visible = False
cboMlState.DataSource = States 'Populate the list
cboMlState.Splits(0).DisplayColumns(0).Visible = False
 
This is because you are using the same binding context, therfore the
position in the binding context ( Selected item ) will be reflected in the
other.

Try adding 'New' bindings for each ComboBox1.DataBindings.Add( New
Binding( . . . . .

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
Back
Top