|
-
Nov 19th, 2011, 04:25 PM
#24
Re: Move and Resize a Control or a Borderless Form - using window messages (smooth!)
1. This is probably due to the TableLayoutPanel taking control of the sizing in some way. I have no clue how to get around it, if it's possible at all.
2. Apparently the system doesn't check the minimum and maximum size of controls in the same way it does for forms. My code works by treating the control as a window and utilizes the system moving and resizing messages. The result is that the moving and resizing works as optimized as possible (this is why it's so smooth), but at the same time you have very little control over it. For example you can't go below a hardcoded minimum size (the same minimum size that every window in windows gets, try resizing your browser window as small as you can), this seems to be wired into the system somehow and I don't think there's any way around it.
Long story short: if the system ignores the minimum / maximum size properties of the controls, I doubt there's a way around it. You can try catching Resizing events (though I doubt they will be raised) and reset the value there, perhaps...
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
|