Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk2 min

What Is a Visual Basic Control? Definition and Examples

In Visual Basic Windows Forms, controls are the components on a form that display information, accept input, or let users initiate actions.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In a Visual Basic Windows Forms application, a control is a user-interface component placed on a form to display information, accept input, or let the user take an action. A label, text box, check box, button, and data grid are all examples. In this context, “control” describes a UI component—not a special Visual Basic keyword.

What a control does on a form

A Windows Form is the visual surface of an application; controls are the components arranged on it to build the interface. For example, a form might use labels to identify fields, text boxes to collect information, and a button to start an operation. Microsoft describes a Windows Forms control as “a discrete user interface (UI) element that displays data or accepts data input.” Microsoft Learn’s Visual Basic Windows Forms overview explains the relationship between forms, controls, and responding to user actions.

Examples of common Visual Basic controls

Controls have different purposes. Choose one according to the information the interface must show or the choice or action it must support.

Control Typical purpose
Label Displays explanatory or read-only text.
TextBox Accepts or displays text.
CheckBox Lets the user turn an option on or off.
Button Lets the user initiate an action.
DataGridView Displays data in a customizable table.

Microsoft groups Windows Forms controls by tasks such as displaying data, setting values, grouping interface elements, and providing help. Its catalog also notes replacements for some superseded controls, so a historical example is not automatically the best choice for a new interface. See Controls by Function – Windows Forms.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How controls are added and respond to users

In Visual Studio, a developer can place controls on a form with the Forms Designer or create and manage them in code. Controls can respond to user actions through events: for instance, clicking a button can raise an event that application code handles. This event-based pattern connects what the user does in the interface to what the program does next. Microsoft’s Windows Forms controls overview covers controls as reusable UI components and their use in applications.

How the term differs from a Visual Basic keyword

A Windows Forms control is implemented as a .NET class. The System.Windows.Forms.Control class is the base class for components with a visual representation; the cited API page is specifically the .NET Framework 4.7.2 reference view. Microsoft’s Control Class reference describes that API. This distinction matters: Visual Basic is the programming language, while the control is an object in the UI framework used by an application.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Windows Forms controls versus native Windows controls

“Control” can also refer to a native Win32 concept. Microsoft’s Win32 documentation describes Windows controls as child windows used with another window for user interaction. That is related to, but not interchangeable with, the .NET Windows Forms Control class. Windows Controls – Win32 apps explains the native-platform usage.

The examples here concern Visual Basic applications using Windows Forms. They do not establish a support or lifecycle recommendation for a particular .NET version or project.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.