>>>I want to activate a form from the text2.click event of a grid without releasing the current form - the new form loads but behind the current form - both forms are modal - I have tried all the settings for the new form ie on top etc but it makes no difference
>>>
>>>If I put the code in the click event of a button it works fine
>>>
>>>What am I doing wrong?
>>>
>>>Colin
>>
>>Something is wrong here. Could you show how you call the new form? Is it plain DO FORM command?
>>Anyway, it's a good practice: every time before you call something from grid you may move focus out of the grid by using AnotherObject.Setfocus
>
>Edward
>
>I have set focus to a command button and put the do form in the get focus event of the button - it works
>
>Thanks a lot
>
>Colin
Glad, it works. I suspect you have something in Grid.Textbox.Lostfocus event or Grid.BeforeRowColChange event to mess with form opening.
Edward Pikman
Independent Consultant