I am having all kind of trouble here today with my combobox. So, I am hoping one of you have had a similar problem and could help. I have a really basic form with 4 controls...2 Comboboxes and 2 Textboxes.
When the screen opens, the 2 Comboboxes are loaded with the valid values and then the last visited record is loaded on the screen. This is all good and works great. When the Find MenuEvent is selected, I run a routine to clear the datasources attached to all 4 of the controls and then set the cursor position. All the data is gones from the screen. Here is where the problem is...when I execute the FIND stepping through the code, the data is still hanging around "behind the scenes" for my comboboxes. Here is the code I use to check for what the User has selected in the Combobox:
Dim UserCombo As SAPbouiCOM.ComboBox
UserCombo = PrintForm.Items.Item("cmbUsrCode").Specific
Dim User As String = UserCombo.Selected.Value
Nothing is on the screen but User is showing the value that use to be on the screen before I ran the Cleardatasources behind the Find MenuEvent.
This is really perplexing to me on how fix this.
Any help is appeciated,