Lightweight Controls

Posted on 1998-11-23
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" ?
Question by:totoro030898
  • 2
  • 2

Accepted Solution

kamall earned 120 total points
ID: 1488461
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.

Author Comment

ID: 1488462
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?

Expert Comment

ID: 1488463
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.

Author Comment

ID: 1488464
Thanks! that really helps :)

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
passing parameter in sql procedure 9 56
MS Date Picker 64 bit 32 bit issue 12 49
Passing a Text Box name to a Sub 6 74
how to know if my Checkbox is True in VB6.0? 9 38
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

910 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

20 Experts available now in Live!

Get 1:1 Help Now