Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / December 2005

Tip: Looking for answers? Try searching our database.

Edit CustomType in VS Property Browser

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Muñoz - 28 Oct 2005 04:04 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.