How to Minimize and Maximize the Form Programmatically Using VB.Net

Submitted by: 
Visitors have accessed this post 239 times.

In this tutorial I will teach you how to minimize and maximize the form programmatically in vb.net. Many are wondering on how to do this method but I will show to you the simplest way on how to do it. All you have to do is follow the instructions that are shown below then, you are done in just few minutes. So, let’s get started.

Creating Application

Step 1

Open Microsoft Visual Studio 2015 and create a new windows form application for Visual Basic.
ps1

Step 2

Add two buttons in the Form.
ps2

Step 3

Double click the “Minimized” button and do the following codes to minimize the form when the button is clicked.

  1.  
  2. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  3. Me.WindowState = FormWindowState.Minimized
  4. End Sub

Step 4

Double click the “Maximize” button and do the following codes to maximize the form when the button is clicked.

  1.  
  2. Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  3. Me.WindowState = FormWindowState.Maximized
  4. End Sub

For any questions about this article. You can contact me @
Email – [email protected]
Mobile No. – 09305235027 – TNT
Or feel free to comment below.


Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.