Friday, February 18, 2011

Ladies Wearing Hose And Girdles

CommandBotton

Once opened omar t program the option " CommandBotton " which will serve to create a button.


Figure 1

Stepping with the mouse 2 times Ventena appear a command which we use to program, this window is called (code)


To change the name to Command ( commandButton) and program (form1) is sought in the properties (to the right of the window) the option "Caption "




How Do You Use?



Once you create a command, we go to CODE (double click to IM) where we find the " Private Sub Command1_Click () " This tells us that we are talking the command which ends with "End Sub " within these lines is to be programmed.


The best way to learn is by example:
Figure 2
To create the button only proved necessary to write out "End "
as shown in the figure:
Figure 3
Example:
how to make a calculator?
Place a series of command's depending on your preference, in this case will easily. As shown in Figure 4.


Figure 4


is in a basic calculator, I hope they serve.

0 comments:

Post a Comment