The Full Wiki

Visual Basic: Wikis

  
  

Encyclopedia

From Wikipedia, the free encyclopedia

Visual Basic
Image of the Visual Basic 6 IDE
Paradigm Object-Based and Event-driven
Developer Microsoft
Stable release VB6 (1998)
Typing discipline Static, strong
Influenced by QuickBASIC
Influenced Visual Basic .NET, Gambas, REALbasic, Basic4ppc
OS Microsoft Windows, MS-DOS
Website http://msdn.microsoft.com/en-us/vbasic/default.aspx
.Visual Basic (VB) is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model.^ Forums > Visual Basic > VB 2005 .
  • Visual Basic 2005 Basics 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Developers slam Microsoft's Visual Basic plan .
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

.VB is also considered a relatively easy to learn and use programming language, because of its graphical development features and BASIC heritage.^ Games and Graphics - Examples of programming games and using graphics.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ VB Game Programming MegaSite - Resources on game programming using Visual Basic.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ Useful for those wishing to learn how to program using the Basic programming language.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

[1]
.Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects.^ You can even automate applications and objects created using the professional or Enterprise editions of Visual Basic.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ Learn how to develop next-generation database applications with Microsoft Access and Visual Basic .NET! .
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

^ Visual Basic is a powerful programming system that allows us to create application that fully makes use of facilities of Graphical User interface (GUI).
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

.Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic, but perform differently.^ The codes look a bit like English Language and different software companies produced different version of BASIC, such as Microsoft QBASIC, QUICKBASIC, GWBASIC, IBM BASICA and so on.
  • Visual Basic Tutorial | Free Visual Basic Tutorial | Learn Visual Basic | Visual Basic Tutorial | Visual Basic Books | Visual Basic Interview Questions | Visual Basic FAQ |Visual Basic Jobs | Visual Basic Preparation 10 January 2010 23:023 UTC www.academictutorials.com [Source type: Reference]

^ VB-Visual Basic VISUAL BASIC is a high level programming language and it evolved from the earlier DOS version called BASIC. VISUAL BASIC is a events driven and VISUAL Programming Language.
  • Visual Basic Tutorial | Free Visual Basic Tutorial | Learn Visual Basic | Visual Basic Tutorial | Visual Basic Books | Visual Basic Interview Questions | Visual Basic FAQ |Visual Basic Jobs | Visual Basic Preparation 10 January 2010 23:023 UTC www.academictutorials.com [Source type: Reference]

^ This book is designed for those Visual Basic .NET developers who are now eager to become an expert in the language.
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

[2]
.A programmer can put together an application using the components provided with Visual Basic itself.^ Visual Basic programmers discover how to: .
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

^ Are there any examples of commercial applications built using Visual Basic?
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ But that's unrelated to the use of RaiseEvents in Visual Basic.
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

.Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations.^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ This is done using the API SendMessage function.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Using these streams requires that a program get a handle to the stream using the API function GetStdHandle.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.The final release was version 6 in 1998. Microsoft's extended support ended in March 2008 and the designated successor was Visual Basic .NET (now known simply as Visual Basic).^ It's clear from studying the new design that Visual Basic.NET was an afterthought.
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

^ Visual Basic 2008 Professionals .
  • Visual Basic 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]
  • Visual Basic 2005 Basics 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

^ A trial version of Microsoft Visual Studio .NET .
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

Contents

Language features

.Like the BASIC programming language, Visual Basic was designed to be easily learned and used by beginner programmers.^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ VB Game Programming MegaSite - Resources on game programming using Visual Basic.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ Visual Basic programmers discover how to: .
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

.The language not only allows programmers to create simple GUI applications, but can also develop complex applications.^ But when you're developing end-user applications, the efficiency advantages of a low-level pointer language aren't worth the extra development time and bugs.
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

^ Like most proposals for simple language enhancements, this proposal died before being implemented in a vain attempt to provide more development time for major features.
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

^ Microsoft Visual Basic .NET provides the productivity features developers need to rapidly create enterprise-critical Web applications.
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

.Programming in VB is a combination of visually arranging components or controls on a form, specifying attributes and actions of those components, and writing additional lines of code for more functionality.^ This function must be in a code module and not in a form.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]
  • Visual Basic Programming | Visual Basic Programming 10 January 2010 23:023 UTC visualbasic-programming.blogspot.com [Source type: FILTERED WITH BAYES]

^ Whether youre writing just a few lines of code or working with a team to build an enterprise application, youll learn how to use practical standards to develop better, more reliable code for every process.
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

^ VB Master - contains VB articles, sample code, downloads, book store and more for Visual Basic developers.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

.Since default attributes and actions are defined for the components, a simple program can be created without the programmer having to write many lines of code.^ Many Windows programs, including programs created with Visual Basic, permit more than one instance, or copy, of the program to run at the same time.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ It is no kindergarden tool, the problem is that too many under-educated and non-talented people started to program in VB and produced messy code, but this is not the tools fault.
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

^ Bookmark Text: Lines of code where you have defined a bookmark.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Performance problems were experienced by earlier versions, but with faster computers and native code compilation this has become less of an issue.^ Well, because there is a place for it when ultimate performance is needed (assuming the compiled code cannot optimized as good as a seasoned developer).
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

^ I remember when everybody compiled to native code and you chose the language based on its features, not on its output format.
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

^ The #IF #ELSE #ENDIF construct can be used to deliver source code that will include only the code that will compile correctly given the compiler version.
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

.Although programs can be compiled into native code executables from version 5 onwards, they still require the presence of runtime libraries of approximately 1 MB in size.^ Chaotic Coding - Various Visual Basic programs, both compiled and uncompiled forms.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ I remember when everybody compiled to native code and you chose the language based on its features, not on its output format.
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

^ Conditional compilation is a Visual Basic feature that lets you specify that some source code be included and other source code be ignored when the program is compiled.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.This runtime is included by default in Windows 2000 and later, but for earlier versions of Windows like 95/98/NT it must be distributed together with the executable.^ ModPeek32 can evaluate Windows 3.x, Windows 95, or Windows NT executable modules to determine the files which those modules require to function properly.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Note that there are User variables, which are set for and can be changed by the currently logged on user, and System variables, which can be added/changed only by someone with administrator privileges (Windows NT/2000/XP).
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Two versions: 32-bit and 16-bit Like Visual C++ 1.5, VB 4 comes with compilers for the 16-bit API from Windows 3.1 as well as a real 32-bit compiler (or pseudocompiler) for Windows 95 (and NT) bundled together.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.Forms are created using drag-and-drop techniques.^ Note that drag-and-drop can be used to transfer other kinds of data to a Visual Basic program, but this tip will be limited to file names.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Windows provides excellent support for using drag-and-drop to move or copy information from one location to another.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Short glossary for the confused ones :-) Drag & Drop Client: the form you drop objects to/on Drag & Drop Server: the form you drag object(s) from 13.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.A tool is used to place controls (e.g., text boxes, buttons, etc.^ A Text Box control normally has essentially no margins text will run right up to the right and left edges.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ The windowing controls (minimize, maximize, etc) are not set individually – to have only a minimize and a close box, the window needs to have ResizeMode set to “CanMinimize,” for example.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ Web buttons have a gradient of texture that mimics the appearance of buttons, plastic printed with textures used for car radios and remote controls.

) on the form (window). .Controls have attributes and event handlers associated with them.^ The only code associated with the form itself is the event handler for Load, a few member variables, and a helper class.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ When KeyPreview is True, however, the form's keyboard event handlers (KeyDown, KeyUp, and KeyPress) are fired before the keystroke is passed to the control with the focus.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Default values are provided when the control is created, but may be changed by the programmer.^ In the MouseMove event procedure for the control for which you are creating the mouse-over effect, put code that changes the font, color, or other aspects of the control's appearance.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ By default a ComboBox control's Style property is set to vbComboDropDown (value = 0).
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ In general*, if you ever find yourself writing “= Nothing” in a conditional expression, you should either be changing the = to “Is” (as we saw yesterday), or you should change Nothing to the actual default value if possible.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

.Many attribute values can be modified during run time based on user actions or changes in the environment, providing a dynamic application.^ Many Windows programs, including programs created with Visual Basic, permit more than one instance, or copy, of the program to run at the same time.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ There are many, many instances where Microsoft has changed their plans because the customer base has voiced a desire for something different.
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

^ The purpose of developing these controls are: 1) To provide a means of retrieval of information on the Internet, 2) To provide Internet utilities for users to plug into their 32-bit container/controlling applications.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

.For example, code can be inserted into the form resize event handler to reposition a control so that it remains centered on the form, expands to fill up the form, etc.^ For example, this code clears (unchecks) all CheckBox controls on the form: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ This code, for example, centers a form on the screen: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Try not to resize your controls in the resize event.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.By inserting code into the event handler for a keypress in a text box, the program can automatically translate the case of the text being entered, or even prevent certain characters from being inserted.^ You would do this in the Text Box control's KeyPress event procedure: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Note that this technique works only for text entered from the keyboard it will not change text inserted into the Text Box by code.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Code in the KeyPress event procedure can examine the value of KeyAscii to see if a permitted character was entered.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Visual Basic can create executables (EXE files), ActiveX controls, or DLL files, but is primarily used to develop Windows applications and to interface database systems.^ Are there any examples of commercial applications built using Visual Basic?
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ Visual Basic Web Button Sample Web buttons are ActiveX controls that allow Web developers to create interesting, unique user interfaces.

^ Create killer applications using best practices for Visual Basic .NET! .
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

.Dialog boxes with less functionality can be used to provide pop-up capabilities.^ One way to do this is to use what I call "auto-OK" dialog boxes.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ If you have created a Visual Basic Windows application by using Visual Studio, the default selections in the Prerequisites Dialog Box are Windows Installer and the .NET Framework.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ To use the SysInfo control in a project you must first select it in the Components dialog box so it will be available in the Toolbox.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Controls provide the basic functionality of the application, while programmers can insert additional logic within the appropriate event handlers.^ When you need to add formatted text support to a Visual Basic application, the RTB control may be just what you need.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ The .VBX control is similar to the Shape control that comes with Visual Basic, but is much more capable and provides many more basic shapes, properties, events, and options.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Few Visual Basic programmers realize it, but the TextBox control has an undo feature built right into it.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.For example, a drop-down combination box will automatically display its list and allow the user to select any element.^ In this code, for example, a message is displayed to the user in a Text Box control.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ As with the default style, the user can type in the text box or select from the list.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ The user enters text in the Text Box and the List Box automatically selects the first matching item.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.An event handler is called when an item is selected, which can then execute additional code created by the programmer to perform some action based on which element was selected, such as populating a related list.^ Then click Add to add the item to the Selected Items list.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ This is similar to the other emit code – I create a schema for my XML document, but defer to a helper function to fill in the actual XML elements.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ I am sure that you have seen the rubber-band boxes, sometimes called selection boxes, that some programs use to select areas on the screen.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Alternatively, a Visual Basic component can have no user interface, and instead provide ActiveX objects to other programs via Component Object Model (COM).^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ The other is called Visual Basic.NET (no relation to Visual Basic 1 through 6).
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

^ Introduction to Visual Basic Programming, 75 .
  • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

.This allows for server-side processing or an add-in module.^ Reusable Objects and Collections, called Classes 11) Property Procedures allows you to add custom properties to form and some other modules.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.The language is garbage collected using reference counting, has a large library of utility objects, and has basic object oriented support.^ This utility can be used to work with collections as well.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ The Collection object has one property, Count.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Perhaps as a school assignment, I’ve created a singly-linked list which contains objects of type “MyLameObject” (instead of using optimized collections that we provide).
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

.Since the more common components are included in the default project template, the programmer seldom needs to specify additional libraries.^ When they selected VB, they bought the whole package, including the eventuality that they would need to rewrite their code and that bits of the libraries would change or disappear after a time.
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

^ You can add additional controls to tool box using Project –Components or by Pressing Ctrl + T .
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ When you have two or more projects open, each one is listed in the Project window as usual, with forms and other project components arranged hierarchically under the project name.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Unlike many other programming languages, Visual Basic is generally not case sensitive, although it will transform keywords into a standard case configuration and force the case of variable names to conform to the case of the entry within the symbol table.^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ In this case, your Visual Basic program will use automation to do the following: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Introduction to Visual Basic Programming, 75 .
  • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

.String comparisons are case sensitive by default, but can be made case insensitive if so desired.^ You pass it the target string to be searched, the template you are looking for, and a binary value indicating whether you want text searches to be case-sensitive.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ If CaseSensitive is true, performs ' a case-sensitive comparison for text.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ If false, the ' comparison is case-insensitive.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.The Visual Basic compiler is shared with other Visual Studio languages (C, C++), but restrictions in the IDE do not allow the creation of some targets (Windows model DLLs) and threading models.^ The generation of code to automatically generate the Visual Basic code from the model design was created with Visual Modeler.

^ It is able to reverse-engineer existing Visual Basic to create a model.

^ And the DLL's can be called from any Windows application because Visual DLL creates standard Windows DLL's.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

Characteristics

Visual Basic has the following traits which differ from C-derived languages:
  • Multiple assignment available in C language is not possible. A = B = C does not imply that the values of A, B and C are equal. .The boolean result of "Is B = C?" is stored in A. The result stored in A could therefore be false(0) or true(-1)
  • Boolean constant True has numeric value −1.[3] This is because the Boolean data type is stored as a 16-bit signed integer.^ Boolean data type.
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    ^ Short is the name for 16-bit integers.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    ^ Coded as 16-bit (2-byte), but can only have TRUE or FALSE value.
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    .In this construct −1 evaluates to 16 binary 1s (the Boolean value True), and 0 as 16 0s (the Boolean value False).^ Construct the binary value.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Coded as 16-bit (2-byte), but can only have TRUE or FALSE value.
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    ^ The return value is non-zero (True) on success and 0 (False) on failure.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    .This is apparent when performing a Not operation on a 16 bit signed integer value 0 which will return the integer value −1, in other words True = Not False.^ Divide X by 2, discarding any remainder (in other words, perform an integer division using the \ operator).
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ The return value is non-zero (True) on success and 0 (False) on failure.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Short is the name for 16-bit integers.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    .This inherent functionality becomes especially useful when performing logical operations on the individual bits of an integer such as And, Or, Xor and Not.^ Divide X by 2, discarding any remainder (in other words, perform an integer division using the \ operator).
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Rather we will use the setting vbInvert which means that drawing operations such as the Line method draw using the inverse of the color that is already there on the form or Picture Box control.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ And both 16 and 32-bit DLL's can be created with Visual DLL. The DLL code can functionally perform any operation that Visual Basic can perform, because the actual Visual Basic interpreter run-time engine is used to execute the DLL code.
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    [4] .This definition of True is also consistent with BASIC since the early 1970s Microsoft BASIC implementation and is also related to the characteristics of CPU instructions at the time.
  • Logical and bitwise operators are unified.^ Microsoft has been aware of this problem for some time and has claimed that it was fixed as part of service pack 4 for Visual Basic.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Teach yourself Visual Basic .NET 2003 and begin developing applications and services for Microsoft .NETone step at a time.
    • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

    ^ Logical operators are use to join two or more relations.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    .This is unlike some C-derived languages (such as Perl), which have separate logical and bitwise operators.^ In contrast, C-based languages use logical operators as the primary operators and use 1 as the value of the True constant.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    ^ You might want to gradually go through and change some bitwise operators to logical operators in bottleneck code to maximize efficiency.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    ^ Let's get back to the equally important issue of logical operators, starting with some background and history.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    .This again is a traditional feature of BASIC.
  • Variable array base.^ While later versions of Visual Basic (4 through 6) had some object-oriented features, the language itself was not based on these features.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    ^ Dumb down Visual Basic to have zero-based arrays.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    ^ Notice that when designing the original Basic arrays, Kemeny and Kurtz never asked, How do computers base arrays?
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    .Arrays are declared by specifying the upper and lower bounds in a way similar to Pascal and Fortran.^ But later they noticed that civilized high-level languages such as Pascal allowed the user to specify the start and end of the array.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    .It is also possible to use the Option Base statement to set the default lower bound.^ But mathematicians and scientists complained that their matrixes start from zero, so Kemeny and Kurtz added the Option Base statement so that users could decide for themselves whether to start at 0 or 1.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    ^ All variables not declared will cause an error when the OPTION EXPLICIT statement is used.
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    ^ This is the default setting for a procedure that does not itself override a base class procedure.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    .Use of the Option Base statement can lead to confusion when reading Visual Basic code and is best avoided by always explicitly specifying the lower bound of the array.^ Visual Basic Junkyards - Visual basic tips and code.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ Dumb down Visual Basic to have zero-based arrays.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    ^ Give Visual Basic user-base arrays and C# zero-based arrays.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    This lower bound is not limited to 0 or 1, because it can also be set by declaration. In this way, both the lower and upper bounds are programmable. In more subscript-limited languages, the lower bound of the array is not variable. This uncommon trait does exist in Visual Basic .NET but not in VBScript.
.OPTION BASE was introduced by ANSI, with the standard for ANSI Minimal BASIC in the late 1970s.^ While it is a text-based standard it can be very complex and Visual Basic's built-in text handling tools are not up to the job of doing any serious XML processing.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.
  • Relatively strong integration with the Windows operating system and the Component Object Model.^ On the Windows operating system the mouse usually has two buttons, right and left.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ With the Windows operating system, where programs are started with a click of the mouse, the command line may seem to be a relic of the past, but it's not.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ You can do it in FoxPro as well (when working with Component Object Model [COM] objects), although I've never had occasion to do so.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    .The native types for strings and arrays are the dedicated COM types, BSTR and SAFEARRAY.
  • Banker's rounding as the default behavior when converting real numbers to integers with the Round function.^ This VBX addresses the shortcomings of (1) the native VB 'currency' data type and (2) floating-point data for accurate storage and manipulation of numeric field/array values.
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    ^ The word ASSOC stands for "associative array," a data-structure which is sometimes known as a "dictionary" -- it's like an array where the subscripts are strings instead of numbers.
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    ^ Because an INI file is text only, storing a numeric value requires converting it to a string when saving it and then converting the string value back to a number when retrieving it.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    [5] ? Round(2.5, 0) gives 2, ? .Round(3.5, 0) gives 4.
  • Integers are automatically promoted to reals in expressions involving the normal division operator (/) so that division of an odd integer by an even integer produces the intuitively correct result.^ Divide X by 2, discarding any remainder (in other words, perform an integer division using the \ operator).
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Logical operators can be more efficient because they automatically skip the second test in compound expressions if the first expression settles the question (this is called short-circuiting).
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    ^ By default, Visual Basic checks the results of every calculation involving integer data types (Byte, Integer, and Long) to ensure that the result does not exceed the range of the data type.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    .There is a specific integer divide operator (\) which does truncate.
  • By default, if a variable has not been declared or if no type declaration character is specified, the variable is of type Variant.^ However, for strings there where no real difference, or in some instances, variants were faster than strings for routines with heavy conversion usage.
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    ^ Answer: The code is correct according to its “specification” (I’m using the term loosely here J ), so from a technical point of view there is no bug here.
    • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

    ^ Begin with letter · Can’t contain an embedded period or embedded type declaration character.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    However this can be changed with Deftype statements such as DefInt, DefBool, DefVar, DefObj, DefStr. .There are 12 Deftype statements in total offered by Visual Basic 6.0. The default type may be overridden for a specific declaration by using a special suffix character on the variable name (# for Double, ! for Single, & for Long, % for Integer, $ for String, and @ for Currency) or using the key phrase As (type).^ Are there any examples of commercial applications built using Visual Basic?
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    ^ But that's unrelated to the use of RaiseEvents in Visual Basic.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    ^ And gone is the name of Variant and Currency.
    • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

    VB can also be set in a mode that only explicitly declared variables can be used with the command Option Explicit.

History

.VB 1.0 was introduced in 1991. The drag and drop design for creating the user interface is derived from a prototype form generator developed by Alan Cooper and his company called Tripod.^ The complete set of 3-D Widgets (1, 2, and 3) provide the VB developer with a set of form design tools that work together to generate a consistent user interface that is visually powerful without 'getting in the way' of the application.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Visual Basic is a powerful programming system that allows us to create application that fully makes use of facilities of Graphical User interface (GUI).
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ Youll discover how to use the powerful, .NET-enabled version of Visual Basic to create dynamic user interfaces and graphical outputs for Windows applications.
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

.Microsoft contracted with Cooper and his associates to develop Tripod into a programmable form system for Windows 3.0, under the code name Ruby (no relation to the Ruby programming language).^ It can be appeared any place on the code window, no matter it is within the Event procedure or within General Section.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ To add code for an event, you pick the event from the Method Name/Members combo box of the code window navigation bar (at the upper-right side of the screen).
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

^ Here's another example that positions the form at the lower right corner of the screen on any system (although some of the form may be covered by the Windows task bar): .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Tripod did not include a programming language at all.^ Most programming languages, such as C and Fortran, require that all variables be explicitly declared before being used.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Also include some advanced programming tutorials too.I welcome all type of suggestions from all sides which I believe help me to make this book outstanding.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ Utility Programs - Includes exiting windows, printing all the system fonts, loading DLLs, reading VISION files, and a screen saver.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

.Microsoft decided to combine Ruby with the Basic language to create Visual Basic.^ Understanding and creating Visual Basic Project.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ VB-Visual Basic VISUAL BASIC is a high level programming language and it evolved from the earlier DOS version called BASIC. VISUAL BASIC is a events driven and VISUAL Programming Language.
  • Visual Basic Tutorial | Free Visual Basic Tutorial | Learn Visual Basic | Visual Basic Tutorial | Visual Basic Books | Visual Basic Interview Questions | Visual Basic FAQ |Visual Basic Jobs | Visual Basic Preparation 10 January 2010 23:023 UTC www.academictutorials.com [Source type: Reference]

^ Many Windows programs, including programs created with Visual Basic, permit more than one instance, or copy, of the program to run at the same time.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.The Ruby interface generator provided the "visual" part of Visual Basic and this was combined with the "EB" Embedded BASIC engine designed for Microsoft's abandoned "Omega" database system.^ The generation of code to automatically generate the Visual Basic code from the model design was created with Visual Modeler.

^ Internationalization with Visual Basic is designed to get the Visual Basic developer into the realm of applications that can run in different locales and even process data from multiple locales.
  • Visual Basic - Lulu.com 10 January 2010 23:023 UTC www.lulu.com [Source type: General]

^ Zombiehead's Visual Basic Examples - Examples for multiple parts of the Windows environment.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

.Ruby also provided the ability to load dynamic link libraries containing additional controls (then called "gizmos"), which later became the VBX interface.^ A DLL, or Dynamic Link Library, is a file that contains compiled code.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Perhaps as a school assignment, I’ve created a singly-linked list which contains objects of type “MyLameObject” (instead of using optimized collections that we provide).
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ The purpose of developing these controls are: 1) To provide a means of retrieval of information on the Internet, 2) To provide Internet utilities for users to plug into their 32-bit container/controlling applications.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

[6]

Timeline

.
  • Project 'Thunder' was initiated
  • Visual Basic 1.0 (May 1991) was released for Windows at the Comdex/Windows World trade show in Atlanta, Georgia.
  • Visual Basic 1.0 for DOS was released in September 1992.^ VB Games 6 - Visual Basic games and projects.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ What is the current version of Visual Basic for Windows?
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    ^ (September/October 1998) Visual Basic 6.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    .The language itself was not quite compatible with Visual Basic for Windows, as it was actually the next version of Microsoft's DOS-based BASIC compilers, QuickBASIC and BASIC Professional Development System.^ Both are compatible with Microsoft Windows 3.x.
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    ^ Visual Basic 2008 Professionals .
    • Visual Basic 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]
    • Visual Basic 2005 Basics 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

    ^ What is the current version of Visual Basic for Windows?
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    The interface used a Text user interface, using extended ASCII characters to simulate the appearance of a GUI.
.
Visual Basic for MS-DOS
  • Visual Basic 2.0 was released in November 1992.^ VB Links - Game Programming - Designing full graphic applications or developing games with DIRECTX is a new horizon of MS Visual Basic programming.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ ActiveX Control Upgrade Utility (VB6) This utility will upgrade Visual Basic 5.0 and pre-projects using the latest 6.0 release of Visual Basic 6.0 ActiveX controls.

    ^ While it is a text-based standard it can be very complex and Visual Basic's built-in text handling tools are not up to the job of doing any serious XML processing.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    .The programming environment was easier to use, and its speed was improved.^ Many of them have to with the operating system, but you can create environment variables for use by your Visual Basic programs.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ To access environment variables in your Visual Basic program, you use the Environ function.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ By using the Environ function, your Visual Basic program can retrieve the values of any relevant environment variables and use this information as needed.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    .Notably, forms became instantiable objects, thus laying the foundational concepts of class modules as were later offered in VB4.
  • Visual Basic 3.0 was released in the summer of 1993 and came in Standard and Professional versions.^ A Visual Basic form has a KeyPreview property.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Visual Basic 2008 Professionals .
    • Visual Basic 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]
    • Visual Basic 2005 Basics 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

    ^ What is the current version of Visual Basic for Windows?
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    .VB3 included version 1.1 of the Microsoft Jet Database Engine that could read and write Jet (or Access) 1.x databases.
  • Visual Basic 4.0 (August 1995) was the first version that could create 32-bit as well as 16-bit Windows programs.^ Visual Basic programming?
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ David's Lab - Visual Basic examples, for both 16 bit and 32 bit platforms.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ Is the Access Engine and Visual Basic Pro good enough for database work?
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    .It also introduced the ability to write non-GUI classes in Visual Basic.^ In Visual Basic .NET, classes are defined in code.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    ^ When Visual FoxPro came out, for the first time we had the ability to write generic form class code and inherit forms from it.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    ^ Visual Basic is a powerful programming system that allows us to create application that fully makes use of facilities of Graphical User interface (GUI).
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    Incompatibilities between different releases of VB4 caused installation and operation problems. .While previous versions of Visual Basic had used VBX controls, Visual Basic now used OLE controls (with files names ending in .OCX) instead.^ Controls are basically .OCX files.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    ^ It's interesting that in FoxPro we use the Visual Basic naming convention.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    ^ Control structures in Visual Basic .
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    .These were later to be named ActiveX controls.
  • With version 5.0 (February 1997), Microsoft released Visual Basic exclusively for 32-bit versions of Windows.^ The result was version 4.0 of Visual SourceSafe (VSS), which was a 32-bit product.

    ^ With Visual Basic's MAPI controls, it's a snap.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Column 6 (February/March 1997): Visual Basic 5.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    .Programmers who preferred to write 16-bit programs were able to import programs written in Visual Basic 4.0 to Visual Basic 5.0, and Visual Basic 5.0 programs can easily be converted with Visual Basic 4.0. Visual Basic 5.0 also introduced the ability to create custom user controls, as well as the ability to compile to native Windows executable code, speeding up calculation-intensive code execution.^ The generation of code to automatically generate the Visual Basic code from the model design was created with Visual Modeler.

    ^ Designer Controls - Resource for Visual Basic programmers of all levels.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ A Visual Basic custom control is used to "export" functions from the Visual Basic program so they can be called by other executing Windows programs with a DLL function call.
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    .A free, downloadable Control Creation Edition was also released for creation of ActiveX controls.^ Visual Basic Online Resources - Free ActiveX controls, UserControls, source code, tutorials.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ ActiveX Control Upgrade Utility (VB6) This utility will upgrade Visual Basic 5.0 and pre-projects using the latest 6.0 release of Visual Basic 6.0 ActiveX controls.

    ^ Visual Basic Web Button Sample Web buttons are ActiveX controls that allow Web developers to create interesting, unique user interfaces.

    .It was also used as an introductory form of Visual Basic: a regular .exe project could be created and run in the IDE, but not compiled.
  • Visual Basic 6.0 (Mid 1998) improved in a number of areas [7] including the ability to create web-based applications.^ Are there any examples of commercial applications built using Visual Basic?
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    ^ Create killer applications using best practices for Visual Basic .NET! .
    • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

    ^ Create a new Standard EXE Visual Basic application.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    VB6 has entered Microsoft's "non-supported phase" as of March 2008. .Although the Visual Basic 6.0 development environment is no longer supported, the runtime is supported on Windows Vista, Windows Server 2008 and Windows 7.[8]
  • Mainstream Support for Microsoft Visual Basic 6.0 ended on March 31, 2005. Extended support ended in March 2008.[9] In response, the Visual Basic user community expressed its grave concern and lobbied users to sign a petition to keep the product alive.^ Zombiehead's Visual Basic Examples - Examples for multiple parts of the Windows environment.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ This is the main IDE window of Visual Basic.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    ^ Introduction to the Visual Basic Express 2005 IDE, 34 .
    • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

    [10] Microsoft has so far refused to change their position on the matter. .(but see [11]) Ironically, around this time (2005), it was exposed that Microsoft's new anti-spyware offering, Microsoft AntiSpyware (part of the GIANT Company Software purchase), was coded in Visual Basic 6.0.[12] Its replacement, Windows Defender, was rewritten as C++ code.^ Forums > Visual Basic > VB 2005 .
    • Visual Basic 2005 Basics 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

    ^ This is the main IDE window of Visual Basic.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    ^ Visual Basic 2005 Basics .
    • Visual Basic 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]
    • Visual Basic 2005 Basics 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

    VB DOS Logo
    [13]

Derivative languages

.Microsoft has developed derivatives of Visual Basic for use in scripting.^ Advanced Visual Basic - Advanced information for the Visual Basic developers.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ VB Master - contains VB articles, sample code, downloads, book store and more for Visual Basic developers.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ This must be given in screen pixels, so there's a twip-to-pixel conversion required when using the function in a Visual Basic program.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Visual Basic itself is derived heavily from BASIC, and subsequently has been replaced with a .NET platform version.^ What is the current version of Visual Basic for Windows?
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ XML Parsing Visual Basic .NET version .
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

^ What's coming in the next version of Visual Basic.
  • New England Visual Basic Pro User Group Home 10 January 2010 23:023 UTC nevb.com [Source type: FILTERED WITH BAYES]

Some of the derived languages are:
.
  • Visual Basic for Applications (VBA) is included in many Microsoft applications (Microsoft Office), and also in many third-party products like SolidWorks, AutoCAD, WordPerfect Office 2002, ArcGIS and Sage Accpac ERP.^ Visual Basic applications are event driven.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    ^ The rumours probably originated when Microsoft announced that they will not sell kits allowing third-party software to include the Visual Basic for Applications (VBA) system.
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    ^ Get the in-depth technical details you need to upgrade Visual Basic applications efficiently with this upgrade-specific reference.
    • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

    .There are small inconsistencies in the way VBA is implemented in different applications, but it is largely the same language as VB6 and uses the same runtime library.
  • VBScript is the default language for Active Server Pages.^ There are two ways to use this function.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Second, I have abandoned the Internet Transfer control in favor of using the WinINet library to implement the http protocol.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ There's a complex way, involving Windows device contexts and the API, but it would be easier to use Window's built-in screen capture capability.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    .It can be used in Windows scripting and client-side web page scripting.^ Create a simple XML Web service using Visual Studio .NET. Test the XML Web service through its associated documentation web page.
    • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

    ^ For the Web portion, you will use the Web Forms Designer to create a Web page that is compatible with a standard HTML 3.2 browser.
    • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

    ^ B.'s Programming Place on the Web - You can find nice freeware DOS & Windows programs here, as well as useful source code and Visual Basic Custom Controls.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    .Although it resembles VB in syntax, it is a separate language and it is executed by vbscript.dll as opposed to the VB runtime.^ (It can do this because Sentinel's core is not native VB code, but rather it is contained within a separate compiled VBX/DLL with its own memory and stack space.
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    ^ Package Type: Commercial * Description * The VB/DLL Library Builder for Visual Basic is a program that allows a Visual Basic executable program to simulate a Windows Dynamic Link Library (DLL).
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    .ASP and VBScript should not be confused with ASP.NET which uses the .NET Framework for compiled web pages.
  • Visual Basic .NET is Microsoft's designated successor to Visual Basic 6.0, and is part of Microsoft's .NET platform.^ But that's unrelated to the use of RaiseEvents in Visual Basic.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    ^ NET Web Services Basics, 1128 .
    • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

    ^ The Visual Basic Programming Ring - Visual Basic Programmers web ring home page.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    .Visual Basic.Net compiles and runs using the .NET Framework.^ But that's unrelated to the use of RaiseEvents in Visual Basic.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    ^ Create a simple XML Web service using Visual Studio .NET. Test the XML Web service through its associated documentation web page.
    • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

    ^ Internationalization with Visual Basic is designed to get the Visual Basic developer into the realm of applications that can run in different locales and even process data from multiple locales.
    • Visual Basic - Lulu.com 10 January 2010 23:023 UTC www.lulu.com [Source type: General]

    .It is not backwards compatible with VB6. An automated conversion tool exists, but fully automated conversion for most projects is impossible.^ Microsofts most popular Rapid Application Deployment tool is now a fully-fledged, industrial strength, object-oriented language thanks to .NET. .
    • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

    ^ Data Project: it is identical to the Standard EXE project type, but it automatically adds the controls that are used in accessing database to the tool box.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    [14]
  • .
  • StarOffice Basic is a Visual Basic compatible interpreter included in StarOffice suite, developed by Sun Microsystems.
  • Gambas is a Visual Basic inspired free software programming language.^ Visual Basic programming?
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Labels: Free visual basic download .

    ^ DYR Workshop - Visual Basic programming samples including games.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    It is not a clone of Visual Basic, but it does have the ability to convert Visual Basic programs to Gambas.

Performance and other issues

.Earlier counterparts of Visual Basic (prior to version 5) compiled the code to P-Code or Pseudo code only.^ Est's Visual Basic Homepage - Source code and tips for visual basic versions 4 and 5.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ Visual Basic Junkyards - Visual basic tips and code.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ What is the current version of Visual Basic for Windows?
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.Visual Basic 5 and 6 are able to compile the code to either native or P-Code as the programmer chooses.^ Visual Basic Junkyards - Visual basic tips and code.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ Visual Basic Code - Free code.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ Visual Basic Code Network - Source code by categories.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

