VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



ucAutoResize Controls Lean and usefull

by Light Templer (15 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)


]]] An improved AutoResize Usercontrol [[[ Put this small selfcontained usercontrol to your form, add
three chars to the tag property of every control to handle. Ready. Thats all! Based on the very good
submission of Hamed Oveisi (look/vote at VBC CodeId=49740) I tried to improve/change some things
('Refactoring' is the trendy word for ;) ):
* More possibilities in resizing (look at the 3D lines (frames) ).
* No more flickering when forms gets too small.
* No more call in the Form_Resize event neccessary. (In fact you didn't need ANY code.)
(Ups! Just check out Hamed's last update. He did the same ;) )
* The tag value still can be used for "standard" purposes. (But you will need a (very) litte
change in your code, sorry ;( )
* Its faster.
* Handling is easier/more straight forward. (Only two simple digits in tag value to enter, not four)
* Prepared for handling 'Lines', too. (Not done by me - I don't use lines ;) )
* A var naming convention is used, so code is easier to read/modify.
* Demo and description extended.
* ...
All -(C) Copyleft on 11/10/2003 - Light Templer (LiTe)

Rate ucAutoResize Controls Lean and usefull

Download ucAutoResize Controls Lean and usefull

Download ucAutoResize Controls Lean and usefull (9 KB)

ucAutoResize Controls Lean and usefull Comments

No comments have been posted about ucAutoResize Controls Lean and usefull. Why not be the first to post a comment about ucAutoResize Controls Lean and usefull.

Post your comment

Subject:
Message:
0/1000 characters