rustyfancy Posted March 26, 2004 Posted March 26, 2004 I have two forms...Form1 and Form2. When I open Form2, it lies over Form1. How can I prohibit the user from clicking anywhere on Form1, and thus, making it the topmost Form. I ONLY want the user to be able to click on Form2 when it's Visible. --Matt Quote
Quercus Posted March 26, 2004 Posted March 26, 2004 Use the ShowDialog method of Form2: // C# Form2 MyForm = new Form2; MyForm.ShowDialog; ' VB Dim MyForm as new Form2 MyForm.ShowDialog() Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.