CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Location
    Tallahassee, FL
    Posts
    121

    Restoring Windows

    What is the easiest way to restore a window. What I mean by that is say the user clicks on the minimize button on one form, and in another form the user clicks on a button which should bring up the other minimized form. How can one accomplish this?


    i tried the m_frmHelp.Setfocus method but that just sets the focus to the taskbar. I want the form to pop back up if it's minimized


    thankx


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Restoring Windows

    This should do the trick

    ' 0 = normal
    ' 1 = minimized
    ' 2 = maximized
    m_frmHelp.WindowState = 0




    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Jan 2000
    Location
    Tallahassee, FL
    Posts
    121

    Re: Restoring Windows

    Thank you very much!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured