[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
VB_Create_Form

Creating a form in Visual Basic

What is a form?

Most Visual Basic applications are based on a form. The form is a canvas on which you paint your application. In many cases, there will be more than one form, and visual basic allows you to display or hide forms while the application is running. Closing the main from quits the application.

A form is a window - they have Minimise, Maximise, and Close buttons.

Creating a simple form
This example creates a simple form. This is one of the basic things you do when you begin developing applications in visual basic. Follow these steps:
  1. Start Visual Basic and make sure that "Standard EXE" is selected in the New Project Dialog box.
  2. Look for a small window called Properties. You'll find an entry called Caption in the table grid. Click on the cell next to it and type "My Form"
  3. Click Start from the Run menu or press F5 to run the program.
Ths program doesn't do much, but Windows has done a lot for just simply creating that small form. You can resize the window minimise it, and finally click on close button to quit the application.

last edited (May 21, 2006) by deostroll, Number of views: 884, Current Rev: 1

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.