Share this:


AN INTRODUCTION TO VISUAL PROGRAMMING USING VB.Net

Contents

1. WINDOWS ENVIRONMENTS

2. PROGRAMMING LANGUAGES

Since the early beginnings of the modern digital computer, many and various programming languages have been created. Each one has been created for a specific task or to improve the effectiveness and efficiency of the code. For example, one of the earlier languages, FORTRAN (Formulate Translation) was written for mathematicians and scientists to use. Because of its simplicity of use PASCAL has been adopted by many schools and colleges to teach the basics of programming. COBOL (Common Business Oriented Language) was, for many years the choice of language in business applications. Many of the earlier languages could be described as being Procedural languages which are based on the concept of the Procedural Call. When the program is executed (run) the program will run through a sequence of procedures, sub procedures and functions until it has completed its task.

3. VB.NET

CREATING A MDI APPLICATION

STARTING A NEW PROJECT

EcoleBooks | COMPUTER A LEVEL(FORM SIX) NOTES - AN INTRODUCTION TO VISUAL PROGRAMMING USING VB.Net

SAVING THE PROJECT

EcoleBooks | COMPUTER A LEVEL(FORM SIX) NOTES - AN INTRODUCTION TO VISUAL PROGRAMMING USING VB.Net

THE ELEMENTS THAT MAKE UP THE IDE


EcoleBooks | COMPUTER A LEVEL(FORM SIX) NOTES - AN INTRODUCTION TO VISUAL PROGRAMMING USING VB.Net
EcoleBooks | COMPUTER A LEVEL(FORM SIX) NOTES - AN INTRODUCTION TO VISUAL PROGRAMMING USING VB.Net

ACCESSING THE CODE WINDOW


C:thlbcrtzAnIntroductiontoVi_filesimage021.jpg
EcoleBooks | COMPUTER A LEVEL(FORM SIX) NOTES - AN INTRODUCTION TO VISUAL PROGRAMMING USING VB.Net

THE TOOLBOX

ADDING A MENU

ADDING OTHER FORMS


C:thlbcrtzAnIntroductiontoVi_filesimage034.jpg

C:thlbcrtzAnIntroductiontoVi_filesimage037.jpg

C:thlbcrtzAnIntroductiontoVi_filesimage038.jpg

Summary

APPENDIX

PREFIXES AND NAMING CONVENTIONS

When we add controls to a form we must always remember to name the control correctly and to do this we use a convention of prefixes for different controls. The prefix for a menu item is menu i.e. menu File. Using this convention for all controls makes it easier to read code and identify particular controls, however, we must also give the controls meaningful names as well i.e. menu File, mnuExercise2 etc. The prefix is always shown in lower case except for forms which always have a upper case first letter to the prefix i.e. Frm My Form. Another tip to aid readability of the code is to capitalist the first letter of every word used in a name i.e. text Students Address – a textbox for inputting a student’s address (spaces are not allowed). I always use this convention for variable and procedure names (more on this subject later)
Control
Prefix
Label
lbl
Textbox
txt

Command Button
btn
Form
Frm
Combo Box
cbo
Check box
chk
List box
lst
Radio button
rad
Menu item
mnu
Timer
tmr


EcoleBooks | COMPUTER A LEVEL(FORM SIX) NOTES - AN INTRODUCTION TO VISUAL PROGRAMMING USING VB.Net

subscriber

Leave a Reply

Your email address will not be published. Required fields are marked *

Accept Our Privacy Terms.*