Frame control is gobbling up my Listbox

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

I have a few frame controls on my form in my Windows Forms app. I have
a Listbox that stretches over a few of the frame controls but is
invisible until the user click a button. The problem is, when I try to
put the Listbox over the frames in the designer view, the Listbox
becomes a member of one of the frames and shows only a tiny bit of the
Listbox.
Can I prevent the frame from taking the Listbox?
 
I have a few frame controls on my form in my Windows Forms app. I have
a Listbox that stretches over a few of the frame controls but is
invisible until the user click a button. The problem is, when I try to
put the Listbox over the frames in the designer view, the Listbox
becomes a member of one of the frames and shows only a tiny bit of the
Listbox.
Can I prevent the frame from taking the Listbox?

Place a Panel Control 'in front of' the Frame Controls.
Place a ListBox Control in the Panel Control.
Set ListBox Dock Property to "Fill".
Use the Panel Control's Visible property to show/hide the ListBox.



Gene
 
I"ll try it, thanks.


Place a Panel Control 'in front of' the Frame Controls.
Place a ListBox Control in the Panel Control.
Set ListBox Dock Property to "Fill".
Use the Panel Control's Visible property to show/hide the ListBox.



Gene
 
Back
Top