Visual Basic.NET (VB.NET) is a computer programming tool from Microsoft. It is primarily used for creating software to run on Microsoft's .NET runtime. One of the principal components of Visual Basic is the form. A form can be thought of as a window on which you can place interactive and non-interactive items, such as text, images, text boxes and scroll boxes.
Things You'll Need
- Visual Basic editor and compiler, such as Microsoft Visual Studio.
Creating and C losing Forms
Open up your usual Visual Basic development environment that contains the forms you want to learn how to close.
Type the following code to close the current form from within an event handler in that form:
Type the following code to close a different form from an event handler in the current form:
Substitute the text FormName for the actual name of the form you wish to close.
Tips & Warnings
- If you are using Visual Studio, typing the form name immediately followed by a period (.) will list many more functions available to manipulate a form.
- Photo Credit Jupiterimages/Photos.com/Getty Images
Restaurant Opening & Closing Procedures
A successful restaurant will run like a machine: efficient, lean and repetitive. Every restaurant must have procedures set in place for daily...
How to Disable/Enable Command Buttons in VB.net on the KeyUp Routine
Each time a user presses a key on the keyboard, the "KeyDown" and "KeyUp" events trigger in a VB.NET application. You can...
How to Program the Progress Bar in VB.net
The progress bar control in Visual Basic gives a visual representation of the progress of some function in the program. After adding...
How to Sort Columns in DataGrid
DataGrids are .NET controls that allow users to display data in a table-like fashion, but with much more functionality and options. DataGrids...
How to Disable the Task Manager in VB.Net
Windows Task Manager a program included with Windows operating systems that displays application information, such as applications open, processes, services and performance...
How to Open a Word Document in VB Net
The .NET library and its related libraries have made the integration of Microsoft Office tools and documents into your Visual Basic (VB)...
How to Compare a Date With VB.NET
In Visual Basic.Net, the date variable type stores both the date and time to a precision of less than a millisecond. Sometimes...