VB calles every Property Get on my Custom Control 
Author Message
 VB calles every Property Get on my Custom Control

I have an activeX control with a lot of properties.  When I drop the
control on a form VB calls every Property Get procedure of the control
to fill the properties list.  This gets annoying because it calls all of
them everytime I move the control around on the form and it takes a
while so there is a delay in repainting the screen.  I found out that by
raising an error on some of the property gets only at design time I
could control what actualy gets displayed in the properties list.  It
still has to call all of these property gets though.  Is there any other
way around this? Things work fine if I keep the properties list window
closed but I like to have it open.

Thanks,
BR



Sun, 24 Mar 2002 03:00:00 GMT  
 VB calles every Property Get on my Custom Control
Just and idea, but you can turn off the property from the property browser.
This can be done from the menu Tools|Procedure Attributes and selecting
'Don't show in Property Browser'

--
Best regards,

Paul Williams

----------------------

Quote:
> I have an activeX control with a lot of properties.  When I drop the
> control on a form VB calls every Property Get procedure of the control
> to fill the properties list.  This gets annoying because it calls all of
> them everytime I move the control around on the form and it takes a
> while so there is a delay in repainting the screen.  I found out that by
> raising an error on some of the property gets only at design time I
> could control what actualy gets displayed in the properties list.  It
> still has to call all of these property gets though.  Is there any other
> way around this? Things work fine if I keep the properties list window
> closed but I like to have it open.

> Thanks,
> BR



Sun, 02 Jun 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. how to automate loading custom control every time VB opens

2. VB6: Property Sheets Bug?, Custom Controls and properties

3. Getting Every Control On A form

4. VB 6 ActiveX Control in Windos Form, can't access any custom properties

5. How to Add custom properties to VB Controls?

6. Custom Properties in VB Control

7. Custom Properties in VB Control

8. Getting Page Custom Properties onto a new page

9. Getting 0.0000 from custom property ??

10. Getting the text property to appear in a custom button

11. VB 6 / SQL Server 7 App gets Timeout expired (-2147217871) about every 50 minutes

12. Custom Property changes in Custom Outlook Form

 

 
Powered by phpBB® Forum Software