Lightweight Controls

Hi, what does "lightweight" mean? [Does it just mean "smaller in size"?] How do you make an ActiveX control "lightweight" ?
totoro030898Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
kamallConnect With a Mentor Commented:
Lightweight controls are those controls that does not contain many properties, methods or objects inside (such as forms or other controls). They also involve 'light' code, that is code segments that do not perform many operations such as API calls for a given method.
Lightweight controls are generally small in size but this is not a rule.
Hope that helps.
Regards
0
 
totoro030898Author Commented:
Thks! I hope you don't mind me asking another one : Would controls made using C generally more lightweight than those made usin VB? If so, why?
0
 
kamallCommented:
I don't mind at all totoro.
But, to be honest, I can not offer a fair answer on that one because I don't know C. However, from my experience, I could see that controls made in C are generally 'lighter' than those made in VB, although you can not compare two controls that are completely different.
The first thing you can see when loading a control on your form is that a control made in C will load more quickly that those made in VB. In addition, controls made in C have dependencies on the native C and windows libraries, while those made in VB need the VB runtime library that have imports from the C and Win DLLs, i.e they have an additional layer of dependency.
Hope that helps.
Regards
0
 
totoro030898Author Commented:
Thanks! that really helps :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.