Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / Visual Basic

Dynamic DropDown Properties on the PropertyGrid

Rate me:
Please Sign up or sign in to vote.
4.40/5 (8 votes)
19 Jul 20073 min read 79.7K   2.4K   39  
Explains how to add a dynamic dropdown property to the propertygrid at runtime and gives a detailed exampl
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following 
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("")> 
<Assembly: AssemblyDescription("")> 
<Assembly: AssemblyCompany("")> 
<Assembly: AssemblyProduct("")> 
<Assembly: AssemblyCopyright("")> 
<Assembly: AssemblyTrademark("")> 
<Assembly: CLSCompliant(True)> 

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("08D19F8A-629E-46C0-BE5C-D8C48CA9ACF8")> 

' Version information for an assembly consists of the following four values:
'
'      Major Version
'      Minor Version 
'      Build Number
'      Revision
'
' You can specify all the values or you can default the Build and Revision Numbers 
' by using the '*' as shown below:

<Assembly: AssemblyVersion("1.0.*")> 

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Tyler W. Cox has been coding for over 10 years. He received his degree in Computer Information Systems from USC and resides in Pueblo, Colorado where he manages a group of coders developing software for the telecommunications industry.

Comments and Discussions