|
-
Oct 26th, 2006, 04:53 PM
#1
Thread Starter
New Member
Click HELP!!!!
I am new to this forum and programming
I am trying to create a program in which when you click the button it counts how mnay clicks you do. i have came across some problems can someone help?
) When you click on the "button" it show it while clicking but when you let go it disappears. i want to let go and it stay there and change
1,2, 3 etc.
) what must you do for it to clear the picbox and restart count?
) i also want the game to it prompts for a number as a time value 20 secons andwhen you click the button it starts at the value and you can see the timer and counts down and records the clicks. once the set time is up the button is disabled.
Help?
VB Code:
Dim num As Integer
Private Sub cmdclick_Click()
picscore.Cls
NumberCount = 1
End Sub
Private Sub cmdclick_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
num = num + 1
picscore.Print num
End Sub
Private Sub cmdprocess_Click()
'
'
'
Dim Names As String, Location As Single, First As String, Last As String
picscore.Cls
nom = Val(txtname.Text)
Locations = InStr(nom, " ")
First = Left(nom, Locations - 1)
Last = Right(nom, Len(nom) - Locations)
ScoreRound = Round(FormatNumber(Score, Number))
Number = (txtdec.Text)
picscore.Print First; " "; ","
picscore.Print "Your Score Is:"
picscore.Print Last
End Sub
Private Sub cmdquit_Click()
End
End Sub
Private Sub Command1_Click()
NumberCount = 1
End Sub
-
Oct 26th, 2006, 04:54 PM
#2
Re: Click HELP!!!!
VB Code:
Option Explicit
Dim ClickCounter As Integer
Private Sub Command1_Click()
ClickCounter = ClickCounter + 1
End Sub
-
Oct 26th, 2006, 04:57 PM
#3
Re: Click HELP!!!!
Just put If...Then statements after each click to direct the program to whatever function needs to happen when certain criteria are reached.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|