Solved

VB.NET PropertyGrid Drop Dropdown ImageIndexEditor

Posted on 2006-11-30
1
615 Views
Last Modified: 2008-01-09
Hi Experts,

I Have a property grid in my form in VB.NET 2002.

I would like to know how i can show images from an Image list in a dropdown on the property grid and use the imageindex as the property.

I also would like to use this for several properties using the same imagelist.

Row Border
Column Border
Figure Border
Row Percentage Border
Column Percentage Border

So for each of these properties i would like to have a separate image index property.

Cheers,

Tom
0
Comment
Question by:TommyTwoPints
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 18044814
Have you seen this?

An Extended ImageIndexConverter and ImageIndexEditor for user control.
http://www.codeproject.com/cs/media/extimageindexconv.asp

VB.NET equivalent code:

<Category("Appearance"), Description("..."), DefaultValue(-1), TypeConverter(GetType(ImageIndexConverter)),
Editor("System.Windows.Forms.Design.ImageIndexEditor", GetType(UITypeEditor))> _
Public Property ImageIndex As Integer
  Get
    Return _ImageIndex
  End Get
  Set(ByVal value As Integer)
     _ImageIndex=value
  End Set
End Property

Bob
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question