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

    Join Date
    Apr 2004
    Posts
    28
    Rep Power
    0

    putting cursor in tedit automatically


    i have a form with a tedit box and i want to autoamatically place the cursor into that tedit box when the form is created. How would i do something like that?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Posts
    41
    Rep Power
    10
    Originally Posted by room24
    i have a form with a tedit box and i want to autoamatically place the cursor into that tedit box when the form is created. How would i do something like that?
    Try this:
    Code:
    procedure TForm1.FormActivate(Sender: TObject);
    begin
      Edit1.SetFocus;
    end;
    UltraMAX

IMN logo majestic logo threadwatch logo seochat tools logo