My Account Subscribe Help About
Sign In | Register FREE
Friday, April 10, 2026
Ceasefire or no ceasefire, the Middle East's reshuffling is not yet doneMan arrested after baby girl dies from dog biteMan jailed for killing abused wife who jumped from bridgeMelania Trump denies ties to Jeffrey Epstein and urges hearing for survivorsSimple guide: How the Iran war is affecting the cost of holidays, food and clothesMen behind 'Tripadvisor for people smugglers' jailed for 19 yearsIreland protesters willing to 'close the country' over fuel costsEU fingerprint and photo travel rules come into forceIran conflict will define us for a generation, says PMBafta fell short in duty of care when racial slur was shouted, review findsExtra £5m pledged for patrolling places of worship in London and ManchesterLebanon says ceasefire must be in place before Israel talks'Endless fears': Even if fighting stops, the damage to Iran's children will endureHow many ships are crossing the Strait of Hormuz?Want to help garden birds? Don't feed them in warmer months, says RSPBCan stats help you find the Grand National winner?Ten cases a day - 'blitz courts' could tackle the Crown Court backlogThis coat cost $248 in illegal tariffs. Will he ever get the money back?From a smuggled harmonica to Artemis' playlist - the history of music in spaceLava soars into air as Hawaii's Kilauea volcano erupts againWeekly quiz: What might have made Paddington panic about his marmalade?LeBron and Bronny James record first son-to-father assist in NBA history'I was in a slump - now my art is in Billie Eilish's house'Labrinth not involved in Euphoria's third seasonWhite House staff told not to place bets on prediction marketsRussia and Ukraine agree to Orthodox Easter truceBBC News appIs Defence Secretary Pete Hegseth waging a holy war against Iran?Defence secretary interview on Russian submarine operationWhat version of Tyson Fury will turn up this weekend?
FDN » Visual Basic » Getting Started with VB6

Getting Started with VB6

Getting Started with VB6

Visual Basic 6.0, released in 1998, is Microsoft's rapid application development (RAD) tool for building Windows desktop applications. It remains widely used for business applications and COM component development.

Installing Visual Basic 6

  • VB6 is part of Visual Studio 6.0. Insert the VS6 CD and run setup.
  • Choose Custom installation and select Visual Basic 6.0.
  • Install Service Pack 6 (SP6) after setup — it fixes numerous bugs and adds Windows 2000/XP compatibility.

Your First Application

  1. Launch Visual Basic 6 and select Standard EXE from the New Project dialog.
  2. A blank form (Form1) appears in the designer.
  3. From the Toolbox, drag a TextBox and a CommandButton onto the form.
  4. Double-click the button to open the code editor. Enter:
    Private Sub Command1_Click()
        MsgBox "Hello, " & Text1.Text & "!", vbInformation, "Flamenet"
    End Sub
    
  5. Press F5 to run. Type your name and click the button.

Project Types

TypeDescription
Standard EXEWindows desktop application (.exe)
ActiveX DLLIn-process COM component (.dll)
ActiveX EXEOut-of-process COM component (.exe)
ActiveX ControlReusable UI control (.ocx)
Data ProjectDatabase-focused project with Data Environment

IDE Overview

  • Toolbox: UI controls — Label, TextBox, ComboBox, ListBox, PictureBox, Timer, etc.
  • Properties Window: Set design-time properties for the selected control.
  • Project Explorer: Shows all forms, modules, and class modules in the project.
  • Immediate Window: Type VB statements at runtime for quick debugging (Ctrl+G).
« Back to Visual Basic « Back to FDN