StrataFrame Forum

Locking MDI child question...

http://forum.strataframe.net/Topic2550.aspx

By StarkMike - 8/30/2006

Lets say I have two mdi child forms open (Form1 and Form2) in an mdi parent and both of the child forms were opened using Form.Show.



Lets say I click a button on Form1 and I want the focus to stay locked on Form1 until I click another button and unlock it? Is this possible.



The reason I ask is if i want to edit the data on one form and i dont want the user to be able to switch between forms in the middle of an edit.



Thanks
By StrataFrame Team - 8/30/2006

You would have to set some sort of flag to tell the form that it needs to be "modal" and then test that flag within the Deactivate() event of the form and just call Me.Activate() if the flag is set.