Freigeben über


SYSK 20: Testing UserControls without writing a line of code

In VS2005, you can test a user control using a tool called UserControl Test Container. 

If you have a control library project in VS, you can hit F5 and it will launch the Test Container.  The Test Container allows you to select the control you want to test, it renders the control, and it also has UI (similar to control properties of VS Designer) that allows you to change publicly exposed properties. 

Check it out!

Comments

  • Anonymous
    December 02, 2005
    Is this akin to the ActiveX Control Test Container that came with VC6?
  • Anonymous
    December 04, 2005
    Good point. Very similar.