.The P-Code is interpreted by the language runtime, also known as virtual machine, implemented for benefits such as portability and small code.^ A good explanation is given below: A bit of history: the original P-code was an instruction set for a "virtual Pascal" machine.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ To executed portable Pascal programs, you had two choices: either write an interpreter for P-code, or translate the small set of P- code instructions (there were about 80) into assembler; assemble it; and run it at native speed.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ P-code was widely popularized by the UCSD Pascal system, a small workstation that was implemented entirely in Pcode and interpreted.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.However, it usually slows down the execution by adding an additional layer of interpretation of code by the runtime although small amounts of code and algorithms can be constructed to run faster than the compiled native code.^ However, for strings there where no real difference, or in some instances, variants were faster than strings for routines with heavy conversion usage.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ [George Tatge (gat@csn.org)] Major Weakness: SQL is SLOW! A hand-coded search (with indices) is MUCH faster than an equivalent SQL call, especially with complex search criteria.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ And both 16 and 32-bit DLL's can be created with Visual DLL. The DLL code can functionally perform any operation that Visual Basic can perform, because the actual Visual Basic interpreter run-time engine is used to execute the DLL code.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

.Visual Basic applications require Microsoft Visual Basic runtime MSVBVMxx.DLL, where xx is the relevant version number, either 50 or 60. MSVBVM60.dll comes as standard with Windows in all editions after Windows 98 while MSVBVM50.dll comes with all editions after Windows 95. A Windows 95 machine would however require inclusion with the installer of whichever dll was needed by the program.^ And the DLL's can be called from any Windows application because Visual DLL creates standard Windows DLL's.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ These tips are all relevant to pre-.NET versions of Visual Basic.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

Criticisms levelled at Visual Basic editions prior to VB.NET include:[15]

Legacy development and support

.All versions of the Visual Basic development environment from 1.0 to 6.0 have been retired and are now unsupported by Microsoft.^ What is the current version of Visual Basic for Windows?
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ Internationalization with Visual Basic is designed to get the Visual Basic developer into the realm of applications that can run in different locales and even process data from multiple locales.
  • Visual Basic - Lulu.com 10 January 2010 23:023 UTC www.lulu.com [Source type: General]

^ This book is designed for those Visual Basic .NET developers who are now eager to become an expert in the language.
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

.The associated runtime environments are unsupported too, with the exception of the Visual Basic 6 core runtime environment, which will be officially supported by Microsoft for the lifetime of Windows 7.^ This is the main IDE window of Visual Basic.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ Visual Basic supports.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ What is the current version of Visual Basic for Windows?
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

[18] .Third party components that shipped with Visual Studio 6.0 are not included in this support statement.^ Then we will send you a free copy of Visual Studio 2005 and some other things for free as a keyboard "free advice" and displays the partial contents of a free book.

^ [Edit] Further strengths are its integration with Microsoft Visual Studio and the fact that it is included as part of Visual Studio multiple versions.

^ You can create solutions using graphical and code-based programming as well as any third-party software components for the Visual Basic environment.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

.Some legacy Visual Basic components may still work on newer platforms, despite being unsupported by Microsoft and other vendors.^ Unfortunately, you cannot use Visual Basic's SendKeys for this purpose - it just won't work with PrintScrn.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ A Visual Basic custom control is used to "export" functions from the Visual Basic program so they can be called by other executing Windows programs with a DLL function call.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ This lets developers write functions in Visual Basic which can be directly executed by other Windows applications.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

.Development and maintenance development for Visual Basic 6 is possible on legacy Windows XP, Windows Vista and Windows 2003 using Visual Studio 6.0 platforms, but is unsupported.^ But that's unrelated to the use of RaiseEvents in Visual Basic.
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

^ This is the main IDE window of Visual Basic.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ What is the current version of Visual Basic for Windows?
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.Documentation for Visual Basic 6.0, its application programming interface and tools is best covered in the last MSDN release before Visual Studio.NET 2002. Later releases of MSDN focused on .NET development and had significant parts of the Visual Basic 6.0 programming documentation removed.^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ HALLoGRAM - Shop of Visual Basic tools.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ VB.NET 2002/2003 Basics .
  • Visual Basic 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

.The Visual Basic IDE can be installed and used on Windows Vista, where it exhibits some minor incompatibilities which do not hinder normal software development and maintenance.^ But that's unrelated to the use of RaiseEvents in Visual Basic.
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

^ This is the main IDE window of Visual Basic.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ What is the current version of Visual Basic for Windows?
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.As of August 2008, both Visual Studio 6.0 and the MSDN documentation mentioned above are available for download by MSDN subscribers.^ Visual Studio 2008 .
  • Visual Basic 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]
  • Visual Basic 2005 Basics 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

^ Introduction to Microsoft Visual Modeler.doc Visual Modeler is available from either the Microsoft Visual Studio or Microsoft Visual Basic Areas of the owner.

^ For more information about the Visual Studio 2008 Express Editions with SP1, please see this FAQ .

Example code

.Here is an example of the language: Code snippet that displays a message box "Hello, World!"^ In this code, for example, a message is displayed to the user in a Text Box control.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Answer: The message box will be displayed twice!
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ Here's the code for a simple example: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

as the window Form loads:
.
Private Sub Form_Load()
    ' execute a simple message box that will say "Hello, World!"^ Tap in to the World Wide Web, connect to e-mail and messaging, monitor USENET newsgroups, execute FTP file transfers.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Private Sub Form_Load() With SysInfo1 Me.Move .WorkAreaLeft, .WorkAreaTop, .WorkAreaWidth, .WorkAreaHeight End With End Sub .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Private Sub Form_Load() OrigColor = Command1.BackColor OrigSize = Command1.Font.Size End Sub .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

MsgBox "Hello, World!" End Sub

See also

References

  1. ^ VB has been deprecated in favor of Visual Basic .NET (now simply called Visual Basic), although conversion from VB to VB.NET can be non-trivial. [1].)
  2. ^ For example: S="ABC" : S = S & "DEF" : S = S & "GHI" is common practice in VB, but will cause major problems if used on ASP pages. This is because static constants are handled differently by the two languages. The above code will cause significant overhead for VBScript.
  3. ^ In most languages, True is mapped to a non zero numeric value, often 1 or -1.
  4. ^ "Microsoft Basic Logical Expression Evaluation". Vb.mvps.org. http://vb.mvps.org/tips/Truth.asp. Retrieved 2009-06-16. 
  5. ^ http://support.microsoft.com/kb/194983
  6. ^ "The Birth of Visual Basic". http://www.forestmoon.com/BIRTHofVB/BIRTHofVB.html. 
  7. ^ www.insteptech.com (2005-07-22). "What's new in VB6?". www.insteptech.com. http://www.insteptech.com/techLibrary/vbClassic/vb6_news.htm. 
  8. ^ "Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008 and Windows 7". Msdn.microsoft.com. 2008-04-08. http://msdn.microsoft.com/en-us/vbrun/ms788708.aspx. Retrieved 2009-06-16. 
  9. ^ "Product Family Life Cycle Guidelines for Visual Basic 6.0". Msdn2.microsoft.com. 2005-03-31. http://msdn2.microsoft.com/en-us/vbrun/ms788707.aspx. Retrieved 2009-06-16. 
  10. ^ "Petition to Microsoft". Classicvb.org. 2005-03-08. http://www.classicvb.org/petition/. Retrieved 2009-06-16. 
  11. ^ Al Tenhundfeld (2009-03-04). "Visual Basic 6.0 to be Supported on Windows 7". The Register. http://www.infoq.com/news/2009/03/vb6_on_win7. Retrieved 2009-03-05. 
  12. ^ Andrew Orlowski and Carey Bishop (2005-07-22). "MS Anti-Spyware built on MS Abandonware". The Register. http://www.theregister.co.uk/2005/07/22/microsoft_spyware_vb6/. Retrieved 2006-10-04. 
  13. ^ "Paul Thurrott's SuperSite for Windows: Windows Defender Beta 2 Review". Winsupersite.com. 2006-02-14. http://www.winsupersite.com/reviews/windefender_beta2.asp. Retrieved 2009-06-16. 
  14. ^ Piquet, Lori (2002-02-20). "Abandoning the Fantasy of VB Migration Wizardry". DevX.com. Jupitermedia. http://www.devx.com/vb/article/16822. Retrieved 2007-05-17. 
  15. ^ Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson (2004). Professional ASP.NET 1.1. Wiley. p. 71. ISBN 0764558900. http://books.google.com/books?id=AsqK_AtFf1sC. Retrieved 2008-10-08. 
  16. ^ Marc D'Aoust (December 2000). "Avoid Writing Tedious, Boring Code". Microsoft. http://msdn.microsoft.com/en-us/library/aa227881(VS.60).aspx. Retrieved 2008-11-10. 
  17. ^ Andrew Troelsen (2008). Pro VB 2008 and the .NET 3.5 Platform: The expert's voice in .NET. Apress. p. 5. ISBN 1590598229. http://books.google.com.au/books?id=y0uURUiVhgwC. 
  18. ^ "Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008 and Windows 7". Msdn.microsoft.com. 2008-04-08. http://msdn.microsoft.com/en-us/vbrun/ms788708.aspx. Retrieved 2009-06-16. 

External links


Study guide

Up to date as of January 14, 2010

From Wikiversity

Navigation: Engineering and Technology » Computer Science » Computer Programming » Visual Basic
Visual Basic function.PNG
.Visual Basic 6 is one of the world's most widely used programming languages.^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Microsoft had a high-level language called Visual Basic, but most Microsoft developers were used to C++.
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

^ In Visual Basic, you use the familiar: .
  • REAL Software: Porting from Visual Basic to REALbasic 10 January 2010 23:023 UTC www.realsoftware.com [Source type: FILTERED WITH BAYES]

.It takes an approach to computer programming called RAD, which emphasizes ease and speed of software development.^ OPCWare Client Developer includes sample programs , and it's ease of use result in reduced application development time Does it include an optional built-in GUI to cut development time?
  • OPC Client ActiveX for Visual Basic, Delphi, ASP, .NET, etc...Rapid Development Toolkit 10 January 2010 23:023 UTC www.opcware.com [Source type: General]

^ MSTools - MSTools is home to software development tools designed to simplify and speed up the coding process.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ Fortunately, Microsoft has developed software tools that you can download and use in your Visual Basic programs.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Other popular programming languages such as C, C++, and Java are not necessarily so easy to create programs with, but they do tend to have other strengths.^ If Microsoft don't cater for this, they will drive the new crop of developers towards JAVA, since that language is constant and platform independant.
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

^ A Visual Basic custom control is used to "export" functions from the Visual Basic program so they can be called by other executing Windows programs with a DLL function call.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ "One of our major goals was to ensure Visual Basic code could fully interoperate with code written in other languages, such as Microsoft Visual C# or Microsoft Visual C++..."
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

.Many believe that VB6 is an ideal language for users who are new to programming, or users who previously used related languages such as QuickBASIC and wish to move to more advanced programming.^ Useful for those wishing to learn how to program using the Basic programming language.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ Many Windows programs, including programs created with Visual Basic, permit more than one instance, or copy, of the program to run at the same time.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ I occasionally play around with other languages, but i always return to VB6 as it is much more productive.
  • HerbertC's Blog : Weblog 10 January 2010 23:023 UTC blogs.sun.com [Source type: General]

Contents

Prerequisites

.This course is an introductory course in the field of computer programming.^ For introductory and intermediate courses on Visual Basic programming offered in departments of Computer Science, CIS, MIS, IT, Business, Engineering, and Continuing Education.
  • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

It does not require any prior knowledge of practicing computer programming.

Course Description

.This course is intended to teach you all aspects of computer programming with Visual Basic 6.^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ In Visual Basic, you use the familiar: .
  • REAL Software: Porting from Visual Basic to REALbasic 10 January 2010 23:023 UTC www.realsoftware.com [Source type: FILTERED WITH BAYES]

