Solved

VB.NET PropertyGrid Drop Dropdown ImageIndexEditor

Posted on 2006-11-30
1
601 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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now