Combo Box

  • Thread starter Thread starter Nathan Carroll
  • Start date Start date
N

Nathan Carroll

Problems with Combobox. When I bind like below. I am unable to use bm. But
as soon as I take the binding of the Combobox out bm works as it should.

bm = God.BindingContext(God.DataSet11.CodeLibrary)

With Me
.LanguageProgramID.DataBindings.Add(New
System.Windows.Forms.Binding("SelectedValue", God.DataSet11,
"CodeLibrary.LanguageProgramID"))
.LanguageProgramID.DataSource = God.DataSet11.tblLanguage
.LanguageProgramID.DisplayMember = "LanguageProgram"
.LanguageProgramID.ValueMember = "LanguageProgramID"
End With
 
When I did this I got functionality back from my from my bm, but combobox
was uneffected by record movement.

bm = Me.LanguageProgramID.BindingContext(God.DataSet11.CodeLibrary)
With Me
'.LanguageProgramID.DataBindings.Add(New
System.Windows.Forms.Binding("SelectedValue", God.DataSet11,
"CodeLibrary.LanguageProgramID"))
.LanguageProgramID.DataBindings.Add("SelectedValue", God.DataSet11,
"CodeLibrary.LanguageProgramID")
.LanguageProgramID.DataSource = God.DataSet11.tblLanguage
.LanguageProgramID.DisplayMember = "LanguageProgram"
.LanguageProgramID.ValueMember = "LanguageProgramID"
End With
 
Hi Nathan,

Try changing God to TheDevil. That'll make it run wickedly.

SCNR ;-)

Regards,
Fergus
 
FYI dim WithEvents bm As BindingManagerBase


i switched
bm = God.BindingContext(God.DataSet11.CodeLibrary)
to
bm = me.languagesprogramid.BindingContext(God.DataSet11.CodeLibrary)
and got functionality back from my bm but combo still not changing positions


additionally in the bm buttons for recordmovement I did:
Me.LanguageProgramID.SelectedIndex += 1 which forced the combo to move
but is there something I am missing?
 
Back
Top