Helo Pals: (This is Visual Basic .Net)I have this problem defining a complex property on a UserControl. The property is CustomType defined in another class and I hope its behavior be the same as .Net Color.
1.. How do I make it accesible and usable as .Net Color? I don't know if it must be shared, or whatelse...
2.. How do I indicate to the VS Property Browser that I want to show it 'editable' but NOT 'expandable' and that its caption shows the name of the current setting?
This StyleSet class defines gradient style elements as:
a.. BorderColor
b.. BorderGradientColor
c.. BackColor
d.. BackGradientColor
e.. TextColor
f.. TextShadowColor
g.. GradientDirection
The StyleSet class have some methods to stablish standar gradient combinations and must be asigned as .Net Color does:
a.. MyControl.StyleSet = StyleSet.Sunset
b.. MyControl.StyleSet = StyleSet.Green
c.. MyControl.StyleSet = StyleSet.SystemControl
d.. MyControl.StyleSet = StyleSet.Gold
The control has a property of the type of StyleSet class:
a.. Public Property StyleSet as StyleSet
Ask me for more details if needed.
Thank you.
David
Alex Dybenko - 28 Oct 2005 10:29 GMT
Hi David,
try to ask at VB.NET group, this on for Access questions

Signature
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
Helo Pals: (This is Visual Basic .Net)I have this problem defining a complex
property on a UserControl. The property is CustomType defined in another
class and I hope its behavior be the same as .Net Color.
How do I make it accesible and usable as .Net Color? I don't know if it must
be shared, or whatelse...
How do I indicate to the VS Property Browser that I want to show it
'editable' but NOT 'expandable' and that its caption shows the name of the
current setting?
This StyleSet class defines gradient style elements as:
BorderColor
BorderGradientColor
BackColor
BackGradientColor
TextColor
TextShadowColor
GradientDirection
The StyleSet class have some methods to stablish standar gradient
combinations and must be asigned as .Net Color does:
MyControl.StyleSet = StyleSet.Sunset
MyControl.StyleSet = StyleSet.Green
MyControl.StyleSet = StyleSet.SystemControl
MyControl.StyleSet = StyleSet.Gold
The control has a property of the type of StyleSet class:
Public Property StyleSet as StyleSet
Ask me for more details if needed.
Thank you.
David
penglinhui - 17 Dec 2005 07:51 GMT
"David Muñoz" <ddmmss@hotmail.com> ??????:eUFhMw22FHA.3964@TK2MSFTNGP10.phx.gbl...
Helo Pals: (This is Visual Basic .Net)I have this problem defining a complex property on a UserControl. The property is CustomType defined in another class and I hope its behavior be the same as .Net Color.
1.. How do I make it accesible and usable as .Net Color? I don't know if it must be shared, or whatelse...
2.. How do I indicate to the VS Property Browser that I want to show it 'editable' but NOT 'expandable' and that its caption shows the name of the current setting?
This StyleSet class defines gradient style elements as:
a.. BorderColor
b.. BorderGradientColor
c.. BackColor
d.. BackGradientColor
e.. TextColor
f.. TextShadowColor
g.. GradientDirection
The StyleSet class have some methods to stablish standar gradient combinations and must be asigned as .Net Color does:
a.. MyControl.StyleSet = StyleSet.Sunset
b.. MyControl.StyleSet = StyleSet.Green
c.. MyControl.StyleSet = StyleSet.SystemControl
d.. MyControl.StyleSet = StyleSet.Gold
The control has a property of the type of StyleSet class:
a.. Public Property StyleSet as StyleSet
Ask me for more details if needed.
Thank you.
David