|
-
Dec 30th, 2011, 09:31 AM
#1
Thread Starter
Addicted Member
Property Pages?
I'm in the process of making a usercontrol and i've run into the problem of how to make a property page. Obviously this makes setting up you control nicer and more importantly to my program makes loading the form faster (setting the properties in the load event vs property page). I was trying to find something to start on but i didn't find a propety page in the "New Item" menu or even something like the "Property Pages" property of a usercontrol in vb6 where i've done this before. How can i make the equivalent of the vb6 property page in vb.net? Maybe with a form or a dialog?
-
Dec 30th, 2011, 09:51 AM
#2
Re: Property Pages?
It sounds like what you want is the PropertyGrid control, which is the same control that's used in the VS Properties window. It's in the Toolbox.
-
Dec 30th, 2011, 10:56 AM
#3
Thread Starter
Addicted Member
Re: Property Pages?
Okay, i checked it out and it looks good. What do i do with this?
-
Dec 30th, 2011, 05:09 PM
#4
Re: Property Pages?
I actually think you are after SmartTags. You can see them in action by putting something like a datagridview control on a form and selecting the tag that appears in the top/right corner. It is kinda like the replacement for the button that you used to press in VB6 ... to vuew custom properties of things like the tab control.
-
Dec 30th, 2011, 06:25 PM
#5
Frenzied Member
Re: Property Pages?
look for he term "propety bag in vb"
properties will be descibed some where better than I can
property bags are collections of properties
normally accessed as object.properties(index)
where index is a int or namestring the string must be quoted and may contain spaces
the property at the index will have dot name and dot value
so make a collection and add properties by name and value
done
but the how iam not sure - ad its late
its been described in every vb book i have ever bought since vb3
here to talk ( you and old )
-
Dec 31st, 2011, 06:53 AM
#6
Thread Starter
Addicted Member
Re: Property Pages?
I followed the "SmartTags" link and got to the tutorial. I had a problem on
Code:
Inherits System.ComponentModel.Design.DesignerActionList
I think i must need to install .NET framework.
I'm not sure if smart tags are the right thing either (they're like the thing which pops up for choosing colors?). I'll tell you what i'm wanting to do with my property page so that you aren't all shooting in the dark. I'm making a grid control so there are a lot of properties for it. Because it's a grid control there's an array of column captions, row captions, cell colors,... so many, but they have to be on a property page because they're all arrays.
look for he term "propety bag in vb"
...
its been described in every vb book i have ever bought since vb3
Does that still exist in vb 2010? I'm very familiar using that in vb6 but i couldn't find it in 2010. Maybe it's just something which needs to be revealed?
-
Jan 2nd, 2012, 04:03 AM
#7
Thread Starter
Addicted Member
Re: Property Pages?
So how do i use Smart Tags?
I found this link "http://www.vbforums.com/showthread.php?t=589306"
I know it's written for 2008 but maybe someone could help me with this? I've tried working with the microsoft walk through but it isn't so easy to figure out where everything goes sometimes. Could somebody please post a simple working code example?
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
|