Results 1 to 7 of 7
  1. #1
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy

    >Tutorial< How to press a button from form1 ON form2! (Useful)

    Welcome to How to press a button from form1 ON form2! (Useful for settings etc.)
    With some edit of the code you can have like this:


    For this tutorial you need:
    2Forms
    2buttons
    Some skillz ^^
    Visual Basic 2008
    ---------------------

    First we are going to make Form1!

    1. Start VB
    2. Create a app. and make 2 forms(form1 and form2)
    3. Make 2 buttons ( 1 on form1 and 1 on form2)
    Like this:

    Form1
    ............

    1. On button1 (Press button1 on form2) put this code:
    Code:
     My.Forms.Form2.Button1.PerformClick()
    (That´s the magic code xP thanks me if you use it in your applications!)


    2. On form1.load use this code:
    Code:
    form2.show()
    form2.hide()
    form2
    ........
    1. On button1 (When this button is pressed then msgbox ( PRESSED)) put this code:
    Code:
    msgbox("Pressed")
    ----------------------------------------
    Debug it and press button1 on form1, it will press the button on form2..

    End of tutorial!

    (use this code to press/do something on form2 from form1 My.Forms.Form2.your_button_etc_here
    -Rest in peace leechers-

    Your PM box is 100% full.

  2. #2
    Hyak's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    120°16.1'W 47°20'N
    Posts
    11,524
    Reputation
    508
    Thanks
    844
    how to press a button? lol even i cood do this without a tut

  3. #3
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Nice, will be useful to people that dont already know how to do a simple thing like this

  4. #4
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by Hyak View Post
    how to press a button? lol even i cood do this without a tut
    I made this for the choobies not for you^^] (kidding)
    -Rest in peace leechers-

    Your PM box is 100% full.

  5. #5
    Dreamer's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Seattle
    Posts
    8,745
    Reputation
    393
    Thanks
    1,481
    My Mood
    Bitchy
    ty for the tut lol parts of this is useful i guess
    Resource Team: Feb/5/2012 - May/5/2012
    Middleman: April/25/2012 - September/16/12


  6. #6
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    Absolutely amazing how did you figure that out?

  7. #7
    stevethehacker's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    USA bitch
    Posts
    416
    Reputation
    14
    Thanks
    51
    My Mood
    Bored
    Quote Originally Posted by wtfiwantthatname View Post
    Absolutely amazing how did you figure that out?
    no1 wants your sarcasm hole
    Last edited by Pixie; 11-13-2009 at 05:51 PM.

  8. The Following User Says Thank You to stevethehacker For This Useful Post:

    Pixie (11-13-2009)

Similar Threads

  1. [Tutorial(C++)]How to call functions within another process
    By radnomguywfq3 in forum Programming Tutorials
    Replies: 4
    Last Post: 07-08-2008, 07:33 PM
  2. Need Tutorial - How to make an annimation from a video
    By condor01 in forum Suggestions, Requests & General Help
    Replies: 5
    Last Post: 04-02-2008, 03:11 PM
  3. [TuT]How to make a button to start Warrock
    By str1k3r21 in forum Visual Basic Programming
    Replies: 8
    Last Post: 11-10-2007, 10:25 AM
  4. [Tutorial Request] How to join a clan
    By iHack in forum WarRock Korea Hacks
    Replies: 1
    Last Post: 07-30-2007, 06:59 AM
  5. (Request) A tutorial on how to extract addresses from trainers
    By englishpom in forum WarRock - International Hacks
    Replies: 9
    Last Post: 05-19-2007, 10:14 PM

Tags for this Thread