Frame control is gobbling up my Listbox

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?
 
G

gene kelley

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
 
K

Kevin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top