Solved

VB.NET PropertyGrid Drop Dropdown ImageIndexEditor

Posted on 2006-11-30
1
625 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 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