1) i want one of the properties to be a browser to a file location ( i.e the old browsefor) then return the path to the property
2) i want to have several properties have a list for the user to choose from( i.e like a combobox) the combobox will contain the name of comm ports (i.e COM1, COM2 ect.)
i did do some research on the Property grid and found out how to make custom catagories. any help would be appriciated. Thanks
sample Property
Expand|Select|Wrap|Line Numbers
- Imports System.ComponentModel
- <DefaultPropertyAttribute("TesterType")> _
- Public Class TowerConFig
- ' Dim Description As CategoryAttribute
- Private strTesterType As String 'Used as a return
- Private strTesterConfigfileloc As String = "C:\Documents and Settings\All Users\Tester\TesterConfig2.ini"
- #Region "Tester Info"
- <CategoryAttribute("TesterInfo"), _
- Browsable(True), _
- [ReadOnly](False), _
- BindableAttribute(False), _
- DefaultValueAttribute(""), _
- DesignOnly(False), _
- DescriptionAttribute("Type of Tester")> _
- Public Property TesterType() As String
- Get
- Try
- strTesterType = GenProcs.GetINIValue("TesterInfo", "Type", strTesterConfigfileloc)
- Return strTesterType
- Catch ex As Exception
- End Try
- End Get
- Set(ByVal value As String)
- Try
- If MsgBox("Over Write INI File Now?", MsgBoxStyle.OkCancel) = MsgBoxResult.Cancel Then Exit Property
- GenProcs.WriteINIValue("TesterInfo", "Type", value, strTesterConfigfileloc)
- Catch ex As Exception
- End Try
- End Set
- End Property