Custom COntrol

nathansav

Registered User.
Local time
Today, 11:30
Joined
Jul 28, 2010
Messages
114
Hi,

I am exploring creating custom controls, and am having a little bit of trouble. I have read various articles on the web about authoring the controls, and how to use them.

I have created a control, 3 text boxes and one button, on clicking the button, each text box, gets populated, 1 in 1, 2 in 2, and 3 in 3. That all the test control does.

I have added a new windows application project to my custom control project, and added the reference to the project that contains my custom control.

I have added the control to the form in the windows app, but can not run to test, i get the error message

"A project with an Output type of a class library cannot be started directly"

This is the code in my new control

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.TextBox1.Text = "1"
Me.TextBox2.Text = "2"
Me.TextBox3.Text = "3"
End Sub

Thanks.
 

Users who are viewing this thread

Back
Top Bottom