Results 1 to 4 of 4

Thread: Resolved....cmd button click event

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    Resolved....cmd button click event

    Does anyone know how to stop a user from clicking a command
    button without litterally disabling the button

    i.e a user clicks a cmd but. the results get printed and if the click
    the button again the results are printed again..

    Thanks for your help
    Last edited by holly; May 6th, 2003 at 04:48 AM.
    ** HOLLY **

  2. #2
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    You could hold a var with value of printed or not, act accordingly

    VB Code:
    1. Option Explicit
    2. Private bPrinted As Boolean
    3.  
    4. Private Sub Command1_Click()
    5.    If Not bPrinted Then
    6.       MsgBox "printed"
    7.       bPrinted = True
    8.    End If
    9. End Sub
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  3. #3

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    Its ok, I managed to resolve it

    Thanks
    ** HOLLY **

  4. #4

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    Thanks Swatty, You're example lools better than my solution..I think
    I will try yours

    Thanks for replying
    ** HOLLY **

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width