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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I keep the Focus of a Form?

Status
Not open for further replies.

ShaneBrennan

Programmer
May 19, 1999
198
GB
I have a form, that I wish to keep active until a button called cmdExit is pressed. there are other forms on the screen - but I don't want this form to hide behind them. In a way I'm looking for something like a msgbox where you MUST press the OK or CANCEL button to progress.

Anyone got any suggestions.

Thanks

Shane. Shane Brennan

'-----------------------
' ICQ#125948839
' Emails: sab149@icqmail.com
' shanebrennan@postmaster.co.uk
' Personal ICQ Comms. Centre: wwp.icq.com/125948839
'
' Personal WebPage:
 
Shane,
In form properties set vbmodal = yes.

Russ
 
Thank you very much. Been looking for a way to do that for ages.

I wondered what the "modal" property was or what it was used for.

What does it actually mean.

Shane Brennan

'-----------------------
' ICQ#125948839
' Emails: sab149@icqmail.com
' shanebrennan@postmaster.co.uk
' Personal ICQ Comms. Centre: wwp.icq.com/125948839
'
' Personal WebPage:
 
I've used this in Visual Basic and I think that's where it started. It's more powerful there because you can make a control modal. i.e. if a textbox is left blank and a user tries to tab off it won't let them.

Russ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top