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,419
  • 4
  • 30
  • 59
LabRat
  • 1,996
  • 11
  • 56
  • 91

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
  • 19,392
  • 11
  • 68
  • 116