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!

Form overlaying another form - don't allow user to click between them 2

Status
Not open for further replies.

JESTAR

Programmer
Feb 13, 2002
213
GB
Hi. I have a form that appears over another form (only so the user can select something). When the second form (Form2) is open, the user can click on the main form (Form1) which is visible behind it and switch back to it, leaving no way (other than ALT + TAB, or reopening Form2) to get back to it as I don't want Form2 appearing on the taskbar at the bottom.

How do I disable this?
 
Set the form property when opening it to be modal.
i.e. if you use form2.show to open your second form from your first form pass the parameter vbmodal and this will make it act like a dialogue,

form2.show vbmodal


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top