Home All Groups Group Topic Archive Search About

Frame control is gobbling up my Listbox

Author
31 Jul 2006 7:46 PM
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?

Author
31 Jul 2006 9:37 PM
gene kelley
On Mon, 31 Jul 2006 19:46:06 GMT, Kevin <kev***@cfl.rr.com> wrote:

>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
Author
1 Aug 2006 1:09 AM
Kevin
I"ll try it, thanks.


On Mon, 31 Jul 2006 14:37:33 -0700, gene kelley <o***@by.me> wrote:

Show quoteHide quote
>On Mon, 31 Jul 2006 19:46:06 GMT, Kevin <kev***@cfl.rr.com> wrote:
>
>>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