Programming with Visual Basic (Project 1)

with No Comments

Create a program in Visual Basic to display ‘WELCOME TO VISUAL BASIC’ in Text box; Programming with visual basic :



Step 1: –

Step 2: –

Form design: –

Select necessary Control Tool from Tool Box and adjust position to ‘Form Window’: –

  • One Text Box
  • One Command Box

visual basic project 1

Step 3: –

Properties Settings: –

  • Select ‘Form1’from Form Window and select ‘Caption’ from Properties Window.
  • Then replace ‘Form1’ to ‘Display Message’ from properties window.
  • Then select ‘Text1 box’ from Form Window and select ‘Text’ from Properties Window.
  • Then remove or erase ‘Text1’ from Properties Window.
  • Then select ‘Command1’ from Form Window and select ‘Caption’ from Properties Window.
  • Then replace ‘Command1’ to ‘Ok’ from Properties Window.
Control Properties name Replace
Form1 Caption Form1 to

Display Message

Text1 Text Text1 to Blank or

Remove Text1

Command1 Caption Command1 to

OK

visual basic project 1

programming with visual basic

Step 4: –

  Code writing:-

  • Double click on ‘Command1’or ‘Ok’ button.
  • Then input code to ‘Command1 code box’.

Code: – Text1.Text = “WELCOME TO VISUAL BASIC”

visual basic project 1

  • Then close code box.

Step 5: –

Project Save: –

  • Click on ‘Save project’ option from File menu.
  • Then input any name to file name box and click on Save option Save file as box.
  • Then input any new name to file name box.
  • Then click ‘Save’ option.

visual basic project 1

Step 6: –

Project Run: –

  • Press F5 key from keyboard or click on ‘Start’ from ‘Run menu’ for run the project.
  • Then click on ‘OK’ button and display the result.

visual basic

Next: Project 2»








Related Posts: