Results 1 to 7 of 7

Thread: Property Pages?

  1. #1

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    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?
    Hooked for good.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    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.

  3. #3

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    Re: Property Pages?

    Okay, i checked it out and it looks good. What do i do with this?
    Hooked for good.

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    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.

  5. #5
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    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 )

  6. #6

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    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?
    Hooked for good.

  7. #7

    Thread Starter
    Addicted Member cheesebrother's Avatar
    Join Date
    Jul 2011
    Posts
    153

    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?
    Hooked for good.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width