Problem with Custom Control in Building it when the same is usedin a new windows project solution

K

Kiran

Hi,

I have created a custom control. I am using this control in a new
windows solution-Project after adding the dll from custom control
project's bin directory to the toolbox.

this works ok for the first time. when I try to do changes in custom
control and build it, it builds successfully but never overwrites the
dll in bin(and also the changes doesn't gets reflected in the project
where I have used this).

I tried changing the project configuration from debug to relase and then
builded, then I was able to see a dll in relase dir. at present date
time. But when add this dll to toolbox and use this custom control in
the new project after deleteing the old custom control, the custom
control doesn't has the changes.


this was supposed to be simple(I think so :) ). don't know much of this
as I am new to windows and used to work in web.


Note:
the custom cotrol works with changes if I have the custom control
project and new windows project in the same solution. don't understand
how this works?


can someone please help me with this


Thanks
Kiran
 
B

Bob Powell [MVP]

See Windows Forms Tips and Tricks for an article on how to debug Windows
Forms Controls. You may also be suffering from a known problem vis-a-vis
versioning of your control. To overcome this set the version number in your
AssemblyInfo file to an explicit value. ie.. remove all the asterisks.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top