Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 298,079 times

Contents

Related Categories

Visual Basic Tutorial - Programming!

Programming!

We can now finally get on to actually doing something! To start off, we are going to create a simple program that asks you for your name, and then says hello. Although this might not sound much, it should get you going on the basics of VB.

To begin, ensure that you have the Form Window we described in the last section. If you can't see it, double click on the text Form1 on the right hand side of your screen (in the Project Window). Next, take a look at the left hand toolbar. This displays the controls that you can currently use in your project (ie what you can add to the form). Click the icon shown below:

This is known as the Label control. As its name suggests, it is used to 'label' other controls, and provides a means of adding text to your form. To add the control to your form, move the mouse to over the Form and hold down the left mouse button. Keep the button down, and move the mouse - you will see a rectangle form, and change shape as you move the mouse. This is showing you where the new control will go. When you are happy with the shape, let go, and you will see the text 'Label 1' appear.

Once you have placed a control on your form, you are free to move it around to wherever you want, by simply clicking and dragging. If you want to change the shape of the control, just like in almost any Office, or graphics program, simply select it, hold down the mouse over one of the blue boxes that appear, and drag.

James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.

Comments

  • Re: [30] Complete VB Beginners Tutorial

    Posted by pcmenegusso on 06 Jun 2008

    what's "grammer" anyway? and who's needing it here?

  • Re: beginner...

    Posted by HartTechService on 27 May 2008

    No offense, but you might want to brush up on your English grammer skills first.  "We'll gonna"= We will gonna or going too??????  This just makes no sense.  "We are ...

  • beginner...

    Posted by Tessa07 on 13 Jun 2007

    Hi evry1..
    I take IT course, n we'll gonna use VB for nxt semester.1st n 2nd semester we already have C n C++,so  i hope any1 here can help me out..TQVM..

  • New to VB.net

    Posted by asingh9 on 08 Sep 2005

    Hi,
    I have been using Visual Basic for one year. Now, I want to switch to VB.net as it is the latest technology. I am totally confused how should I go about doing this. Could you tell me the name of ...

  • Student edition

    Posted by eric2358 on 10 Aug 2005

    You may not be able to comile your code into an executable that would be portable, but your code can be copied into notepad files and kept for later use/reuse.