U
Udi
Hi All,
I have a listbox (owner drawn) on a form.
the form is topLevel with no parent.
My problem is that I can't set the Height of neither the from or the
control to the values I want.
after I single step the following lines:
int height = 20;
this.autoCompForm.Height = height + 1;
this.autoCompForm.AutoCompListBox.Height = height;
int i = this.autoCompForm.Height;
** at this point 'i' gets a strange value, not 20 as expected.
I tried docking, it didn't help. the listbox just refuses to fit in
nicely on its form.
(In small heights, ther's always a gap between the listbox and the
form)
Any ideas?
Thanks,
Udi.
I have a listbox (owner drawn) on a form.
the form is topLevel with no parent.
My problem is that I can't set the Height of neither the from or the
control to the values I want.
after I single step the following lines:
int height = 20;
this.autoCompForm.Height = height + 1;
this.autoCompForm.AutoCompListBox.Height = height;
int i = this.autoCompForm.Height;
** at this point 'i' gets a strange value, not 20 as expected.
I tried docking, it didn't help. the listbox just refuses to fit in
nicely on its form.
(In small heights, ther's always a gap between the listbox and the
form)
Any ideas?
Thanks,
Udi.