#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    24
    Rep Power
    0

    How I Activate A Button By Default???


    Hi!
    My question is simple(I think!); I have an application that makes a remote connection by clicking a button on the form: How I can do the connection automatic (without clicking the button??)???
    Thank You!!
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    Take the code that is in the ButtonClick event handler for that button and put it into the FormCreate event handler instead. Alternatively, you can call the ButtonClick event from FormCreate event handler:
    Code:
    procedure TForm1.FormCreate(Sender: TObject);
    begin
    	Button1Click(sender);
    end;
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    24
    Rep Power
    0

    Smile Thank You!!


    Thank You 'Scorpions4ever'!!
    You solved my trouble!!
    Thank You Again!!

IMN logo majestic logo threadwatch logo seochat tools logo