Testing user controls

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

Guest

Hi,
Does anybody here know how to test user controls on the fly. I build the
user control, as well as the application I am testing it in but the changes
made to the user control aren't seen unless I close & reopen the project.
There must be a simpler way...

Any ideas, or at least point me to the right thread on which I can post this
question would be a great help.
Thanks in advance
Ant
 
Hi,

Do you have the usercontrol and the application in the same project, or in
other projects in the same solution?

Do you mean that the changes to the usercontrol are not seen in design mode,
or also in runtime? Have you tried to close and reopen the designerwindow of
the form with the usercontrol, after rebuilding the project that contains the
usercontrol?

Joris
 
VS 2005 is quite funky, if you are building a control, you can just run it
and it runs in a test harness automatically. Very cool, and only found it
by acidently clicking run on the control rather than the test harness
project i'd set up.
 
Hi, Thanks for the response:

I have One solution containing two projects: A windows form project for
testing and a user control project for designing the control. I have the
startup project set to the Form test project.

When I create another control in the control library & build it, I can see
it on the Forms tool box along with the original control but when I try to
add it to the form, it gives me the explanation you also gave, - to close &
open both the user control design window & the client form design window -
But still no luck.

I tried refreshing the reference to the control by re adding it to the
project but it says the reference already exisits - how do I remove the
reference? -

Anyway, the only way to get around this is to close & reopen the entire
solution.

What am I doing wrong?

Thanks for your time & response

Ant
 
Back
Top