• Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7




Wednesday, June 13, 2012

VISUAL BASIC 6 - TUTORIAL FOR NEWBIE (CLEAR, PRINT, EXIT)

Hi... Now You at Site WE ARE KNOWLEDGE... Having get IT Knowledge in here... You can teke the IT knowledge in here FREE. So Let's do Read this article...

This time I want giving you tutorial about using Clear, Exit, and Print on program language VB 6.In VB 6 has provided a place to put the coding.. For open the place of coding. choice "view" in menu bar. and then choice "code".


And make like this I using 12 (twelve) toolbox... If you not like with my form.. you can change it..
You can use facility "TOOLBOX"

for "NAME", "NPM", "CLASS" >> using label.
for white column >> using text.
for "CLEAR", "PRINT", "EXIT" >> you must using button.

function of button

clear >> for cleaning the toolbox "text"
print >> for printing value in label
exit  >> for quit from project.



You can change name tools with click tool want you change name or size then choice in poperties
for text in text, label in label and command button in caption...

If after input this program in progam code with "view >> code".. Or double click in tool and you want direct enter in program code.....

Private sub command1_click()
text1.text =  ""
text2.text =  ""
text3.text =  ""
label1.caption = ""
label2.caption = ""
label3.caption = ""
End Sub

private sub command2_click()
label1.caption =  text1.text
label2.caption =  text2.text
label3.caption =  text3.text

private sub command3_click()
End
end sub


And Result...




And if done..
you can execution this program...

Click Knop play or press "F5"

First You to fill up Name, Npm, and class
And Then click "knop print"


Second I click knop "EXIT"... and result name, npm, and class clean... and cursor be at "NAME".. because I using setfocus..



So stfocus is.... statement avail for move cursor in place you want...

Ok Just it..
Thanks for visitors and the readers....
see you later the program language vb 6 lover

No comments:

Post a Comment