Solved

Lightweight Controls

Posted on 1998-11-23
4
224 Views
Last Modified: 2013-12-26
Hi, what does "lightweight" mean? [Does it just mean "smaller in size"?] How do you make an ActiveX control "lightweight" ?
0
Comment
Question by:totoro030898
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 120 total points
Comment Utility
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
 

Author Comment

by:totoro030898
Comment Utility
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
 
LVL 7

Expert Comment

by:kamall
Comment Utility
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
 

Author Comment

by:totoro030898
Comment Utility
Thanks! that really helps :)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now