lunes, 10 de diciembre de 2007

Visual Basic lesson 3

In this lesson we'll see how to create events an we'll see "event Driven programs".

There are hundreds of events available for your application to respond to.

First of all, we'll open hello world application and double click the button to go to the source code window.

we'll see two blocks of code, divided by a +- button. we know that events are triggered into our application. the application can respond (or ignore) these events. we have to write code in event handler to handle events. this code must reside into a code block.

Methods are the basicbuilding blocks of writing code. An event handler is a more specific type of a method.

The best thing is that we don't have to memoryze events. Just by clicking an object, we'll see all the events available.

If we want to modify what an object of our form does, we just have to modify the code inside the object's block of code.

We create a new project called Lesson03. and we insert a text box and a button and change their names. then we have to go to the code window by double clicking and insert the necessary code.

VB helps us by adding a list of options while we are writing.
you can add comments on your code just by pit the comment into ' signs.

If you want, you can create regions containing methods, and you don't have to remember them any more.

And that is the end of lesson 3....

1 comentario:

Paloma dijo...

and we'll see
CAPITAL LETTERS AT THE BEGINNING OF A SENTENCE:
We'll see
We know
The application
memorize
just by pit ??