1 / 6

Introduction to VB programming

Introduction to VB programming. By Dr. John Abraham For students in 6303. A console program. Start Visual Studio 2005 Click create Project Click project type Visual Basic (left side) Click on console application Give it a name and Press OK Change the name of the module.

Download Presentation

Introduction to VB programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to VB programming By Dr. John Abraham For students in 6303

  2. A console program • Start Visual Studio 2005 • Click create Project • Click project type Visual Basic (left side) • Click on console application • Give it a name and Press OK • Change the name of the module

  3. VB console program • Declare global variables and constants • Write subroutines and functions • Must have a subroutine called main • Pass parameters properly. Observe Byval and byRef • Run the program

  4. Writing to a file • Imports system.io • Declare a variable of type io.streamwriter • Dim outfile as io.streamwriter • Assign a physical filename to create • Outfile=io.file.createText(“c:\outfile.txt”) • Write to file • Outputfile.writeLine(“this is a sample”) • Sample program - carpet

  5. Windows program • Click on Windows application instead of console • Learn how to use toolbox • Learn to set properties • Learn to write code for events • Learn Looping for this example • (Interest program)

  6. Multiple Forms • Learn how to manipulate more than one form • Making visible invisible • Set focus • Learn how to add pictures • Sample program: cards

More Related