|
-
Apr 16th, 2017, 03:04 PM
#5
Re: Drag form by any "gray" space rather than just the title-bar
Rather than think through all of that, I just took my comprehensive approach.
Been there, done that.
Regarding the looping, it just appears you are looping thru every control twice. Once when setting the scalemode and again during the setup routine. Removing the scalemode is a bit more efficient, but at the cost of arrays. I looked at that process and kinda cringed a bit. 
I doubt this will ever come into play, but I don't see a workaround unless you can build off an image array... You are creating one image control per form, per container. VB has a limit of how many controls can be used and arrays are somewhat excluded. I don't recall if those created with Controls.Add() count towards that limit or not? Like I said, it is unlikely this scenario would occur unless the form already has a ton of controls, many of which are containers.
Edited: Though I've seen some weird stuff in my days, like a 12x12 grid composed of picturebox controls when a label or image control would have sufficed and used far less resources.
Last edited by LaVolpe; Apr 16th, 2017 at 05:12 PM.
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
|