problem with MDI form

  • Thread starter Thread starter touf
  • Start date Start date
T

touf

In my Form I've a combobox populated by a dataset, in the form load I set
the selectedvalue property of the combobox to -1 in order to start with no
value in the combobox, it works ok

But when I've set the MDIParent property of the form to a parent form, the
combobox is populated by the first row, and the function
"SelectedIndexChanged" is invoked.

I don't understand how the MDIParent property can change the behaviour of
the combobox...

Does anyone have the same problem, or any idea please.

Thanks
 
Touf--

I am just guessing but I suspect that the child form bubbles events back up
to the parent.

HTH.

--Mark


In my Form I've a combobox populated by a dataset, in the form load I set
the selectedvalue property of the combobox to -1 in order to start with no
value in the combobox, it works ok

But when I've set the MDIParent property of the form to a parent form, the
combobox is populated by the first row, and the function
"SelectedIndexChanged" is invoked.

I don't understand how the MDIParent property can change the behaviour of
the combobox...

Does anyone have the same problem, or any idea please.

Thanks
 
Back
Top