Solved

VB.NET PropertyGrid Drop Dropdown ImageIndexEditor

Posted on 2006-11-30
1
607 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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