ALX
Well-known member
I'm curious to know how much memory is allocated to each label object created on a typical form. I'm probably a little too much "OLD SCHOOL" and I tend to use resourses sparingly. I know memory is cheap & plentiful these days but i still like to keep my code as lean as possible. On one form I have graphically painted the display rather than build it with label controls in an effort to keep the footprint of this program compact as there would be over 200 labels to accomplish the same display. There would be a couple slight benefits to using labels on this form though (...clickable, etc ) and I would consider using labels depending on how severely it taxes memory.
Is there a function in vb.NET that returns the amount of free memory so that I could run a quick benchmark test... or maybe someone may know just how much memory a typical label control uses ???
Thanx in advance !
Is there a function in vb.NET that returns the amount of free memory so that I could run a quick benchmark test... or maybe someone may know just how much memory a typical label control uses ???
Thanx in advance !