|
-
Apr 21st, 2020, 02:07 PM
#20
Re: [VB6] Manifest Creator II
 Originally Posted by VanGoghGaming
This code runs very nicely and provides a PictureBox container for each frame hosted inside a bigger frame. Hope this helps!
Nice touch, could help others. Just to nit pick a tiny bit... You could test the frame's container type instead of testing for Me, i.e., test for Frame specifically. If the container is a frame, then apply the dynamically loaded picturebox workaround, else don't. Worse case scenario otherwise is loading up unneeded picturebox controls, i.e., frame is in a picturebox already or frame added to some other ocx/control for example. Would be a small tweak and still remain generic.
The only potential flaw I can see, and it would be on per-user scenarios, is ZOrder when it must matter to the user. I think that in majority of scenarios, your code should work just fine.
Edited. If you want to tweak your code a bit, just update the above post vs. adding it again. Either way, I'm going to point people to your posting as an option for that specific problem.
Last edited by LaVolpe; Apr 21st, 2020 at 02:59 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
|