Skip to main content

How to Add Windows Forms


Before we begin binding our database using Windows Form please take a look on this tutorial on how to add new windows forms to your project.

Windows Forms serves as a container for all the controls that you’d like to add. Examples are TextBox, Label, Button, CheckBox, ComboBox, etc.

When you create a new project, visual studio automatically provides you one windows forms which you can use right away, run it, or compile or project but without anything in it. It just a plain form waiting to be filled with controls.

To add a Windows Form

  • In Solution Explorer, right-click your project, point to Add, and then click Windows Form.

Or

  • Click Project Menu, click Add Windows Form.

    Add Windows Forms

  • Type the name of the form. This is the filename when you open it in windows explorer.

    Windows Form name

If you notice, I have a prefix for Books form. Microsoft advice that you must use a proper naming convention for every control. In this case Forms has always a prefix of “frm”

Our next topic is on How to Select Startup Form

Back to Visual Basic .NET 2008 Tutorial.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Submitted byAnonymous (not verified)on Tue, 08/30/2011 - 21:57

download thank you !

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.