473,472 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Testing user controls

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
3 1301
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tom Verbeure | last post by:
Hello All, so I'm now convinced that unit testing is really the way to go and I want to add it to an existing project. The first thing that I find out, is that, well, it's hard work. Harder than...
6
by: Liza K. | last post by:
can we do unit testing like checking the functionality of button in Mic-ACT? Please provide me the solution. I need urgent help. Liza
5
by: Pete | last post by:
Hi folks, I've been looking at unit testing frameworks (csUnit, NUnit, etc) and have gathered some info on them (see the older thread on c# 2004). My question is this: how do they work with...
5
by: Brian | last post by:
Hello all.. Am working on an Air Hockey game... have an table loaded into a picture box. The borders of the table are slightly slanted. Am using hit testing lines with GDI+ to manipulate the...
3
by: JJ | last post by:
Hi, In Nunit testing with asp.net are you guys creating a separate Test assembly for testing or integrating right in class themselves? Is anyone using a third party Unit Test addon for Nunit to...
1
by: Tina | last post by:
I have a DataGrid Item from the header row of a 1.1 DataGrid. I got it by saying... Dim HeaderItem As DataGridItem = mygrid.Controls(0).Controls(0) Now I'm looping through the Header item...
6
by: Cybex | last post by:
I am taking a C++ class and would like to use a Linux based IDE vs C+ + .Net but I am a little lost in how to go about this. I think that the IDE and compilation tools are separate under Linux. I...
2
by: Lloyd Sheen | last post by:
Ok I have created a small testbed site for testing and I am have a problem with the terms Usercontrol, Webcontrol, etc. What I need to do in the long run is have a page using AJAX and having...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.