Adding a custom control to the toolbox

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top