Visual Basic Help

Technical SupportHFA1WG      GlossaryYJPCNM>Right      Other Information Sources1DS66DL


How to use Visual Basic

1AQIUSQ>Right    Learning Visual Basic1AQIUSQ>Right

 

Building a Visual Basic Application

3ZLNODB>Right    Creating the Interface3ZLNODB>Right

17WVOGT>Right    Setting Properties17WVOGT>Right

3BGBN3>Right    Writing and Debugging Code3BGBN3>Right

 

 

Reference


Properties9DCBBN>Right

Programming Language2LZVEKN>Right

EventsWKIVUP>Right

Programming Environment133A1Z3>Right

Objects6M2O18>Right

Trappable ErrorsMPRGT3>Right

 

Copyright Notice1HJWGS2

 


Creating the Interface

 

These steps are the first part of the process of creating a Visual Basic application.141RJVK

    Create a new projectTJS1SZ to organize the parts of your application.

    Create a formcmdFileNewForm for each window in your application.

    Use the Toolbox414LEZP to draw the controls for each form.

    Create a menu bar1DSHCUG for the main form.

 

 

More information

Adding and Deleting Controls at Run Time10KLMP2

Adding and Deleting Menu Commands at Run Time30M70PD

Aligning an Item to the GridY2SYZE

Assigning an Icon to a Form42XO904

Changing Grid SpacingL154EZ

Creating a Control ArrayBRU4A5

Creating a Menu Bar1DSHCUG

Creating a Menu Control Array131TFDP

Displaying Graphics on a Form13Z8KW6

Displaying or Hiding the Grid7N2Z0CD

Drawing a Control2JRMWVS

Drawing Lines and Shapes on a Form1UQ38LN

Selecting Controls4EPM0TA


Setting Properties

 

This is the second part of the process of creating a Visual Basic application.141RJVK

    Set form and control properties.1NFIWMG

 

 

More information

Accessing Screen Properties13Y8ZW4

Binding a Control to a Data Control109IOWM

Properties List9K1S0SM>Right

Setting ColorsXBS80I

Setting Form and Control Properties1NFIWMG

Setting Tab Order1JL4HCO

Specifying Access KeysIFK11S

Using MDI FeaturesHOWMDI


Writing Code

 

These steps are the third part of the process of creating a Visual Basic application.141RJVK

    Write5SZA0GX event procedures and general procedures.

    Debug4RVH0A6 your code.

    Create an executable file7XBKUY to turn the project into an application.

 

 

More information

Communicating with Other Applications16RL32Q

Controlling Program FlowHDQBCQ

Debugging CodeV5PHSP

Processing Files8YHRWL

Project Management119TBO1

Using Language Elements1N3YWHH

Using the Code Window121ECJF


Using the Code Window

Adding, Editing and Deleting Watch Expressions1Z5654F

Executing a Specific StatementECF90T

Guidelines for Entering and Editing Code5SZA0GX

Importing a Text File into Code1MAFTCT

Replacing Text in Code7N96V2

Saving and Loading forms in ASCII FormatMFX9KO

Searching for Text in Code2JE9GAC

Setting and Clearing BreakpointsBMA26TM

Splitting a Code Window Into Panes2UQIAKR

Turning Syntax Checking On or OffQ09O8S

Using Example Code from Online HelpDBQHD3

Using the Debug Window1XHHA8K


Using Language Elements

Attaching an Event Procedure to a Form or Control2LBGK4C

Calling Windows API Functions1XR2ZL9

Creating a DatabaseE2CCWI

Creating a General Procedure1IPNOPP

Creating Custom ColorsCJ5GBZ

Entering Declarations in Code1AS3HT9

Filling a Grid with Data from a DatabaseOAHR8E

Finding a Procedure1CNGZXN

Loading Constants from CONSTANT.TXT or DATACONS.TXTXWIYXU

Querying a Database1OKO9HO

Specifying Access KeysIFK11S

Accessing External Databases265U3WO

Using SQL (Structured Query Language)2WCWZZP


Debugging code

Adding, Editing and Deleting Watch Expressions1Z5654F

Continuing ExecutionCZRW3ZU

Debugging Checklist4RVH0A6

Executing a Specific StatementECF90T

Guidelines for Entering and Editing Code5SZA0GX

KnowledgeBase Articles from Microsoft Product SupportAOC377

Restarting ExecutionF5EDVC

Setting and Clearing BreakpointsBMA26TM

Starting Execution1AHX1VG

Tracing Execution132XRCU

Turning Syntax Checking On or OffQ09O8S

Using Example Code from Online HelpDBQHD3

Using Instant Watch166AQUL

Using the Debug Window1XHHA8K

Using Watch Expressions15OGQK


Processing Files

Importing a Text File into Code1MAFTCT

Saving and Loading Forms in ASCII FormatMFX9KO

KnowledgeBase Articles from Microsoft Product SupportAOC377

Replacing Text in Code7N96V2

Saving Your Work1MAQDM1

Searching for Text in Code2JE9GAC


Communicating with other applications

Calling Windows API Functions1XR2ZL9

Creating a DDE Source or Destination LinkJ8NEMT

KnowledgeBase Articles from Microsoft Product SupportAOC377

Using Dynamic Data Exchange (DDE)HOWDDE

Using Custom ControlsHOWOLE


Controlling program flow

Ending Execution4KTFWY

Executing a Specific StatementECF90T

Halting Execution11S25K

KnowledgeBase Articles from Microsoft Product SupportAOC377

Restarting ExecutionF5EDVC

Specifying a Startup Form1NHZZC6

Starting Execution1AHX1VG


Project management

Importing a Text File into Code1MAFTCT

KnowledgeBase Articles from Microsoft Product SupportAOC377

Saving and Loading Forms in ASCII FormatMFX9KO

Saving Your Work1MAQDM1

Setup ToolkitTVG7J5

Using Example Code from Online HelpDBQHD3