^ Can you capture a screen image from a Visual Basic program?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Note: Since this course is still under construction, so, you may find one of these tutorials more handy right now.^ (Note: You won't see this variable using Intellisense, but you can find it when debugging or through reflection.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ That there may be 2 or more cards available is not of interest - as long as at least one card is available then our question has been answered.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ The expense to train people and rewrite these applications may be more than they are prepared or able to handle at this time.
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

For help you may visit this IRC chat room: ... to be implemented ...

Pros and Cons of VB6

Pros
.
  • Is extremely popular
  • Has a large base of freely accessible source code
  • Easy to learn.^ Kather Source Code - Free code and utilities.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ Visual Basic Online Resources - Free ActiveX controls, UserControls, source code, tutorials.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ VBTown - Tips/Tricks/ActiveX controls For VB. Easy to learn tips - just Copy & Paste the code to your form.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    .Logical operator names for the most part
  • Is an easy-to-use option for almost all user-land programs for Windows
  • Is potentially a lot more powerful than the average C or C++ programmer thinks.^ Logical operators are use to join two or more relations.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    ^ It's powerful and easy to use.
    • New England Visual Basic Pro User Group Home 10 January 2010 23:023 UTC nevb.com [Source type: FILTERED WITH BAYES]

    ^ Designed for beginning through experienced programmers, it includes hundreds of complete working programs—totaling more than 10,000 lines of code—numerous valuable programming tips, and hundreds of interesting and challenging exercises.
    • Pearson - Visual Basic 6 How to Program - Harvey M. Deitel, Paul J. Deitel & Tem R. Nieto 10 January 2010 23:023 UTC www.pearsonhighered.com [Source type: Academic]

    .It all depends on the coder's ability and knowledge
  • It isn't nearly as easy to decompile or hack VB6 apps as C or C++ apps
  • Runs on every copy of WinXP ever released, by default, as long as you don't add extra dependencies
  • Runs almost as fast as C, C++, etc.^ You don't add events in FoxPro.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    ^ You can completely ignore method scope and make them all PUBLIC, the default.
    • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

    ^ Using underscores in names is shorter than spaces, as you don't need the extra 2 characters for the square brackets around them.
    • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

    in most situations
  • Runs most things quicker than VB.NET
  • Isn't going to be completely dead until .NET adoption is more complete in a few years
Cons
  • There's a loosely organised army of grumpy C and C++ coders who hate VB6 and VB6 coders. .Sometimes you have to be careful about who you tell you code in VB6
  • Has the potential for allowing you to code extremely lazily
  • Is not as powerful as a language like C, C++, or Assembly in that it cannot easily access low-level functions such as are needed for device driver programming (Most people will never care)
  • Does not run on versions of windows previous to WinXP unless the VB6 runtime is installed on that computer
  • Has a lot of inferior code examples amongst the open source VB6 programs available
  • Runs significantly slower than C, C++, etc.^ We have lots of VB6 code.
    • HerbertC's Blog : Weblog 10 January 2010 23:023 UTC blogs.sun.com [Source type: General]

    ^ Powerful imaging software and example source code.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ They also have lots of downloaded source code.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    in some situations
  • Has been superseded by VB.NET, which is a significantly different system, which is likely to become the dominant programming platform as soon as adoption of .NET framework is better than its currently weak adoption rate

Lessons

Introductory lectures

.
  1. Introduction to VB6 - Design a simple application =]
  2. Variables and Types in VB6 - store and manipulate values =]
  3. Control Structures and Logical Expressions in VB6 - If statements and do loops
  4. Functions and Subroutines in VB6 - Segment your programs =]
  5. Basic Graphical User Interfaces in VB6 - Intro to GUI.
  6. Event-Driven Design in VB6 - Event handling.^ To access environment variables in your Visual Basic program, you use the Environ function.
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ To the application programmer, the interface to the LED2 control is simple.
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    ^ Introduction to Visual Basic Programming, 75 .
    • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

    =]

Intermediate lectures

None currently.

Advanced lectures

  1. API use with VB6

Active Participants

.Please sign below if you are participating in this topic.^ Please let me know how you like the selection we made and if there are other topics you’d like to see *.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ If you find any errors, please report them to the address given below.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

Use 4 tildes (~~~~) to sign.
  • Richard2me 06:47, 7 December 2006 (UTC)
  • 64.251.54.194 17:15, 2 January 2007 (UTC)
  • Toportime 19:34, 31 May 2007 (EST)

Enrolled

.Please sign below if you are participating in this topic.^ Please let me know how you like the selection we made and if there are other topics you’d like to see *.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ If you find any errors, please report them to the address given below.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

Use 4 tildes (~~~~) to sign.
  • Wylie99998 02:06, 29 October 2006 (UTC) wylie99998
  • 198.253.49.6 22:23, 19 June 2008 (UTC)rafael
  • Edgar Re Poe 06:03, 9 December 2009 (UTC)Edgar Re Poe

Tools

  • ...

External Links


Wiktionary

Up to date as of January 15, 2010

Definition from Wiktionary, a free dictionary

English

Proper noun

Singular
Visual Basic
Plural
-
Visual Basic
Wikipedia-logo.png
Wikipedia has an article on:
  1. (computing, programming languages) A programming language developed by Microsoft, broadly descended from BASIC and Pascal and later superseded by VB.NET, in which all programs have a graphical user interface.

Wikibooks

Up to date as of January 23, 2010

From Wikibooks, the open-content textbooks collection

.This book is written from a VB6 perspective although much of what is said is also valid for VB5 and VB4. This book does not cover VB.NET which is in fact a radically different language.^ This book does not cover VB.NET which is in fact a radically different language.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ This book is written from a VB6 perspective although much of what is said is also valid for VB5 and VB4.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ C# and VB.NET are not general-purpose languages.
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

.It covers many different techniques and topics including optimization of programs, object oriented programming and coding guidelines to name a few.^ Object-Oriented Programming: Polymorphism, 495 .
  • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

^ Object-Oriented Programming: Inheritance, 449 .
  • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

^ This course will get you up to speed on all the new features and programming requirements including: VB .NET language features, the .NET framework, ADO.NET, object-oriented programming, Windows Forms, XCopy deployment, and much more...

.To assist readers in getting started several complete applications of varying degrees of sophistication are presented in the Case Studies chapter.^ To assist readers in getting started several complete applications of varying degrees of sophistication are presented in the Case Studies chapter.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Chapter 16: Application Completion .
  • Chapter 16: Upgraded Visual Basic .NET Application Completion 10 January 2010 23:023 UTC migrationguide.artinsoft.com [Source type: Reference]

^ Set one variable equal to Timer just before calculations start, and set another variable equal to Timer when they are complete.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

Contents

Introduction

.This book's sole purpose is to help people better understand Visual Basic.^ Visual Basic can help you, as follows: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Visual Basic Help need help useing visual basic .
  • BASIC / Visual Basic (.NET) 10 January 2010 23:023 UTC www.astahost.com [Source type: General]

^ Understanding and creating Visual Basic Project.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

History

Evolution of Visual Basic

.VB 1.0 was introduced in 1991.^ The original topic of this post was to say Happy Birthday to VB as though the product introduced in 1991 was still in existence.
  • Happy 15th Birthday to Visual Basic! 10 January 2010 23:023 UTC panopticoncentral.net [Source type: General]

.The approach for connecting the programming language to the graphical user interface is derived from a system called Tripod (sometimes also known as Ruby), originally developed by Alan Cooper, which was further developed by Cooper and his associates under contract to Microsoft.^ Visual Basic:A programming language and IDE developed by Microsoft [Internet].
  • Visual Basic - a knol by tim anderson 10 January 2010 23:023 UTC knol.google.com [Source type: FILTERED WITH BAYES]

^ A programming language and IDE developed by Microsoft .
  • Visual Basic - a knol by tim anderson 10 January 2010 23:023 UTC knol.google.com [Source type: FILTERED WITH BAYES]

^ Visual Basic was based on a prototype called first Tripod and then Ruby, developed outside Microsoft by Alan Cooper.
  • Visual Basic - a knol by tim anderson 10 January 2010 23:023 UTC knol.google.com [Source type: FILTERED WITH BAYES]

Timeline of Visual Basic

.
  • Visual Basic 1.0 (May 1991) was released for Windows.
  • Visual Basic 1.0 for DOS was released in September 1992. The language itself was not quite compatible with Visual Basic for Windows, as it was actually the next version of Microsoft's DOS-based BASIC compilers, Microsoft QuickBASIC compiler QuickBASIC and BASIC Professional Development System.^ Visual Basic 2: 1992 .
    • Visual Basic - a knol by tim anderson 10 January 2010 23:023 UTC knol.google.com [Source type: FILTERED WITH BAYES]

    ^ With version 5.0 (February 1997), Microsoft released Visual Basic exclusively for 32-bit versions of Windows.
    • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

    ^ Developers slam Microsoft's Visual Basic plan .
    • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

    .The interface was barely graphical, using extended ASCII characters to simulate the appearance of a GUI.
  • Visual Basic 2.0 was released in November 1992. The programming environment was easier to use, and its speed was improved.
  • Visual Basic 3.0 was released in the summer of 1993 and came in Standard and Professional versions.^ Games and Graphics - Examples of programming games and using graphics.
    • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

    ^ Visual Basic 3: 1993 .
    • Visual Basic - a knol by tim anderson 10 January 2010 23:023 UTC knol.google.com [Source type: FILTERED WITH BAYES]

    ^ Visual Basic programming?
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    .VB3 included a database engine that could read and write Access databases.
  • Visual Basic 4.0 (August 1995) was the first version that could create 32-bit as well as 16-bit Windows programs.^ Visual Basic programming?
    • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

    ^ Visual Basic 4.0 (August 1995) was the first version that could create 32-bit as well as 16-bit Windows programs.
    • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

    ^ With version 5.0 (February 1997), Microsoft released Visual Basic exclusively for 32-bit versions of Windows.
    • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

    .It also introduced the ability to write classes in Visual Basic.
  • With version 5.0 (February 1997), Microsoft released Visual Basic exclusively for 32-bit versions of Windows.^ Top About Visual Basic versions .
    • Visual Basic 6 Projects tutorial with source code 10 January 2010 23:023 UTC www.profsr.com [Source type: FILTERED WITH BAYES]

    ^ Windows and Visual Studio are trademarks of Microsoft.
    • Visual Basic Support 10 January 2010 23:023 UTC www.signalogic.com [Source type: FILTERED WITH BAYES]

    ^ This is the main IDE window of Visual Basic.
    • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

    .Programmers who preferred to write 16-bit programs were able to import programs written in Visual Basic 4.0 to Visual Basic 5.0, and Visual Basic 5.0 programs can easily be converted with Visual Basic 4.0. Visual Basic 5.0 also introduced the ability to create custom user controls, as well as the ability to compile to native Windows executable code, speeding up runtime code execution.
  • Visual Basic 6.0 (Mid 1998) improved in a number of areas, including the ability to create web-based applications.^ [Visual Basic Edition] is a collection of 15 Visual Basic controls creating for Internet-enabled applications.
    • Cgi Visual Basic Download - Free Download Cgi Visual Basic 10 January 2010 23:023 UTC www.softlist.net [Source type: Reference]

    ^ And the DLL's can be called from any Windows application because Visual DLL creates standard Windows DLL's.
    • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

    ^ Deploy an application based on Windows.
    • Programming with Microsoft Visual Basic .NET | Integrated Digital Technologies 10 January 2010 23:023 UTC www.idt.edu [Source type: Reference]

    VB6 is currently scheduled to enter Microsoft's "non-supported phase" starting March [2008].

Getting Started

.VB6 IDE (Integrated Development Environment) is highly useful for developing GUI (Graphical User Interface) applications.^ Visual Basic posses a Integrated Development Environment [IDE] in which users can develop, run and debug their applications.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ This is because it is much faster and easier to develop user interfaces in Visual Basic than most other languages.
  • Visual Basic 10 January 2010 23:023 UTC www.warogers.com [Source type: General]

