I've open a new form & maximize it.Then again on button click event I've open a new form with small dimensions.
Now,I want that the later form get disable,when I've open the second form.
tell me the code for that.

Can you restate your question? I'm kinda confused by the way you worded it.

Tekmaven, I think he means DoModal(). Meaning when the second form is called it is the form that has focus and is on top. You can't click on the form you called it from.

Unfortunately I can't for the life of me remember how you do that? Ugg, not even in VBA, but I have done it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.