User controls in VS 2005

  • Thread starter Thread starter mudguts362004-noshite
  • Start date Start date
M

mudguts362004-noshite

Hi

Im creating a user control that contains multiple check boxes. I go
project Add --> New usercontrol

I get a blank class no inherits of system.windows.usercontrols, just

Public Class MyUsercontrol
End class

I add my checkboxes and code to handle the relevant check events and a
public custom event. Once again no code appears to add the checkbox
controls in the code file. Im thinkin 2005 might do it different

When Im finished, my control is in the project. I cant drag my new
control on to a form or into the tool box or use it in any way. Does
anyone know what have I done wrong ?

I dont want to commpile the user control into a separate dll as its a
project specific control I wont use anywhere else. Any help would be
appreciated
 
(e-mail address removed) wrote in @b28g2000cwb.googlegroups.com:
I add my checkboxes and code to handle the relevant check events and a
public custom event. Once again no code appears to add the checkbox
controls in the code file. Im thinkin 2005 might do it different

..NET 2005 supports partial classes.

If you want to view the designer generated classes, click the "show hidden
files" button on the solution explorer toolbar.

When Im finished, my control is in the project. I cant drag my new
control on to a form or into the tool box or use it in any way. Does
anyone know what have I done wrong ?

You need to recompile.
I dont want to commpile the user control into a separate dll as its a
project specific control I wont use anywhere else. Any help would be
appreciated

Just recompile the solution - your user control will show up in your
toolbox.
 
Back
Top