^ These developer tool kits provide extensive 3D graphics capabilities to VB via DLL API interfaces, VBX and OCX/ActiveX controls.
  • 3DLinks.com - Ultimate 3D Links - 3D Programming : Visual Basic : 10 January 2010 23:023 UTC www.3dlinks.com [Source type: FILTERED WITH BAYES]

.In VB each visible object on the screen is referred to as a control.^ In VB each visible object on the screen is referred to as a control .
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Create a Macro Processor to Interpret Source Code Expose Your App's Object Model with the Script Control Create and execute VB statements at run time.
  • TheScarms Visual Basic 6, VB.NET, C#, ADO, and ASP.NET Code Library 10 January 2010 23:023 UTC www.thescarms.com [Source type: Reference]

^ Native libraries: VB, VBA and VBRUN Visual Basic 6.0 Objects: Forms and visual components ActiveX components and controls How are Visual Basic 6.0 Declarations upgraded?

.All controls are contained in forms.^ For example, this code clears (unchecks) all CheckBox controls on the form: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ For example, you might want to align several TextBox controls so their left edges are all exactly 50 twips from the left edge of the form.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Form is the container of other controls that are available in the Tool Box Lets check out few of the important events of Form .
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

Simple Arithmetic

Introduction to calculating and operands with Visual Basic

Branching

.Branching occurs when the program makes a decision.^ Branching occurs when the program makes a decision.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Decision making statements useful when we need to evaluate particular conditions and divert the execution of the program in another path/flow.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ Make an informed decision on Visual basic Programming Software before you buy.
  • Buy Visual basic Programming Software at bizrate this holiday season 10 January 2010 23:023 UTC www.bizrate.com [Source type: General]

.The flow of execution follows a particular branch like a fork in the road.^ The flow of execution follows a particular branch like a fork in the road.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

Loops

.Loops are control structures used to repeat a given section of code a certain number of times or until a particular condition is met.^ Loops are control structures used to repeat a given section of code a certain number of times or until a particular condition is met.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ The stop condition is met, and we exit the loop.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ A conditional loop is where some lines of code in your program will repeat until a certain condition is met.
  • Visual Basic 10 January 2010 23:023 UTC www.slideshare.net [Source type: FILTERED WITH BAYES]

Using Strings

.Strings hold printable characters.^ Strings hold printable characters.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

.They are very useful for communicating with human beings and for transferring data between programs and machines in text files and web pages.^ They can also be useful as vehicles for entering data.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ The API data is supplied as a text file.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ They are very useful for communicating with human beings and for transferring data between programs and machines in text files and web pages.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

Using Arrays and Matrices

.Arrays are used to group data items of the same type together, to make it easier to search and sort through this data.^ Arrays are used to group data items of the same type together, to make it easier to search and sort through this data.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ First, a pointer must be declared of the same type of data in the array.
  • flipcode - Interfacing Visual Basic And C++ 10 January 2010 23:023 UTC www.flipcode.com [Source type: Reference]

^ What's more, they do not have to be the same data type.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

User Interfaces

.A user interface is the part of your program that is visible to a human user.^ A user interface is the part of your program that is visible to a human user.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Graphical User Interface Concepts: Part 1, 577 .
  • CourseSmart - 0131988360 - Visual Basic® 2005: How To Program, Third Edition 10 January 2010 23:023 UTC www.coursesmart.com [Source type: Academic]

^ The PicScroll control allows the user to view a bitmap or metafile, resize the picture or scroll the visible part of the picture inside the control's rectangle.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

.It can be as simple as a DOS command line or as sophisticated as an immersive virtual reality simulator.^ Command line arguments date from the days of DOS when programs were run by entering the program name at the command line.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.However, in the context of Visual Basic it usually means what is commonly referred to as a Graphical User Interface or GUI which generally consists of one or more Forms that contain text boxes, labels, buttons, picture boxes, etc.^ Label: This control displays a text on the form that the user can’t edit.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ A Visual Basic program can dislay text on a form or a Picture Box using the Print method.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Labels: Free visual basic download .

Simple Graphics

.Visual Basic can easily be used to draw simple graphics such as line drawings and diagrams.^ But that's unrelated to the use of RaiseEvents in Visual Basic.
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

^ Visual Basic Help need help useing visual basic .
  • BASIC / Visual Basic (.NET) 10 January 2010 23:023 UTC www.astahost.com [Source type: General]

^ Visual Basic can easily be used to draw simple graphics such as line drawings and diagrams.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

Files

.Another essential part of Visual Basic is file Input/Output, that is, working with files.^ But Visual basic 6 will work on vista.
  • Visual Basic 6 Beginners Guide (VB6) 10 January 2010 23:023 UTC www.vb6.us [Source type: FILTERED WITH BAYES]

^ Visual Patch will work with any kind of files.
  • Visual Basic | Indigo Rose Software 10 January 2010 23:023 UTC www.indigorose.com [Source type: General]

^ Another essential part of Visual Basic is file Input/Output, that is, working with files.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

.While programming, you may want to at some point save data so they may be accessible for further use.^ In some applications this may be desirable so as to not preclude the use of any characters in the data.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ They can also be useful as vehicles for entering data.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ For most uses this is just what you want.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

This is where file I/O comes in. .VB allows us to perform most operations available in Windows Explorer and DOS command line.^ Windows 95 was the first version that stood alone and did not require the DOS operating system to run.
  • George Mack - A History of Visual Basic 10 January 2010 23:023 UTC dc37.dawsoncollege.qc.ca [Source type: FILTERED WITH BAYES]

^ The bottom line is, whenever doing an operation within a loop, you need to understand whether or not that operation will collide with your loop conditions and assumptions.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ Although there are many techniques to do the same, but performing tasks like calling the DIR DOS command to list the contents of the directory or calling the Move command to move a folder, and the like, can't be done as smoothly by the built in functions of VB or the Windows API. The technique that I introduce to you is extremely simple, doesn't req ...
  • BASIC / Visual Basic (.NET) 10 January 2010 23:023 UTC www.astahost.com [Source type: General]

.Before you can do this, you need to understand how file I/O works.^ Once you see how its done, its quite easy to work out other situations in which you could fit the MSGbox into.
  • Visual Basic VB Script Tutorials 10 January 2010 23:023 UTC www.tutorials-expert.com [Source type: FILTERED WITH BAYES]

^ As a software developer you often need to distribute files to your end-users, this means rapid deployment without having to distribute a large installation package.
  • Best free visual basic downloads. L-Basic is a Basic language tutorial program that emphasizes proper programming. VBBackup, never loose your VB source code again! 10 January 2010 23:023 UTC www.freedownloadmanager.org [Source type: General]

^ Before we make use of these function you have to Refer the DLL by adding reference file[Brouse the shell32.dll file].
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

Data Types

.A datatype is a specification of the kind of information that a variable can hold, for example, a number or a piece of text.^ The variable temp holds the text to be written to stdout: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ What makes the Collection object so useful is that the items it contains can be essentially anything--variables, literal numbers or text, objects, and so on.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Visual basic Variables can store string of Text, numbers, objects, Boolean values etc.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

.Dictionary: A data structure that holds a key / value pair.^ Dictionary: A data structure that holds a key / value pair.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ The word ASSOC stands for "associative array," a data-structure which is sometimes known as a "dictionary" -- it's like an array where the subscripts are strings instead of numbers.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Keys and values can be easily enumerated using a pair of standard OLE Automation collections (much like the collections found in DAO).
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

For example it could be set up to have the key of "NC" and the value would be "North Carolina".

Procedures and Functions

.A function is a calling procedure or small part of a program that performs some specific task and returns a result; for example the cosine function.^ Provide a description of the task the program will perform.
  • STATISTICA | Visual Basic Examples 10 January 2010 23:023 UTC www.statsoft.com [Source type: Reference]

^ When code reads the value of the property, for example: MsgBox(gName) the Property get procedure is called and returns the value of the Private variable name to the program (Clearly the Get procedure is really a function).
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ I am sure that you have seen the rubber-band boxes, sometimes called selection boxes, that some programs use to select areas on the screen.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

Using Windows Dialogs

.Windows dialogs are useful when one requires standard interfaces, including opening files, saving files, choosing color and/or font, specifying printer settings.^ A full set of Windows interface components (including command buttons, text fields, list boxes, pictures, drop-down menus and file system controls) are created visually, without writing any code.
  • Happy 15th Birthday to Visual Basic! 10 January 2010 23:023 UTC panopticoncentral.net [Source type: General]

^ The control set itself can be extended by developers using C and the Windows SDK and the Microsoft Visual Basic Control Development Kit, available separately.
  • Happy 15th Birthday to Visual Basic! 10 January 2010 23:023 UTC panopticoncentral.net [Source type: General]

^ Using this module, there is nothing to distribute with the application except the barcode font because the functions of the module are compiled into the EXE file.
  • Visual Basic Barcode Integration Guide & Tutorial | IDAutomation 10 January 2010 23:023 UTC www.idautomation.com [Source type: Reference]

Using Databases

.VB can connect to databases in many different ways.^ Has available different time-format features as well for getting the length and playing position for both the audio CD and the Tracks for the CD. Way to many features to list here.
  • Visual Basic Code Source - Free Source Code for Visual Basic and Visual Basic.NET 10 January 2010 23:023 UTC www.vbcodesource.com [Source type: FILTERED WITH BAYES]

^ It contains the tools needed to organize and present your data in many different ways.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Here Microsoft breaks the tradition and you *can't* use database objects, at least not the way you do in VB. Also, forget dynasets.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.The most common way now is to use ActiveX Data Objects (ADO).^ VoIP SDK includes voip activex, voip ocx, voip com, voip dll, voip lib and voip cab, so you can use the one you like the most...

^ This course is intended primarily for developers who use Visual Basic 4.0 or later as their primary language, who use Microsoft technologies such as Microsoft ActiveX® Data Objects (ADO) and Active Server Pages (ASP) to develop applications, and who plan to use Visual Basic .NET for future application development.
  • Programming with Microsoft Visual Basic .NET | Integrated Digital Technologies 10 January 2010 23:023 UTC www.idt.edu [Source type: Reference]

^ Using the Excel Object Library Manipulate Excel spreadsheets from within VB. Add, change, copy, retrieve, delete data.
  • TheScarms Visual Basic 6, VB.NET, C#, ADO, and ASP.NET Code Library 10 January 2010 23:023 UTC www.thescarms.com [Source type: Reference]

To connect to an already existing ODBC database use:
.
Dim Conn As Object
Set Conn = CreateObject("ADODB.Connection")
Conn.^ The most likely is as follows:Dim conn As ADODB.ConnectionDim rs As ADODB.RecordsetDim Cmd As ADODB.Commandconn.ConnectionString = ?CONNECTION STRING?conn.OpenSet Cmd.ActiveConnection = connCmd.CommandText = ?SQL STATEMENT?Set rs = Cmd.ExecuteSet rs.ActiveConnection = Nothingconn.Close Under the ADO Command Object, what collection is responsible for input to stored procedures?

^ Therefore it does not matter if you later go on to Set myObject = New ADODB.Recordset or Set myObject = CreateObject(”ADODB.Recordset”).

^ You have to Dim txName as Object Set txName = DialogSheets("NameDialog".EditBoxes("txName")) And then you can access your properties like you used to in good ol' VB 3.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

Open "odbc name", "user", "password"

Using the Windows API

.Although VB6 compiler can't create true DLLs, it has ability to call existing DLLs (not necessarily just Windows API of course).^ And the DLL's can be called from any Windows application because Visual DLL creates standard Windows DLL's.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Want to call the Windows API ?
  • Visual Basic@Everything2.com 10 January 2010 23:023 UTC www.everything2.com [Source type: FILTERED WITH BAYES]

