|
-
Jan 23rd, 2008, 03:44 PM
#1
[2005] usercontrol - properties group + subitems
how can i add properties to my usercontrol that appear in the properties window as a collapsible group (like font) with sub properties?
thanks
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jan 23rd, 2008, 04:04 PM
#2
Re: [2005] usercontrol - properties group + subitems
First, you should understand how properties work in VB.Net. What you're doing is basically creating a set of properties but in order to get them to show up during design view you have to add some attributes to the properties. I can't remember them off the tpop of my head but you should be able to look them up or i'm sure someone else will chime in with them.
-
Jan 23rd, 2008, 04:57 PM
#3
Re: [2005] usercontrol - properties group + subitems
They are called "Expandable Properties". I have some code in this forum where I was helped creating them but it was under VS 2003.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 23rd, 2008, 08:31 PM
#4
Re: [2005] usercontrol - properties group + subitems
It's the TypeConverter applied to the property's type via the TypeConverter attribute that controls that.
http://msdn2.microsoft.com/en-us/library/aa302334.aspx
Remember this: whenever you want to control the design-time behaviour of a class you're talking about attributes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|