Home All Groups Group Topic Archive Search About
Author
11 Apr 2005 5:50 PM
David
Hi,
How can i do to make a button under properties panel, to load some file as
template style of my control like Dundas Gauge?
Thanks

Author
12 Apr 2005 7:23 AM
Riki
David wrote:
> Hi,
> How can i do to make a button under properties panel, to load some
> file as template style of my control like Dundas Gauge?
> Thanks

Take a look at DesignerVerbs:
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemcomponentmodeldesigndesignerverbclasstopic.asp

In the verb's event handler, you can show whatever Windows
forms or dialog boxes you want. In your case, you can load some
file.

--

Riki
Author
12 Apr 2005 2:25 PM
David
Thank you!

And.. how to refresh the control after file loaded?, because when apply the
style the properties (in properties panel) are setted but the control still
without styles.



"Riki" <riki@nospam.com> wrote in message
news:ehWSQCzPFHA.3628@TK2MSFTNGP15.phx.gbl...
> David wrote:
> > Hi,
> > How can i do to make a button under properties panel, to load some
> > file as template style of my control like Dundas Gauge?
> > Thanks
>
> Take a look at DesignerVerbs:
>
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemcomponentmodeldesigndesignerverbclasstopic.asp
Show quoteHide quote
>
> In the verb's event handler, you can show whatever Windows
> forms or dialog boxes you want. In your case, you can load some
> file.
>
> --
>
> Riki
>
>
Author
15 Apr 2005 4:20 PM
Riki
David wrote:
> Thank you!
>
> And.. how to refresh the control after file loaded?, because when
> apply the
> style the properties (in properties panel) are setted but the control
> still without styles.

Call UpdateDesignTimeHtml()

--

Riki