^ Tips for calling DLLs (such as the Windows API) a.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.Declaration of such function contains extra keyword declare and lib, plus optionally can be defined an alias if the real name of function differs from name of dll function alias.^ Declaration of such function contains extra keyword declare and lib , plus optionally can be defined an alias if the real name of function differs from name of dll function alias .
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ An alias is when a program refers to the same variable that is, the same memory location by two different names.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Visual Basic 6.0 form binary files (files with the file name extension .frx) contain necessary resources for the main program form, such as images and icons.

For example it can be:
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal ByteLen As Long)
.For datatype Any accepts compiler any parameter provided.^ Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal ByteLen As Long ) For datatype Any accepts compiler any parameter provided.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

.For effective using of API calls are important operators VarPtr which returns pointer at variable specified and AddressOf which is important for callback functions.^ This is done using the API SendMessage function.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ This is accomplished by using the AddressOf operator to pass your function's address to the SetWindowLong API function.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]
  • Visual Basic Programming | Visual Basic Programming 10 January 2010 23:023 UTC visualbasic-programming.blogspot.com [Source type: FILTERED WITH BAYES]

^ You can use the InStr function, calling it repeatedly until it returns 0.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Beginners often do mistake on missing or badly specified ByRef/Byval in declaration.^ Beginners often do mistake on missing or badly specified ByRef/Byval in declaration.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Simply said, ByVal means that on stack will be pushed value and ByRef (or missing specification of calling convention) means that on stack will be pushed pointer at variable.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ If ByVal or ByRef are not specified for a parameter in a Visual Basic 6.0 routine, the upgrade wizard will specify ByRef for the parameter.

.Simply said, ByVal means that on stack will be pushed value and ByRef (or missing specification of calling convention) means that on stack will be pushed pointer at variable.^ Simply said, ByVal means that on stack will be pushed value and ByRef (or missing specification of calling convention) means that on stack will be pushed pointer at variable.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ It is useful in various situations such as calling external procedures that use C calling conventions, in which strings must be terminated with a null character.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Parameters can be passed to a procedure or function in one of two ways: by reference ( ByRef ) or by value ( ByVal ).

.In practice parameter type Long (4 bytes) will be called ByVal, but String or complex data types will be called ByRef.^ For more hints on how to use arrays of the Byte type in Visual Basic compared to the simpler String type, see Using Byte Arrays in Visual Basic .
  • Cryptography Software Code in Visual Basic and C 10 January 2010 23:023 UTC www.di-mgt.com.au [Source type: Reference]

^ To carry out cryptographic operations in Visual Basic (VB6 and VBA) we should use the unambiguous Byte type instead of the much more convenient String type.
  • Cryptography Software Code in Visual Basic and C 10 January 2010 23:023 UTC www.di-mgt.com.au [Source type: Reference]

^ Examine the QueryPerformanceFrequency returned data from its ByRef parameter to see what the ticks per second of the timer is.
  • Visual Basic Code Source - Free Source Code for Visual Basic and Visual Basic.NET 10 January 2010 23:023 UTC www.vbcodesource.com [Source type: FILTERED WITH BAYES]

.Unfortunately, VB6 doesn't support C-like memory handling.^ Unfortunately, VB6 doesn't support C-like memory handling.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Rather, Microsoft is likely being asked to consider the number of organizations still supporting VB6 applications.
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

^ The major drawback I find with VB6 is that it doesn't support threading (without third party support).
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

To deal with this problem VB programmers uses function CopyMemory to copy memory like this:
Dim a As Long
Dim b() As Byte
ReDim b(3)
CopyMemory ByVal varptr(a), ByVal varptr(b), 4
which is relatively safe. .Some of programmers at the higher level of knowledge can modify pointers at objects as well.^ Some of programmers at the higher level of knowledge can modify pointers at objects as well.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Most Visual Basic programmers know that you can use an object's (a control or form) MousePointer property to change the appearance of the mouse pointer when it is over that object.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Although most of API functions can be called this way, there is not possible to call entry points of dlls dynamically (LoadLibrary-GetEntryPoint-FreeLibrary) for general case.^ There are two ways to use this function.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Although most of API functions can be called this way, there is not possible to call entry points of dlls dynamically (LoadLibrary-GetEntryPoint-FreeLibrary) for general case.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ There's a documentation error, since the manual does not tell you that the IIF function requires the file MSAFINX.DLL to be distributed with your application.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

.Much clearer way how to deal with such tasks is to move code of this kind into separated dll written in C++ and call this dll.^ Much clearer way how to deal with such tasks is to move code of this kind into separated dll written in C++ and call this dll.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Live Demonstrations Demonstrations are a way for the instructor to show and tell the user how to perform a task by actually doing it on screen in front of them.
  • Microsoft Visual Basic .NET-Distributed Applications 22 September 2009 23:22 UTC www.planetlearn.com [Source type: Reference]
  • Microsoft Visual Basic .NET-Distributed Applications 22 September 2009 23:22 UTC searchtutorials.stores.yahoo.net [Source type: Reference]

^ Although most of API functions can be called this way, there is not possible to call entry points of dlls dynamically (LoadLibrary-GetEntryPoint-FreeLibrary) for general case.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

Subclassing - receiving messages from Windows

.Visual Basic hides the details of all the messages that Windows sends to an application but you can get at them if you really need to.^ You will really need three forms.
  • GetAFreelancer.com - VBA Excell Form | Visual Basic 10 January 2010 23:023 UTC www.getafreelancer.com [Source type: FILTERED WITH BAYES]

^ VIsual Basic 05 i need...
  • Visual Basic 10 January 2010 23:023 UTC p2p.wrox.com [Source type: General]

^ View all Visual Basic Downloads .
  • Visual Basic Commands | Visual Basic Tutorial | Define VB.NET 10 January 2010 23:023 UTC www.developers.net [Source type: FILTERED WITH BAYES]

.Then you can do things that plain Visual Basic cannot.^ Then you can do things that plain Visual Basic cannot.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Visual Basic can help you, as follows: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Visual Basic has plenty of tools for displaying regular text, but what if you want special effects?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

External Processes

.Sometimes you want to call another program from Visual Basic.^ Visual Basic programming?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Can you capture a screen image from a Visual Basic program?
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Visual Basic can help you, as follows: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

Object Oriented Programming

.There is a lot of complicated talk about Object Oriented Programming but in essence it is quite simple.^ Despite its ease of use, VB.NET is cable of doing all the things you want like component-based programming using object oriented programming (OOP).
  • Visual Basic .NET Syntax Reference Primer 10 January 2010 23:023 UTC www.csharpfriends.com [Source type: Reference]

^ I then found REAL Software and REALbasic, a modern, fully object-oriented software development environment (IDE), quite similar to Visual Basic.
  • REAL Software: Porting from Visual Basic to REALbasic 10 January 2010 23:023 UTC www.realsoftware.com [Source type: FILTERED WITH BAYES]

^ Using Objects as Properties VB provides a limited degree of object-oriented programming.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

Effective Programming

.It isn't enough that the program work, you must be able to maintain it as well.^ After the program is compiled you must use a shortcut to use command line arguments: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ If you program in VB, you must be aware how these work out.

^ You specify the horizontal alignment using one of the following constants (You must define these constants in your program): TA_LEFT (value = 0), TA_RIGHT (value = 2), or TA_CENTER (value = 6).
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Effective programmers can read their code as well as write it.^ Effective programmers can read their code as well as write it.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ The unifying factor is that these bits of code, wrapped in well-behaved interfaces, which can greatly simplify the task of writing code with a stream of demanding performance.

^ This invaluable resource goes beyond teaching how to simply write Visual Basic .NET codeit teaches you how to write your Visual Basic .NET code more effectively.
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

Idioms

.An idiom is a sort of template or generic method of expressing an idea.^ An idiom is a sort of template or generic method of expressing an idea.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ However, the general idea is the same: Classes have properties and methods.
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

.In the same way that idioms in a human language make life easier for the both speaker and listener good idioms in computer programming make life easier for the programmer.^ Remember we can programmed same thing in different ways as the programmer wish to do things.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ In the same way that idioms in a human language make life easier for the both speaker and listener good idioms in computer programming make life easier for the programmer.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

^ Anyone who is serious about the art of programming should know about more than one language and should also be conversant with the foundations of computing.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

.Naturally what is idiomatic in one language might not be in another.^ Naturally what is idiomatic in one language might not be in another.
  • Visual Basic - Wikibooks, collection of open-content textbooks 10 January 2010 23:023 UTC en.wikibooks.org [Source type: Reference]

Optimizing Visual Basic

.Once your program is up and running and producing correct results you might want to consider optimizing it.^ Are you a kid programming in your bedroom?
  • The Rise and Fall of Visual Basic 10 January 2010 23:023 UTC www.devtopics.com [Source type: General]

^ You can also submit your own programs.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

^ What your program does with this information is, of course, up to you.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.This means making it run faster or use fewer or less expensive resources.^ (The strings for the message box should be stored in the resources so that they can be localized, of course, but that makes the blog less readable.
  • The Visual Basic Team 10 January 2010 23:023 UTC blogs.msdn.com [Source type: General]

^ This makes patches created with Visual Patch easier to apply and friendlier to use than those created with less sophisticated patch builders.
  • Visual Basic | Indigo Rose Software 10 January 2010 23:023 UTC www.indigorose.com [Source type: General]

^ Image: This one is similar to Picture Box but it support less functionality and make use of less resources.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

.As you gain experience you will recognize that some programming idioms produce better results than others under some circumstances.^ This can cause serious and difficult to find bugs in a program when, for example, a calculation uses a misspelled variable that was initialized to zero rather than the correct variable that you intended.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ I am sure that you have seen the rubber-band boxes, sometimes called selection boxes, that some programs use to select areas on the screen.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

^ Reusable Objects and Collections, called Classes 11) Property Procedures allows you to add custom properties to form and some other modules.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

Being able to recognize these situations will enable you to choose the best method straight away

Examples

.This section contains a number of ready made code examples for your use.^ Example of use: For a developer want to use this code?

^ It also allows you to manage your own code and share knowledge within a team by using the fully searchable code repository.

^ For example, you could use this code in a form's Load event procedure to load a Combo Box with a list of all the available fonts: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.They vary from short snippets to complete modules and short demo applications.^ Set one variable equal to Timer just before calculations start, and set another variable equal to Timer when they are complete.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

More Tutorials Like This one here: Visual Basic Tutorials
and This One Mike's VB Help

Regular Expression Tester

.A small, almost throwaway application that demostrates that useful application do not need to be either large or complicated.^ Can be used as either an OLE Custom Control by applications that support OLE custom controls or as an OLE automation object by products that support the creation of an OLE object and can access the API exposed though the OLE automation interface.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Allows either Visual Basic, containers using Visual Basic for Applications, or a comparable script language to interact directly with SQL Server through an OLE Automation Object.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ Since the same code is used by multiple applications, it doesn't need to be copied from program to program to be re-used.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

JArithmetic

The Language

.This sections summarizes the syntax of Visual Basic and describes all the key concepts that of Visual Basic.^ View all Visual Basic Downloads .
  • Visual Basic Commands | Visual Basic Tutorial | Define VB.NET 10 January 2010 23:023 UTC www.developers.net [Source type: FILTERED WITH BAYES]

^ View all Visual Basic Tutorials .
  • Visual Basic Commands | Visual Basic Tutorial | Define VB.NET 10 January 2010 23:023 UTC www.developers.net [Source type: FILTERED WITH BAYES]

^ All a Visual Basic program would need to do is to "press" this key.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.It also notes some features that exist in other languages but do not exist in Visual basic.^ Visual Basic 2008 - New Language Features .
  • New England Visual Basic Pro User Group Home 10 January 2010 23:023 UTC nevb.com [Source type: FILTERED WITH BAYES]

