0

Is it possible to have a combobox with LineShape lines in them instead of text? if so how do i achive this?

Its for a drawing application im trying to make which alows the user to select difrent line types

(I'm using VB.Net)

Sathish
  • 4,311
  • 3
  • 27
  • 57
LabRat
  • 1,927
  • 10
  • 51
  • 89

1 Answers1

0

You will have to inherit from ComboBox and create your own class. Set DrawMode = DrawMode.OwnerDrawFixed and handle OnDrawItem. There are many examples on how to do this. You can use this as start MSDN or Placing Images and Strings with a C# Combobox (in C# but you can easy convert this code to VB.NET)

Community
  • 1
  • 1
Piotr Stapp
  • 18,790
  • 11
  • 66
  • 112