By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,548 Members | 1,735 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,548 IT Pros & Developers. It's quick & easy.

Testing user controls

P: n/a
Ant
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
Jul 19 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

"Ant" wrote:
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
Jul 19 '06 #2

P: n/a
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.
"Ant" <An*@discussions.microsoft.comwrote in message
news:C5**********************************@microsof t.com...
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

Jul 19 '06 #3

P: n/a
Ant
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

"Joris Zwaenepoel" wrote:
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

"Ant" wrote:
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
Jul 20 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.