^ VB-Visual Basic VISUAL BASIC is a high level programming language and it evolved from the earlier DOS version called BASIC. VISUAL BASIC is a events driven and VISUAL Programming Language.
  • Visual Basic Tutorial | Free Visual Basic Tutorial | Learn Visual Basic | Visual Basic Tutorial | Visual Basic Books | Visual Basic Interview Questions | Visual Basic FAQ |Visual Basic Jobs | Visual Basic Preparation 10 January 2010 23:023 UTC www.academictutorials.com [Source type: Reference]

^ Visual Basic programming system combines a rich, event-driven programming model with the world's most widely used programming language in a tightly integrated package.
  • Happy 15th Birthday to Visual Basic! 10 January 2010 23:023 UTC panopticoncentral.net [Source type: General]

Coding Standards

.Consistent style in coding helps everyone to maintain a program whether the maintainer is the original author or not.^ The online Help system provides context-sensitive reference information and sample code that can be copied and pasted into a Visual Basic program.
  • Happy 15th Birthday to Visual Basic! 10 January 2010 23:023 UTC panopticoncentral.net [Source type: General]

^ With the help of procedure we can split our code into serveral small बिल्डिंग block s, which help the programmer to debug and maintain the program easily, these small बिल्डिंग ब्लाक इस काल्लेद अस प्रोसदुरे .
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ While writing your program you can use the Timer function to test the speed of calculations and help you in fine-tuning the code for maximum performance.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

Selected Functions

.Short descriptions of some of the functions that are used in this book.^ It is a "cheat sheet", which simply put is a single page containing the most widely used operations and short descriptions.
  • Visual Basic Tutorials - Visual Basic 6 Quick Reference (Cheat Sheet) | DreamInCode.net 10 January 2010 23:023 UTC www.dreamincode.net [Source type: General]

^ Package Type: Shareware Product Type: Custom Control * Description * The PID Controller VBX Control functions like a standard Proportional- Integral-Derivative controller used in industrial plants.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

^ This little file contains a little application, with all the source code, to show how to use some common Windows functions.

Command Reference

.This section serves as guide to the commands that can be used in Visual Basic.^ In Visual Basic, you use the familiar: .
  • REAL Software: Porting from Visual Basic to REALbasic 10 January 2010 23:023 UTC www.realsoftware.com [Source type: FILTERED WITH BAYES]

^ But that's unrelated to the use of RaiseEvents in Visual Basic.
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

^ The control set itself can be extended by developers using C and the Windows SDK and the Microsoft Visual Basic Control Development Kit, available separately.
  • Happy 15th Birthday to Visual Basic! 10 January 2010 23:023 UTC panopticoncentral.net [Source type: General]

Glossary

.Brief explanations of various important, difficult or otherwise interesting words and phrases with links to longer explanations in the body of the text.^ PLS can any body help me with a link or text book on hw to program in vb 6.0?
  • Visual Basic 6 Beginners Guide (VB6) 10 January 2010 23:023 UTC www.vb6.us [Source type: FILTERED WITH BAYES]

^ Wed, 03/11/2009 - 22:41 — Anonymous (not verified) PLS can any body help me with a link or text book on hw to progr .
  • Visual Basic 6 Beginners Guide (VB6) 10 January 2010 23:023 UTC www.vb6.us [Source type: FILTERED WITH BAYES]

Work in Progress

Various unfinished pages. .Please look here for anything obscure or difficult.^ Please do not do anything with this code here that you wouldn't want someone to do to yours.
  • Visual Basic Code Source - Free Source Code for Visual Basic and Visual Basic.NET 10 January 2010 23:023 UTC www.vbcodesource.com [Source type: FILTERED WITH BAYES]

Related Works

.Anyone who is serious about the art of programming should know about more than one language and should also be conversant with the foundations of computing.^ Does anyone know how to execute a program with command line input in run dialog box???
  • Visual Basic 6 Beginners Guide (VB6) 10 January 2010 23:023 UTC www.vb6.us [Source type: FILTERED WITH BAYES]

^ The latest book in the Deitels' How to Program Series of worldwide programming language bestsellers, this is one of the first books on the newest version of Microsoft's Visual Basic — Visual Basic 6.
  • Pearson - Visual Basic 6 How to Program - Harvey M. Deitel, Paul J. Deitel & Tem R. Nieto 10 January 2010 23:023 UTC www.pearsonhighered.com [Source type: Academic]

^ That's not a knock as a few of them I know are really good at debuging and error trapping, but they spend a lot more time creating their programs than I do and mine work just fine and are fast.
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

.As mentioned in the Idioms chapter you can borrow ideas from other languages even if the language you use appears not to support them.^ You can even automate applications and objects created using the professional or Enterprise editions of Visual Basic.
  • VISUAL BASIC 6..A HAND BOOK - a knol by Manoj AP 10 January 2010 23:023 UTC knol.google.com [Source type: Reference]

^ The reason i mention column re-ordering is when they shipped 2003, if you attempt column re-ordering your application will crash if using the MSCOMCTL library.
  • Developers slam Microsoft's Visual Basic plan - CNET News 10 January 2010 23:023 UTC news.cnet.com [Source type: General]

^ The program takes a while to run - a couple of hours to check a few hundred links - but because it is running in the background you can continue to use your system for other tasks.
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

.Here is a list of suggested works, some on-line some in print.^ It's a fairly long list; here are some of the most commonly used events: .
  • Visual Basic Programming Tips and Techniques by Peter Aitken 10 January 2010 23:023 UTC www.pgacon.com [Source type: FILTERED WITH BAYES]

Donald Knuth
The Art of Computer Programming. Knuth's masterpiece, let's hope he lives long enough to complete it.
Data Structures
Programs operate on data so knowledge of effective data structures is very important.
Algorithms
Many algorithms were described long before computers were available and many have both naive inefficient forms and sophisticated efficient forms. In many cases this is independent of the implementation language.

Wikibooks and modules on related subjects

Books on the same subject in other languages

Dansk
WikiBook
Deutsch
WikiBook
English
Wikipedia
Español
WikiBook (planned)
Français
VBScript WikiBook
Nederlands
VB/VBA WikiBook
Norsk
WikiBook, Wikipedia

External Links

Link Comment
Visual Basic Tutorial 37 Lessons on VB6 and sample source code
Visual Basic 6 (VB6) tutorials and source code Example VB6 tutorials and source code
VBCorLib Do exceptions in VB6
Visual Basic Tutorials
WinsockVB Everything there is to know about sockets and VB6. Still has active forums. OFF LINE
VBSpeed Objective evidence you can use to help you write faster code
GPWiki Contains more game related Visual Basic tutorials
XtremeVBTalk A VB forum
AllAPI Examples for Windows APIs
Hardcore Visual Basic Bruce McKinney's masterpiece; shows that you can write almost anything in VB6
Planet Source Code Sample Source Code
VBCode.com Free Source Code for VB
A1VBcode.com Another Free Source Code site for VB
VBexemple.com Free examples(source code),Tutorials for VB6

Authors and Contributors

.Details of permissions given to include content from other sites and documents is on the Credits and Permissions page.^ Work Advisor Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
  • Differences Between Visual FoxPro and Visual Basic .NET: Part 2 -- Are you beginning to migrate your development to Microsoft Visual Basic .NET from Visual FoxPro, or maybe just adding VB .NET to your list of skills? Before you start building application 10 January 2010 23:023 UTC advisor.com [Source type: FILTERED WITH BAYES]

^ PrintWorks provides custom properties and events for creating the content of the pages in the document, controlling the appearance of the preview window, and managing printing.
  • FAQ: (12/96) comp.lang.basic.visual.* VB Tools Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: General]

Name Comment
Batjew Wrote almost everything to start, getting help now.
EugeneH Corrected mistakes and wrote the rest. User name is now Orage
T94xr Fixed a dead link and added a couple good sites.
kwhitefoot Added: distinction between Type and Class, optimization of programs. Split into separate chapters. Added coding standards, case studies, optimization.
Elliot Spencer Contributed many examples from his web site: http://www.ilook.fsnet.co.uk/index.htm
Aadnk Some sections translated from the Norwegian Visual Basic WikiBook (by Kwhitefoot). Also wrote the Windows Dialogs chapter.
GUI Computing Pty Ltd/Mark Trescowthick Mark Trescowthick kindly gave permission for the [.GUI Computing coding standards] and [Australian Visual Developers Forum] to be used, see Credits and Permissions.^ Example of use: For a developer want to use this code?

^ Whether youre writing just a few lines of code or working with a team to build an enterprise application, youll learn how to use practical standards to develop better, more reliable code for every process.
  • Visual Basic 10 January 2010 23:023 UTC docs.msdnaa.net [Source type: FILTERED WITH BAYES]

^ VB Master - contains VB articles, sample code, downloads, book store and more for Visual Basic developers.
  • The Best Visual Basic links on the net!!!!! 10 January 2010 23:023 UTC www.codebox.8m.com [Source type: Reference]

Indexes

.There is no index of concepts and things yet because there is no easy way to maintain such a thing.^ There is no such thing as an address in a high-level language.
  • Buy Hardcore Visual Basic Now 10 January 2010 23:023 UTC brucem.mystarband.net [Source type: FILTERED WITH BAYES]

^ When faced with this problem, there is no easy way out.
  • FAQ: (8/95) comp.lang.basic.visual.* VB/Win Frequently Asked Questions 10 January 2010 23:023 UTC www.faqs.org [Source type: FILTERED WITH BAYES]

^ There is no way you can force things like unit testing or refactoring.

There is however a complete list of all the chapters:
- Chapters

Simple English

Visual Basic is a programming language developed by Microsoft for their operating system Windows.

The BASIC language is said to be easier to read than other languages. It is a widely understood high-level programming language, written using simple English-like words and syntax.

It is an interpreted language, code can be run immediately after being written. Having an interpreter makes it simpler to use, as there is no need for the computer to compile the code, possibly finding errors to fix, before the compiled version can be run.

Once it is working, it can be compiled into an .exe file so that it will run on all modern Windows computers, whether VB is installed or not. The language allows a beginning programmer to produce professional-looking Windows applications, as it includes drawing tools to create normal Windows forms. VB also includes advanced features - concepts and structures which allow programs to be adapted for use with the Internet.

It will not run on operating systems other than Windows and on machines with non-Intel compatible processors.

Contents

Examples

Dim MyInput MyInput = InputBox("How old are you?") If Not IsNumeric(MyInput) Then

  MsgBox "That's not a number!"

ElseIf MyInput < 0 Then

  MsgBox "You cannot be less than zero!"

ElseIf MyInput > 100 Then

  MsgBox "That's old!"

Else

  MsgBox "You're " & MyInput & " years old."

End If

Private Sub Form_Load()

  MsgBox "Hello, World"

End Sub

Editions

Visual Basic was first released in May 1991 for Windows. Many versions have been released since then. These are listed below:

Name Operating System Date Released
Visual Basic 1.0 Windows May 1991
Visual Basic 1.0 DOS September 1992
Visual Basic 2.0 Windows November 1992
Visual Basic 3.0 Windows Summer 1993
Visual Basic 4.0 Windows August 1995
Visual Basic 5.0 Windows February 1997
Visual Basic 6.0 Windows Mid 1998

Visual Basic .NET

See also: Visual Basic .NET

Visual Basic .NET is the next series of products in Microsoft's successful Visual Basic range of products. It makes creating programs easier because it is possible to drag-and-drop controls into the program.

It runs on the .NET Framework and features another long line of programs. For the full list of editions in the .NET series, click here.

Other websites


Citable sentences

Up to date as of December 21, 2010

Here are sentences from other pages on Visual Basic, which are similar to those in the above article.








Got something to say? Make a comment.
Your name
Your email address
Message