|
-
Aug 4th, 2000, 04:00 AM
#1
Thread Starter
Lively Member
Hi!
I have used in an application of mine the Microsoft Form 2 Contols; the problem is that when i click two times on a button very fast (in fact, dblclick) it remains pushed down executing only once the istruction click, while i want it to execute two times the istruction, as if there has been 2 single clicks.
For example, if i press the button "9" two times, i want the program to write in the textfield "99" and return in the original-non-pressed state. Now it writes "9" and keeps pressed down!
Thanks a lot
-
Aug 4th, 2000, 07:23 AM
#2
_______
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 4th, 2000, 07:24 AM
#3
Lively Member
Very easy answer.
You have used the Toggle button control and NOT the Command button control.
-
Aug 4th, 2000, 12:09 PM
#4
Thread Starter
Lively Member
No, i used a command button... sob! Here's an example code:
Private Sub CE_Click()
Rem Clean the textfield
Text1.Text = ""
tmpTxt = ""
End Sub
I really can't understand why it happens!
Thanks
-
Aug 4th, 2000, 12:32 PM
#5
Fanatic Member
Very easy
In the DoubleClick Event put this code:
Code:
Private Sub CommandButton1_DblClick(Cancel As MSForms.ReturnBoolean)
Cancel = True
End Sub
-
Aug 4th, 2000, 12:53 PM
#6
_______
<?>
CLick event...
Text1.Text = Text1.Text & 9
[Edited by HeSaidJoe on 08-04-2000 at 03:02 PM]
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 4th, 2000, 12:59 PM
#7
Fanatic Member
Sorry I didn't read your question carefully enough
Try this
Code:
Option Explicit
Private Sub CommandButton1_Click()
Form1.Print "HI"
End Sub
Private Sub CommandButton1_DblClick(Cancel As MSForms.ReturnBoolean)
Cancel = True
CommandButton1_Click
End Sub
-
Aug 6th, 2000, 03:45 AM
#8
Thread Starter
Lively Member
GREAT! That worked very well! Thank a lot!
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
|