Jump to content


Photo
- - - - -

[vb] - [basics] - [ronson] , Introductory 1


  • Please log in to reply
No replies to this topic

#1 ronson

ronson

    Banned For Being Purple

  • Twodded Staff
  • PipPip
  • 480 posts
  • Gender:Male
  • Location:North Yorkshire, UK
  • Interests:Rugby, Programming, Building Computers, Networking, Web Design and...........BINGE DRINKING!!!!!!.

Posted 06 May 2005 - 12:06 PM

Visual Basic 6.0
For Beginners
Introductory


I would like to apolagise for any spelling/grammatical mistakes in advanced.

This tutorial is about Visual Basic gives you the basic knowledge of what its about and the feel of the program and gives you chance to get used to the controls ect.

Heres my advice, a programmer can not only program in 1 language but can program in most and a programmer can not only make applications but he can analyze and work out the solution and understand why thats the solution.

Introduction to Visual Basic

Visual Basic is a program developed my Microsoft which allows you to develop Windows applications quickly and easily without being an expert in C/C++ or other programming languages.
Visual Basic provides a graphical enviroment in which you visually design the forms and controls that become the building blocks to your applications. Visual Basic supports many useful tools that will help you be more productive. These include, but are not limited to, projects, forms, class objects, templates, custom controls, add-ins, and database managers. You can use these tools together to create complete applications in months, weeks or even days; producing an application in another language can take much longer.
Version 6 of Visual Basic is specifically designed to utilize the internet. It comes with several controls that allow you to create Web-Bases applications, called ActiveX executables. These work just like stand-alone Visual Basic applications, but they are accessed through the Microsoft Internet Explorer. Using this style of application, you can revise your existing Visual Basic applications and distribute them through the Internet. New to Visual Basic 6 are the ISAPI Applications and Dynamic HTML project templates. These templates provide you with a framework to develop server-side components as well as "smart" Webpages and applications.
When you start Visual Basic for the first time, the Project Wizard will open, and you will get a New Project dialog box.

Posted Image

From this window you have 3 tabs, New, Existing and Recent.

New
you can select several types of projects that will give you a head start on developing your applications.
By selecting a project template from the new tab you let Visual Basic create the foundation off your application.
The new tab gives you several project templates
Standard EXE
Active X EXE
ActiveX SLL
ActiveX Control
VB Application Wizard
VB Wizard Manager
Data Project
IIS Application
Add-In
ActiveX Document DLL
ActiveX Document EXE
DHTML Application
VB Enterprise Edition Controls
You will learn most off these project templates later on in my tutorials but at the moment we'll stick to the introductory!

Exisiting
When you click this tab you can open up sample projects that came with Visual Basic or an application that you've made in the past, as you use Visual Basic you will use this tab more often.

Recent
The Recent tab tab allows you to select the most recently prjects this is similar to the Existing tab, but it gives you a list of projects you've recently done not all the projects you've done.

IDE
Integrated Development Enviroment (IDE). The IDE is an important part of Visual Basic this is where you will put together your applications.
IDE is a term used in programming to describe the interface and enviroment you will use to create your applications.
Its called intergrated because you can access virtualls all off the development tools you need from one screen, called an interface.

The IDE is made up of a number off components:
Menu Bar
Toolbar
Project Explorer
Properties Window
Form Layout window
Toolbox
Form Designer

***********This is important YOU MUST BECOME FAMILIAR WITH THE IDE!!!!!***********

The Menu Bar

Posted Image

This is the text that lies accross the top of the Visual Basic window. its basically the same idea as what you see in other programs only this has alot of different options which you wont really see in many programs.

Toolbar

Posted Image

immediately below the menu bar should be the Visual Basic toolbar this gives you easy access to the menu-bar commands you'll use most frequently use.

Project Explorer

Posted Image

all of the objects that are in your application appear in this window. As you add more things to your project it will make a new folder for each different type for example it will make 1 folder for your forms a different folder for your modules and so on.

Properties Window

Posted Image

Positioned under the Project Explorer window is the Properties Window. The project window gives you various characteristics of selected objects. Say you have a command button selected if you go onto the properties window you can change the font, text colour, button colour and much more.

Form Layout Window

Posted Image

The Form Layout window is a simple tool. its purpose is to simply give you a thumbnail view of the current form, showing you what it looks like and how it is positioned on the screen at run time.

ToolBox

Posted Image

As the name says, the Toolbox contains the bits you need to create your application interface. All the tools are shown above. These tools are referred to as controls, most of them are an intrinsic part of Visual Basic and are called Standard Controls some examples are Command byttons, Textbox, Labels and so on.

Form Designer

Posted Image

In the center off the screen you will see the Form Designer. This is the workspace you will use to design your projects and place your controls.
You will also notice when you click on the Form Designer that there are little black boxes, these are what you will use to resize the form (you can also do this in properties window).

Conclusion

As i said before you should get real familiar with your IDE and i think after this tutorial you should just have a play around with Visual Basic.

To make an actual program to work you have to code it now this is the hardest part in some cases, as it may look like normal english sometimes, it isnt you'll find if you type in english you wont get any further than a hampster would through a brickwall.
To do this you double click on the Form Designer or right click on your form or Module in the Project Explorer and click "View Code".

Well thats it for now in the next tutorial you will actually make your first program Wooooo Hooooo lol.

Thank for reading i hope you liked

What you guys think, this is my first ever tutorial. i rekon this should give me a staff account

RoNsOn




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users