I am supposed to create a custom ComboBox by deriving a class from ComboBox in my WinForms application. I have never done this before and not able to find many good example from Google.
I am required to derive a custom combobox so that I can make the custom combobox type-bound to a particular object.
Could you please point me into the right direction?
This is what I have so far.
CustomComboBox.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MAPClient {
class MAPCodeComboBox : ComboBox {
}
}
I have some specific questions:
- Which methods do I need to override?
- How do I use it in my VS2010 designer mode?