Adding a custom control to the toolbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I've made a custom control that extends textbox called MyEditBox. Right now
all it does it add an extra property but i plan to do more with it later on.

I want to add this to a form so i've added the .exe of the project
containing it to my toolbox and it appears there but it's greyed out.. How
can i get it so that i can simply drag and drop it onto my forms?

Any ideas?

The code for the box is like this:

Public Class MyEditBox
Inherits System.Windows.Forms.TextBox
Private m_strDataFormat As String = ""

Public Property MyDataFormat() As String
Get
Return m_strDataFormat
End Get
Set(ByVal new_Value As String)
m_strDataFormat = new_Value
End Set
End Property

End Class


Thanks in advance
 
Back
Top