How to Maximize a form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Susan

    #1

    How to Maximize a form

    I am currently hiding a form until a key is pressed (I am
    using the command "this.Hide( );" to hide the form). When
    that key is pressed, I am once again showing this form,
    with the command "container.Show ();". My problem is that
    when I do this, it always brings up the form in a
    minimized state, causing the user to have to click on it
    at the bottom in the task bar. I need to have that form
    open as normal, or maximized. I tried using the
    command "container.Wind owState =
    FormWindowState .Maximized;" but that just isn't doing it
    for me. Can anyone help. I am sure it is stupidly
    simple, but I just can't get it to work.
    Thanks
  • Phlics

    #2
    Re: How to Maximize a form

    =============== =============== ==============
    You said the command "this.Hide( )" to hide the form , and using
    "container.Show " to show the form , why not using "this.Show" .

    Please try :
    this.windowStat e = FormWindowState .maximized;
    this.Show() ;
    this.Active() ;

    Regards,

    Phlics

    =============== =============== ===============

    "Susan" <susanws@hotmai l.com> ????
    news:016301c3a7 bf$29ed8550$a40 1280a@phx.gbl.. .[color=blue]
    > I am currently hiding a form until a key is pressed (I am
    > using the command "this.Hide( );" to hide the form). When
    > that key is pressed, I am once again showing this form,
    > with the command "container.Show ();". My problem is that
    > when I do this, it always brings up the form in a
    > minimized state, causing the user to have to click on it
    > at the bottom in the task bar. I need to have that form
    > open as normal, or maximized. I tried using the
    > command "container.Wind owState =
    > FormWindowState .Maximized;" but that just isn't doing it
    > for me. Can anyone help. I am sure it is stupidly
    > simple, but I just can't get it to work.
    > Thanks[/color]


    Comment

    Working...