Modal form

P

Praveen Manne

Hi,

I have a basic question. I think u guys can help me out .

I have 2 forms and a pop up form which property is set to 'Modal'

when I opened the 2nd form using a command button on the first form , the
pop up form should pop up. Since it is modal, no other form will work until
you click 'OK' button on that pop up form. when i click ok, the 2nd form
should get focus since it is pop up form for the 2nd form. But, 1st form is
getting focus when I clik OK on the pop up form. How to get focus to the 2nd
form when I click OK on the pop up form

Thanks
Praveen Manne
 
D

Damien McBain

Praveen said:
Hi,

I have a basic question. I think u guys can help me out .

I have 2 forms and a pop up form which property is set to 'Modal'

when I opened the 2nd form using a command button on the first form ,
the pop up form should pop up. Since it is modal, no other form will
work until you click 'OK' button on that pop up form. when i click
ok, the 2nd form should get focus since it is pop up form for the 2nd
form. But, 1st form is getting focus when I clik OK on the pop up
form. How to get focus to the 2nd form when I click OK on the pop up
form

Thanks
Praveen Manne

U can use

Me!SecondForm.SetFocus

In your on_click sub or in another event like onclose.

Damo
 

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