Program of window-state in Visual Basic


1.Start Visual Basic and pick “Standard Exe” from the list of new projects.

2. Go to the properties window(on the right) and find the caption property for the main form (Form1).

3. Add four Button to the form by clicking the by clicking the  tool   and then drawing on the form.

4.Go to the properties window and change the caption property for max(Button1),mini(Button2),restore(Button3),exit(Button4).

 

 

 

 

 

 

 

4.  Double click the max button . This will bring up the code-view Now, double window. Type in the following code into the Command1_Click() subroutine shell that’s generated for you:

 

 

 

 

 

 

 

 

5. At this point, press <f5> key to  run the program and select the option to see what happens

 

 

 

 

 

 

 

6. Click on max Button.

 

 

Comments are closed.