Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text box bound to combobox text property does not update

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
Here is the binding statement I am using in the form load event:
Code:
 Me.txtCustomer.DataBindings.Add("Text", Me.cboCustomers, "Text")


Have a great day!

j2consulting@yahoo.com
 
Are you using McAfee Antivirus?

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
This is the fifth time a forget to ask this question about mcAfee.. Maybe is this the error-cause because the code provided works fine.

At least let me catch the next question... the patch is in the company's page.
 
This doesn't actually sounds specificly like the McAfee issue, but it relates with the combo box and it appears to work from somepeople.

If the code works in someplaces, but not others, the problem is most likely environmently based.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
It is definitely NOT working, it opens OK with the first one selected but subsequent selection changes in the combobox are not reflected in the text box.

Am I correct in my understanding that the data binding is all that I should have to do? I have set data bindings for List/Combo boxes using DataSource, ValueMember and DisplayMember, but I haven't done many property to property bindings so I want to make sure I'm not missing anything simple.

What is the McAfee connection to this? Thanks!

Have a great day!

j2consulting@yahoo.com
 
There's a bug in a a version of McAfee that was screwing up text displays in combo boxes, list boxes, and message boxes in .Net, data would be bound correctly, and you could check the value and it would appear correct, but it wouldn't be displayed. There's a patch on their website. Like I said, I'm doubtful that it is the culprit here, but it's something I like to check anytime there is a combobox issue ;)

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top