StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Locking MDI child question...Expand / Collapse
Author
Message
Posted 08/30/2006 9:11:33 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
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
Post #2550
Posted 08/30/2006 6:42:02 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
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.


www.bungie.net
Post #2564
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:12pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 12 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.