Results 1 to 2 of 2

Thread: TabIndex question??

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Posts
    52
    Hi,

    I have two forms -- the main form has a textbox and a button. The second form has a button that will unload itself and return to the first form when it is pressed. My problem is when I pressed the button on the second form and it returns to the main form the cursor does not blink inside the textbox. I set the textbox on the first form to 0 (zero) and the cursor does blink inside the textbox when the program begins however it does not do that when I return back to the first form with the execution of the button on the second form. If anyone can help I would really appreciate it. Thank you!


    Marci
    Marci Sarwan

  2. #2
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    In the Form_Activate event of the first form, put this line:
    Code:
    Text1.SetFocus
    "It's cold gin time again ..."

    Check out my website here.

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