473,772 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating custom control is not reflected in the project

I have created a simple windows custom cotrol that inherits a button.
I have it added to the toolbox and I am able to add it to my form
successfully. The problem comes when I decide to change a property on
my custom control (like the background color). The change is not
reflected across my project. If I select and delete the button from
my form, then add it again the changes will be shown. But I want to
be able to have the change automatically propagated everywhere the
button control is referenced. It seems like this should be possible.
I have tried deleting and re-adding the control to the toolbox, but
that didn't help. What am I doing wrong? Is what I am asking for
even possible?

Thanks in advance.
Nov 20 '05 #1
3 1605
On 2004-03-04, Pug Fugly <sl*****@msn.co m> wrote:
I have created a simple windows custom cotrol that inherits a button.
I have it added to the toolbox and I am able to add it to my form
successfully. The problem comes when I decide to change a property on
my custom control (like the background color). The change is not
reflected across my project. If I select and delete the button from
my form, then add it again the changes will be shown. But I want to
be able to have the change automatically propagated everywhere the
button control is referenced. It seems like this should be possible.
I have tried deleting and re-adding the control to the toolbox, but
that didn't help. What am I doing wrong? Is what I am asking for
even possible?

Thanks in advance.


I'm not sure if I fully understand what you are trying to accomplish -
but generally, if you make a change to a custom control, you have to
recompile it for the change to be reflected. Is the button control in
the same solution? Am I even close to understanding your problem? :)

--
Tom Shelton [MVP]
Powered By Gentoo Linux 1.4
Murphy's Law is recursive. Washing your car to make it rain doesn't work.
Nov 20 '05 #2
Sorry if i was unclear. Yes the control is in the same solution.
However, I have 2 projects under that solution. One is a windows app
(the form), and one is a class library (the custom control). So once
i set up the control and place it on my form, everything is fine. Now
when I go to my class library and change my custom control, the
already added control (button in this case) does not change according
to the code change I made in the custom control. I was testing with
simple changes like changing the background color property on the
button. Of course, I build the class library first before checking.
I have tried re-adding it to the toolbox, and removing and adding the
reference to the class library, but nothing worked. If I was to add
another instance of the custom control to my form this new instance
would have the changed background but the one previously added would
not. It seems to be referencing the old DLL somehow. How do I fix
this?
Nov 20 '05 #3
Never mind... I found the problem. In case anyone out there is
having the same problem, make sure you are referencing the class
library DLL from the obj/debug folder (not bin) when you add your
custom control to the toolbox.
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2708
by: MrNobody | last post by:
Hi, I'm doing something where I add custom objects to a ListBox which have aToString() method overriden so it displays what I want. When adding instances of these custom objects to the ListBox I also put the same references in a Hashtable so my program can obtain and modify these objects without iterating through entire ListBox looking for what I want. The problem is though, when I update these objects the changes are not being reflected...
2
1651
by: MisConFit8 | last post by:
My question is this - is it possible to set a standard value in the web.config file and change it later based on conditions? Why, you might ask? I am building a web based application for inter-office usage. It is an application where software product keys and license keys are stored and created. We have 1/2 of the office personnel working from within the domain, and 1/2 that disconnect and work in the field. I am setting up replication for...
3
1720
by: Michael | last post by:
Hi all.. I have a solution containing 5 projects, one of which is a custom control. In one of the projects, I dragged the .ascx file from the custom control project and dropped it onto a form. I've also referenced the custom control project. Everything looks good, I can see properties and events, etc. The solution builds with no errors. The folder structure loks like this. The folder Fleet is the top level solution with sub folders...
2
2596
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom controls periodically disappear from my
0
1190
by: pagates | last post by:
Hello, I use a COM-based ActiveX control as part of a C# Controls project. Part of this control is a ListView, and the ActiveX control has a property that returns the ListItems of this control. I had the following Build warning: "The referenced component 'MSComctlLib' has an updated custom wrapper available."
2
1946
by: Ron | last post by:
I have this weird problem...I have a custom composited control written in C# comprising of a label and a textbox (in an assembly) If I import the control into a C# Win Forms project and place several of the controls on a page everything is fine...all of the positioning properties are correctly serialized to the designer code and the controls remain in their designtime positions. HOWEVER if I import the custom control into VB ..Net win...
2
972
by: CJM | last post by:
I've got a library project containing common code. I've got it included in another solution as a project reference, but when I update any code in the library, it's not immediately reflected in the main application. How are updates to referenced projects handled in these situations? At the moment, I just fiddle until eventually the updates are reflected in the main application - hardly a scientific approach! Thanks in advance.
3
2426
by: skcsknathan001 | last post by:
I have 2 projects, and accessing a custom control , fron another project. Inside the custom control, it calls a function It compiles and when it runs I get a NullReference error message on the function which accepts the ImageButton. Basically custom control is called .. goes into execute functions, but the ImageButton control inside the custom control is not passed to the function. I'm thinking is it some permission blocking the visibility...
2
5224
by: =?Utf-8?B?V29ua28gdGhlIFNhbmU=?= | last post by:
Hello, I have an existing (WPF) Class Library project that I'd like to add a WPF Custom Control to. However, when I try to Add New Item, that isn't one of the available options. Perhaps this is a brain freeze, but what could I possibly be missing? WtS
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9911
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.