Modal form

  • Thread starter Thread starter Praveen Manne
  • Start date Start date
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
 
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
 
Back
Top