How to make a form on the top of all forms?

M

MJ

as topic, if i have form1 and form2, form1 active form2 by
using form2.show
how to make form2 on the top of form1 which make user
cannot click on form1?
i used form2.topmost = True, although form2 is on the top
of form1 but user still can click on form1
which make form1 become the active form and form2 become
inactive
wat i require is user must close form2 first b4 they can
clickon form1
how am i going to do that?anyone can help?
any help is greatly appreciated....
 
R

Rigga

try form2.showdialog

upon closing form2 code will then reurn to the point after the showdialog
line.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top