CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2009
    Posts
    61

    Angry C# Minimize on button click!

    Hey guys!!

    Could someone explain to me how i make on button_click close my application? Im working in visual C#.

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: C# Minimize on button click!

    If it is a Winform application and you are just using one form, you can simply write this.Close();.

  3. #3
    Join Date
    Nov 2009
    Posts
    61

    Re: C# Minimize on button click!

    Arh ment Minimize xD

  4. #4
    Join Date
    Jun 2008
    Posts
    2,477

    Re: C# Minimize on button click!

    Code:
    form.WindowState = WindowState.Minimized

  5. #5
    Join Date
    Nov 2009
    Posts
    61

    Re: C# Minimize on button click!

    Big ed thanks ;D

Tags for this Thread

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