PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Problem with Custom Control in Building it when the same is usedin a new windows project solution

Reply

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

 
Thread Tools Rate Thread
Old 10-02-2006, 07:13 PM   #1
Kiran
Guest
 
Posts: n/a
Default Problem with Custom Control in Building it when the same is usedin a new windows project solution


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
  Reply With Quote
Old 11-02-2006, 12:46 PM   #2
Bob Powell [MVP]
Guest
 
Posts: n/a
Default Re: Problem with Custom Control in Building it when the same is used in a new windows project solution

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.



"Kiran" <someone@somewhere.com> wrote in message
news:%23nBO4YnLGHA.1536@TK2MSFTNGP11.phx.gbl...
> 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



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off