hi,
how can I arrange my UI. which controls I shoud use?
My requirement is that in a main form, there is a panel at the North position.
When I press some button, I want to create another container in the main
form which is under the above panel and contains many buttons.
how can I do that? use Form or Panel or others?
thanks in advance!

Re: A problem in my program by Tim

Tim
Tue Apr 04 19:56:38 CDT 2006

A Panel is a good container control. What, specifically, are you struggling
with? Is it dynamically creating content, or something else?

--
Tim Wilson
.NET Compact Framework MVP

"liugeng" <liugeng@discussions.microsoft.com> wrote in message
news:570FAF74-1485-425D-822E-CF22A86E7B73@microsoft.com...
> hi,
> how can I arrange my UI. which controls I shoud use?
> My requirement is that in a main form, there is a panel at the North
position.
> When I press some button, I want to create another container in the main
> form which is under the above panel and contains many buttons.
> how can I do that? use Form or Panel or others?
> thanks in advance!



Re: A problem in my program by liugeng

liugeng
Tue Apr 04 20:38:02 CDT 2006

Using panel, I can create it duing the runtime. I want to reduce the use of
memory.
But, how can I generate the mothod which is used by the click event of a
button that is concluded in the new panel.

On the other hand, is it able to use a panel just like a dialog, because i
want to enable the user use the panel only, when the panel is opened like a
"modal dialog"



Re: A problem in my program by Tim

Tim
Tue Apr 04 21:21:10 CDT 2006

> But, how can I generate the mothod which is used
> by the click event of a button that is concluded in
> the new panel.
You'll need to code the method up front and then dynamically hook/unhook the
Buttons to/from this method.

> On the other hand, is it able to use a panel just like a
> dialog, because i want to enable the user use the panel
> only, when the panel is opened like a "modal dialog"
You can place all the Form content in one Panel and then disable that Panel
when the other "modal" Panel is shown.

--
Tim Wilson
.NET Compact Framework MVP

"liugeng" <liugeng@discussions.microsoft.com> wrote in message
news:23A2747D-3524-4F23-A557-EF1FE89C252F@microsoft.com...
> Using panel, I can create it duing the runtime. I want to reduce the use
of
> memory.
> But, how can I generate the mothod which is used by the click event of a
> button that is concluded in the new panel.
>
> On the other hand, is it able to use a panel just like a dialog, because i
> want to enable the user use the panel only, when the panel is opened like
a
> "modal dialog"
>
>