Working with Forms

Form Basics

A form is a window that contains application code and other objects placed on it to create the user interface. Forms may fill the entire screen or have other forms contained with in it. Note that: Visual basic initially includes a default form Form1 file in each project.You can change the name and caption of the form to identify the purpose of the form. Every form has …

Form Basics Read More »

Form Properties

Many properties of a form affect its physical appearance. The Caption property determines the text that is shown in the form’s title bar, the Icon property sets the icon that is displayed when a form is minimized. The MaxButton and MinButton properties determine whether the form can be maximized or minimized. By changing the BorderStyle property, you can control the resizing behavior of the form. There are some specific properties …

Form Properties Read More »

The Form Events

As objects, forms can perform methods and respond to events.The Resize event of a form is occured whenever a form is resized, either by user interaction or through code. This allows you to perform actions such as moving or resizing controls on a form. The Activate event occurs whenever a form becomes active form, the Deactivate event occurs when another form or application becomes active. These events are convenient for …

The Form Events Read More »

The Form Methods

Different methods are used in forms. When you put a dot after name of the form then a popup menuis displayed. There are different methods for forms .Some of them are describing here. Show method Show method is used to display the form object. For Example to display the form frmStudents, following code is written: frmStudents.Show Hide Method The Hide method is used to hide a form. For example to hide …

The Form Methods Read More »

Setting Runtime & Design Time Properties

Visual Basic operates in three modes. 1. Design mode – used to build application. 2. Run mode – used to run the application. 3. Break mode – used for debugging application. Many properties can be set at either design time or run time. At design time controls are added to the form, their properties are set and code is written. During runtime you examine your program in action, …

Setting Runtime & Design Time Properties Read More »

Setting Start Up Form

The first form in your application is designated as the startup form. When your application starts running, this form is displayed. User will see Startup form when application starts. If you want a different form to display when your application starts, you must change the startup form. To change the startup form 1. From the Project menu, choose Project Properties. For Animated Presentation Click Here 2. Choose General tab. …

Setting Start Up Form Read More »

Scroll to Top