Locking MDI child question...


Author
Message
StarkMike
StarkMike
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Forum Members
Posts: 436, Visits: 944
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
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search