Disappearing .Text

S

SteveKing

My vb.net application accesses a SQL Server database and binds data to
combobox .Text properties. Some form combobox and textbox controls are
automatically populated based on information discovered in the database. I
use a class to return the data values and add them to a combobox. When the
user selects a value the SelectionChangeCommitted fires and I CType the item
to the class. Values are then successfully used to populate the .text
properties of two other controls. When I move the focus off the combobox I
used to perform the selection, all the .Text values disappear. I've verified
no other form event causes them to be nulled and debugged from the End Sub on
the SelectionChangeCommitted event and have not been successful in finding
the cause. It sounds like an out-of-scope problem but I convert to strings
before making any assignments. Any help would be appreciated.
 
S

SteveKing

SteveKing said:
My vb.net application accesses a SQL Server database and binds data to
combobox .Text properties. Some form combobox and textbox controls are
automatically populated based on information discovered in the database. I
use a class to return the data values and add them to a combobox. When the
user selects a value the SelectionChangeCommitted fires and I CType the item
to the class. Values are then successfully used to populate the .text
properties of two other controls. When I move the focus off the combobox I
used to perform the selection, all the .Text values disappear. I've verified
no other form event causes them to be nulled and debugged from the End Sub on
the SelectionChangeCommitted event and have not been successful in finding
the cause. It sounds like an out-of-scope problem but I convert to strings
before making any assignments. Any help would be appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top