Group:  Microsoft Access » microsoft.public.access.activexcontrol
Thread: Edit CustomType in VS Property Browser

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Edit CustomType in VS Property Browser
David_Muñoz 28.10.2005 03:04:59
This is a multi-part message in MIME format.

------=_NextPart_000_001E_01C5DB4A.DAB58840
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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:=20
a.. MyControl.StyleSet =3D StyleSet.Sunset
b.. MyControl.StyleSet =3D StyleSet.Green
c.. MyControl.StyleSet =3D StyleSet.SystemControl
d.. MyControl.StyleSet =3D StyleSet.Gold

The control has a property of the type of StyleSet class:=20
a.. Public Property StyleSet as StyleSet
Ask me for more details if needed.
Thank you.

David
------=_NextPart_000_001E_01C5DB4A.DAB58840
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Helo Pals: </FONT><FONT face=3DArial =
size=3D2>(This is=20
Visual Basic .Net)</FONT><FONT face=3DArial size=3D2>I have this problem =
defining a=20
complex property on a UserControl. The property is CustomType defined in =
another=20
class and I hope its behavior be the same as .Net Color.</FONT></DIV>
<OL>
<LI><FONT face=3DArial size=3D2>How do I make it accesible and usable =
as .Net=20
Color? I don't know if it must be shared, or whatelse...</FONT></LI>
<LI><FONT face=3DArial size=3D2>How do I indicate to the VS Property =
Browser that=20
I want to show it 'editable' but NOT 'expandable' and that its =
caption=20
shows the name of the current setting?</FONT></LI></OL>
<DIV><FONT face=3DArial size=3D2>This StyleSet class defines gradient =
style elements=20
as:</FONT></DIV>
<UL>
<LI><FONT face=3DArial size=3D2>BorderColor</FONT></LI>
<LI><FONT face=3DArial size=3D2>BorderGradientColor</FONT></LI>
<LI><FONT face=3DArial size=3D2>BackColor</FONT></LI>
<LI><FONT face=3DArial size=3D2>BackGradientColor</FONT></LI>
<LI><FONT face=3DArial size=3D2>TextColor</FONT></LI>
<LI><FONT face=3DArial size=3D2>TextShadowColor</FONT></LI>
<LI><FONT face=3DArial size=3D2>GradientDirection</FONT></LI></UL>
<DIV><FONT face=3DArial size=3D2>The StyleSet class have some methods to =
stablish=20
standar gradient combinations and must be asigned as .Net Color does:=20
</FONT></DIV>
<UL>
<LI><FONT face=3DArial size=3D2>MyControl.StyleSet =3D =
StyleSet.Sunset</FONT></LI>
<LI><FONT face=3DArial size=3D2>MyControl.StyleSet =3D =
StyleSet.Green</FONT></LI>
<LI><FONT face=3DArial size=3D2>MyControl.StyleSet =3D=20
StyleSet.SystemControl</FONT></LI>
<LI><FONT face=3DArial size=3D2>MyControl.StyleSet =3D =
StyleSet.Gold</FONT></LI></UL>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The control has a property of the type =
of StyleSet=20
class: </FONT></DIV>
<UL>
<LI><FONT face=3DArial size=3D2>Public Property StyleSet as=20
StyleSet</FONT></LI></UL>
<DIV><FONT face=3DArial size=3D2>Ask me for more details if =
needed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thank you.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>David</FONT></DIV></BODY></HTML>

------=_NextPart_000_001E_01C5DB4A.DAB58840--

Re: Edit CustomType in VS Property Browser
"Alex Dybenko" <alexdyb[ at ]PLEASE.cemi.NO.rssi.SPAM.ru> 28.10.2005 09:29:35
Hi David,
try to ask at VB.NET group, this on for Access questions

--
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com


"David Muñoz" <ddmmss[ at ]hotmail.com> wrote in message
news:eUFhMw22FHA.3964[ at ]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.
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


Re: Edit CustomType in VS Property Browser
"penglinhui" <penghui6666666[ at ]163.com> 17.12.2005 07:51:26
This is a multi-part message in MIME format.

