Results 1 to 4 of 4

Thread: Minimize Window & Capture Minimize [Resolved]

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    Minimize Window & Capture Minimize [Resolved]

    2 things. 1)How would I minimize a window through code? 2)How could I detect when the user minimizes the window? Thanks.
    Last edited by jordan23; Jul 8th, 2004 at 06:20 AM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    1-
    PHP Code:
    this.WindowState =FormWindowState.Minimized
    2-
    PHP Code:
    private void Form1_SizeChanged(object senderSystem.EventArgs e)
            {
                if (
    this.WindowState==FormWindowState.Minimized)
                    
    MessageBox.Show("Window minimized");
                
            } 

  3. #3

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166
    Thanks Pirate, that makes sense. I appreciate it.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    np.

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