I have created one combobox.Then i added 10 , ten digit numbers.After selecting one of these numbers ,in click event of this combo box i am calling one function named Display_Operations.
In this function i am retrieving the data for corresponding selected number( from combo box).Database is SQL server.
In data base there is data for every ten digit number added to combobx.
During design time i have created one label by selecting it from tool box and dropped on to the FOM.
Now suppose there are 20 operations ( data ) for selected ten digit number.
So in function which i am calling in click event of combobox creates the array of controls i.e. i am using Load
statement.After doing this i have created 20 labels ( array of labels) and data which nothing but operation names , i am showing on caption of these labels.
Now my question is -- When i change the
number on combo box by clicking it,
I want first unload the controls ( array of labels ) created for earlier ten digit number , and then reload the controls and display the operation name
for newly selected number.
But it doesn't allow me to unload the controls on any combo box event.As we all know that any control can not be unloaded in any combobox event.
This is the customer requirement that if i change the number it should show me the operation names corresponding to that number.
What is the solution..?