Results 1 to 4 of 4

Thread: Make the computer thing the user did something

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    Iowa
    Posts
    96

    Make the computer thing the user did something

    How do i make the computer think the user did something such as click a button on my form, or something like that...

    There is probably a easier way but how do I make a button1.click happen when something else happens as well instead of only when it is clicked?
    It is like wiping your ass with silk, I love it!

  2. #2
    Addicted Member
    Join Date
    Sep 2003
    Posts
    227
    create a seperate method, and put your code in it. call that method form the button1 onclick handler and call it whenever you want that peice of code to execute

  3. #3
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    Or:
    VB Code:
    1. Button1.PerformClick()

  4. #4
    Addicted Member
    Join Date
    Sep 2003
    Posts
    227
    Originally posted by VBCrazyCoder
    Or:
    VB Code:
    1. Button1.PerformClick()
    first time seeing that, cool !

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