Solved

VB.NET PropertyGrid Drop Dropdown ImageIndexEditor

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tabcontrol Caption? 1 31
Form design in vb.net 7 35
Create a form which is copy of a form in vb.net 2 34
VB.Net - Project Software to help the Developer 7 18
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

20 Experts available now in Live!

Get 1:1 Help Now