------=_NextPart_000_004C_01C60321.BD9E7380
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


"David Mu=F1oz" <ddmmss[ at ]hotmail.com> =
??????:eUFhMw22FHA.3964[ at ]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...=20
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=20
b.. BorderGradientColor=20
c.. BackColor=20
d.. BackGradientColor=20
e.. TextColor=20
f.. TextShadowColor=20
g.. GradientDirection
The StyleSet class have some methods to stablish standar gradient =
combinations and must be asigned as .Net Color does:=20
a.. MyControl.StyleSet =3D StyleSet.Sunset=20
b.. MyControl.StyleSet =3D StyleSet.Green=20
c.. MyControl.StyleSet =3D StyleSet.SystemControl=20
d.. MyControl.StyleSet =3D StyleSet.Gold

The control has a property of the type of StyleSet class:=20
a.. Public Property StyleSet as StyleSet
Ask me for more details if needed.
Thank you.

David
------=_NextPart_000_004C_01C60321.BD9E7380
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"David Mu=F1oz" <<A=20
href=3D"mailto:ddmmss[ at ]hotmail.com">ddmmss[ at ]hotmail.com</A>>=20
=
写入消息新闻:eUFhMw22FHA.3964[ at ]TK2MSFT=
NGP10.phx.gbl...</DIV>
<DIV><FONT face=3DArial size=3D2>Helo Pals: </FONT><FONT face=3DArial =
size=3D2>(This=20
is Visual Basic .Net)</FONT><FONT face=3DArial size=3D2>I have this =
problem=20
defining a complex property on a UserControl. The property is =
CustomType=20
defined in another class and I hope its behavior be the same as .Net=20
Color.</FONT></DIV>
<OL>
<LI><FONT face=3DArial size=3D2>How do I make it accesible and =
usable as .Net=20
Color? I don't know if it must be shared, or whatelse...</FONT>=20
<LI><FONT face=3DArial size=3D2>How do I indicate to the VS Property =
Browser=20
that I want to show it 'editable' but NOT 'expandable' and that =
its=20
caption shows the name of the current setting?</FONT></LI></OL>
<DIV><FONT face=3DArial size=3D2>This StyleSet class defines gradient =
style=20
elements as:</FONT></DIV>
<UL>
<LI><FONT face=3DArial size=3D2>BorderColor</FONT>=20
<LI><FONT face=3DArial size=3D2>BorderGradientColor</FONT>=20
<LI><FONT face=3DArial size=3D2>BackColor</FONT>=20
<LI><FONT face=3DArial size=3D2>BackGradientColor</FONT>=20
<LI><FONT face=3DArial size=3D2>TextColor</FONT>=20
<LI><FONT face=3DArial size=3D2>TextShadowColor</FONT>=20
<LI><FONT face=3DArial size=3D2>GradientDirection</FONT></LI></UL>
<DIV><FONT face=3DArial size=3D2>The StyleSet class have some methods =
to stablish=20
standar gradient combinations and must be asigned as .Net Color does:=20
</FONT></DIV>
<UL>
<LI><FONT face=3DArial size=3D2>MyControl.StyleSet =3D =
StyleSet.Sunset</FONT>=20
<LI><FONT face=3DArial size=3D2>MyControl.StyleSet =3D =
StyleSet.Green</FONT>=20
<LI><FONT face=3DArial size=3D2>MyControl.StyleSet =3D=20
StyleSet.SystemControl</FONT>=20
<LI><FONT face=3DArial size=3D2>MyControl.StyleSet =3D=20
StyleSet.Gold</FONT></LI></UL>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The control has a property of the =
type of=20
StyleSet class: </FONT></DIV>
<UL>
<LI><FONT face=3DArial size=3D2>Public Property StyleSet as=20
StyleSet</FONT></LI></UL>
<DIV><FONT face=3DArial size=3D2>Ask me for more details if =
needed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thank you.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2>David</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_004C_01C60321.BD9E7380--

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net