Saving properties of ActiveX control from design time to run time 
Author Message
 Saving properties of ActiveX control from design time to run time

Hello.

When I type in my properties for the control in the properties window, and
then run the project, the properties are never passed to the control.

How do I get the values typed in to be saved in the control?

Thanks,
Bodi

--
Remove NOSPAM to reply



Thu, 09 Aug 2001 03:00:00 GMT  
 Saving properties of ActiveX control from design time to run time
You have to use the WriteProperties and ReadProperties events of the
UserControl object to set the properties at design-time.  

The MSDN Libraries that come with VB (also available on-line at
msdn.microsoft.com) have some good examples on how to do this.  Search
for Create ActiveX Control

Jeremy

On Sun, 21 Feb 1999 14:16:58 -0500, "Jedi"

Quote:

>Hello.

>When I type in my properties for the control in the properties window, and
>then run the project, the properties are never passed to the control.

>How do I get the values typed in to be saved in the control?

>Thanks,
>Bodi

>--
>Remove NOSPAM to reply



Thu, 09 Aug 2001 03:00:00 GMT  
 Saving properties of ActiveX control from design time to run time
The UserControl has an InitProperties event that occurs when the control is
first sited on the host form.  You can initialize any properties there.
Read the chapters 'Creating ActiveX Controls' and Building ActiveX
Controls' in the documentation or in the MSDN Online Library.

Brian-



Quote:
> Hello.

> When I type in my properties for the control in the properties window,
and
> then run the project, the properties are never passed to the control.

> How do I get the values typed in to be saved in the control?

> Thanks,
> Bodi

> --
> Remove NOSPAM to reply



Fri, 10 Aug 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Design-time properties in Run-time Controls

2. Accessing design time properties in run time

3. Design time or run time, setting properties

4. getting run-time behavior of a contained control in a user control at design time

5. Assign a treeview at design run time to other at design time

6. ADO Data Control - Design Time/Run Time database locations

7. Specifying design-time properties in ActiveX controls

8. ActiveX Control Design-Time Properties

9. Code running in design time or run-time?

10. How to show the property window from my activex control in run time

11. web service and updating web reference with vb.net design time vs run time

12. web service and updating web reference with vb.net design time vs run time

 

 
Powered by phpBB® Forum Software