Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep Focus on a Form

Status
Not open for further replies.

kennedymr2

Programmer
May 23, 2001
594
AU
I have two forms open (Form1... Form2), the top form (Form2) ,i have set up as a popup form, so that it stays on top..

I would like the Form1 undeneath to stay visible, but keep the user focus on the popup (Form2).. ie not let them click on any textboxes,controls on the Form1.

Is there any simple way of doing this.. have tried all the events on Form2 ie lostfocus etc... they do not seem to trigger..

Appreciate any help

Regards Kennedymr2

 
what have you tried with the lost focus event?

have you tried to set focus beck on form2?

or to disable the form until form2 is closed?

joe
 
JoeMicro...

Thanks for your reply...

How do you disable a form...
I realize i can disable each control on the form individually, is there a way of just disabling the form in one line of code..

Appreciate your help

Regards Kennedymr2
 
Have dug around and found out how to achieve it..

Did not realize you could use

------set forms property to modal

Have tried it... and it seems to work.. and it keep focus on the top form


Appreciate the help offered


regards Kennedymr2


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top