-
Jul 17th, 2018, 08:46 PM
#1
Thread Starter
Junior Member
Disable form but allow the controlbox and move?
Hey guys,
Is there a way I can disable a form but allow the control box and the ability to move the form?
Or is it better to disable all the controls within the form?
-
Jul 17th, 2018, 08:50 PM
#2
Re: Disable form but allow the controlbox and move?
Add a Panel to your form and set its Dock property to Fill and move all the other child controls to the Panel instead of the form. You can then disable the Panel to disable all the controls on the form without affecting the form itself.
-
Jul 17th, 2018, 08:57 PM
#3
Thread Starter
Junior Member
Re: Disable form but allow the controlbox and move?
Thanks, good idea. I'll give it a try.
-
Jul 17th, 2018, 09:03 PM
#4
Re: Disable form but allow the controlbox and move?
Just be careful when you move the child controls because, if you cut and paste them, all the Handles clauses will be deleted from there event handlers. If that happens, it's easy enough to add them back manually or using the Properties window but you can avoid the issue if you drag and drop rather than cut and paste.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|