Sunday, May 20, 2007

Visual Basic ® 6 Daily Tutorial

showing 1-5 of 5 first | <> | next > | last


B_R
(manage)
May 17(4 days ago)
The Visual Basic Environment
On start up, Visual Basic 6.0 will display the following dialog box as shown in figure 1.1.
You can choose to start a new project, open an existing project or select a list of recently opened programs. A project is a collection of files that make up your application. There are various types of applications we could create, however, we shall concentrate on creating Standard EXE programs (EXE means executable program). Now, click on the Standard EXE icon to go into the actual VB programming environment.

http://tinyurl.com/5c8do/vb11.jpg
delete


(manage)
May 17(4 days ago)
http://msdn.microsoft.com/ online help on VS

good spidy keep going
delete

B_R
(manage)
9:21 pm(14 hours ago)
play with command buttons.
follow the instruction as per post 1 to start project.

drag and drop 4 buttons.

and double click on those buttons will get this code

Private Sub Command1_Click()

End Sub

Private Sub Command2_Click()

End Sub

Private Sub Command3_Click()

End Sub

Private Sub Command4_Click()

End Sub

Private Sub Form_Load()

End Sub
delete

B_R
(manage)
10:04 pm(14 hours ago)
we are going to develop our command button logic for our programme (say flooder).

and conditions are...

1) when our programme starts(form load) only 1st buttons should have enable (clickable). and all 3 buttons disabled. The code for fromload event is ...


Private Sub Form_Load()

Command1.Enabled = True 'enables command button 1

Command2.Enabled = False 'disables command button 2

Command3.Enabled = False 'disables command button 3

Command4.Enabled = False 'disables command button 4

End Sub


2)When we click on 1st button 2nd button get enabled and 1st becomes disabled. we have to write code in click event of command1


Private Sub Command1_Click()

Command2.Enabled = True 'enables command button 2

Command1.Enabled = False 'disables command button 1

End Sub


3)

Private Sub Command2_Click()

Command3.Enabled = True 'enables command button 3

Command2.Enabled = False 'disables command button 2

End Sub


4)


Private Sub Command3_Click()

Command4.Enabled = True 'enables command button 4

Command3.Enabled = False 'disables command button 3

End Sub


5)


Private Sub Command4_Click()

Command1.Enabled = True 'enables command button 4

Command4.Enabled = False 'disables command button 1

End Sub


in this e.g when we click on 1st button, 2nd button enables and 1st disables , click on 2nd button enables 3rd button.. and disables 2nd and so on...

[bule]This process is like a close loop ... 1-2-3-4-1-2-3-4-......

download sample exe:

http://hummm.hummm.googlepages.com/1st.exe
delete

B_R
(manage)
10:08 pm(14 hours ago)
[bule]*
delete

showing 1-5 of 5

No comments: