Property Grid Help retry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dwillis
    New Member
    • Feb 2008
    • 4

    Property Grid Help retry

    ok will try again on this forum
    to bee clear i'm using vb.net 2005. so on to the problem
    i've search the net extensivly and can not find a clear example on how to acomplish what i'm trying to do. So here it is, i'm using the property grid to display alot of properties derived from an INI file. everything works fine but now i'm trying to tweek one part of it. First off let me tell you that i have a lot of com port on this pc(16), the INI file holds the port# for specific parts of this piece of equipment. 8 of them are for motor controllers. ok heres the real problem, i can get the port name from the INI file and assign it to a property but what i would like to do it make each motor controller have it own port properties that are exspanded from the main name. Example

    +MotCon1

    sub property Port Name (i.e COM1) as string
    i want this to be a drop down list of availiable comports from a PC * i know how to get them and list them in its own property but not in a expandable one

    sub property BuadRate as a list of integers representing common Baud speeds
    i want this to be a drop down list of availiable comport Buadrates *can be a predeterimined list

    sub property Databits as a list if integers 4 thru 8 as a list of integers

    sub property Paritybits as parity type as a drop down list of parity types
    sub property Stopbits as stopbit type as a drop down list of stopbits type

    +MotCon2
    Same as above

    now with that said i know how to get and set the values from the INI file but am having troubles with the converters. i know i need to use a type converter and the expandable property but not sur how to do this correctly.
    1) do i need to make a type converter for each type or is ther a generic converter
    2) how to intergrate all these properties w/applicable convert into one property names MotCom1
    any help would be greatly appreciated. thanks
  • dwillis
    New Member
    • Feb 2008
    • 4

    #2
    Wow as usual on this forum the feedback has been stellar(not). So with that i say adue good day avitasen see ya.

    Comment

    Working...