AUGUSTEN TECHNICAL

FRESHERS SHINE

Pages

Monday 5 January 2015

ADDING NEW FORMS IN STACK

ADDING NEW FORMS
We are going to add two new forms to our program. Click Project, and then select Add
Windows Form. This will bring up a new window that displays the different templates.
Click on Windows Form and change the name to Definition.vb.







By clicking Open you will start with a blank form just like you had in the beginning of
this tutorial.

As usual the first thing you should do is rename the form. Changing the name to
frmDefiniton will make the code we write later easier to read.
Note : When creating additional forms for this program you want to be sure to change
the ControlBox property to false because we do not want the user to be able to
click the ‘x’ in the upper right hand corner to exit the form. This is why we are
providing an Exit button.

Since these forms do not do anything other than display some text, we don’t want the
user to be able to minimize or maximize the window, so the properties MaximizeBox
and MinimizeBox should also be false. When the program is executed the upper right
hand controls will not be there.

Another property that you need to be sure to change is the FormBorderStyle, which is
up in the Appearance Section. It needs to be set to any one of the fixed styles. This will
prevent the user from resizing the form by clicking and dragging.

Go ahead and do the same thing for the About This Program form.







0 comments:

Post a Comment