Disappearing .Text

  • Thread starter Thread starter SteveKing
  • Start date Start date
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.
 
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.
 
Back
Top