By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,714 Members | 1,318 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,714 IT Pros & Developers. It's quick & easy.

How to disable the back side form when a dailog box opened.

P: 75
Hi,
I' developing a VB application. When user clicks on 'Tools' option from the Main Form, a dailog box will appear, which is developed using another VB form itself. But while the dailog box is visible in front of Main Form, if user clicks on accidentally the backside appearing Main Form, this Dialog box will goes back which is invisible. But I don't want to this to happen. Until the user responds either OK or CANCEL button in dailog box the back side MAIN form should not be active. How to do this...? Please help me.


Thanks & regards,
Prem
Apr 16 '09 #1
Share this Question
Share on Google+
3 Replies


debasisdas
Expert 5K+
P: 8,127
You need to make the dialog box modal.
Apr 16 '09 #2

P: 75
@debasisdas
How...?
I had set my form's BorderStyle property to 3-Fixed Dailog.
But still couldn't solve.


Please tell me how to set Dailog Modal.

Please,................
Apr 18 '09 #3

debasisdas
Expert 5K+
P: 8,127
you need to pass that as an argument with the SHOW method of form.
Apr 20 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.