473,473 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

detecting changes of subproperties

Hi,

I'm writing a custom control that has several class type
properties, f.e. ImageList, List<string>, StringFormat.
None of these classes seems to provide a 'Change' event.
The result of this is that I don't get notified when the user
edits the subproperties at design time and am unable to
refresh the control reflecting the new values.

Is there a general approach to this problem?
Would I really have to wrap all these classes in my own
classes that double the interface of the wrapped class and
provide Change events?

thanks for any help,
Nick
Jan 15 '07 #1
3 1377
List<Tcould possibly be replaced with BindingList<Twhich provides
what you need via ListChanged... but nothing reallly for the other 2
:-(

Marc
Jan 15 '07 #2
Hi,

"nicolasr" <ni***************************@gmx.netwrote in message
news:eM**************@TK2MSFTNGP04.phx.gbl...
| Hi,
|
| I'm writing a custom control that has several class type
| properties, f.e. ImageList, List<string>, StringFormat.
| None of these classes seems to provide a 'Change' event.
| The result of this is that I don't get notified when the user
| edits the subproperties at design time and am unable to
| refresh the control reflecting the new values.
|

AFAIK there is no such a thing for StringFormat at least, you would have to
wrap them :(

Hey, maybe you can write a general wrapping class using reflectoin that send
an event when a property is changed :)
--
Ignacio Machin
machin AT laceupsolutions com
Jan 15 '07 #3
thanks both for your answers!
I will see how far I get with that.

Nick

Hi,

I'm writing a custom control that has several class type
properties, f.e. ImageList, List<string>, StringFormat.
None of these classes seems to provide a 'Change' event.
The result of this is that I don't get notified when the user
edits the subproperties at design time and am unable to
refresh the control reflecting the new values.

Is there a general approach to this problem?
Would I really have to wrap all these classes in my own
classes that double the interface of the wrapped class and
provide Change events?

thanks for any help,
Nick

Jan 17 '07 #4

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

Similar topics

5
by: Jole | last post by:
Hi I'm writing a program that needs to read from a file. In order for the program to be robust, it should somehow check that the file isn't corrupt, or stuffed in any way. For example, that...
0
by: Erik Bethke | last post by:
Hello All, I am trying to clean up some polish bugs with the Shanghai game I am working on and I am currently stuck on trying to get the right event for detecting when the user has changed the...
1
by: Erik Bethke | last post by:
Hello All, I am trying to clean up some polish bugs with the Shanghai game I am working on and I am currently stuck on trying to get the right event for detecting when the user has changed the...
3
by: Chung Leong | last post by:
Anyone knows a good algorithm for detecting difference between two pieces of text? I'm working on a content management system and would like to add the ability to highlight changes made between...
5
by: Lars Moastuen | last post by:
Hi! I'm currently playing around with a project where I need to know if an object (any object) has been altered since last check. I need this to know when an object needs to be saved... My idea...
0
by: robmcdan | last post by:
Hi, I'm using RegNotifyChangeKeyValue() (via DllImport) to detect changes to registry keys and subkeys. However, in addition to catching changes, I would like to know what the changes were. ...
2
by: Simon Harvey | last post by:
Hi all, Is there any easy way to check a field for calues that have changed on a post back. So the page is sent to the user, the user changes some values and I need to know which ones...
5
by: needin4mation | last post by:
Hi, I have an asp.net 1.1 application that populates data from a database. When the user changes data, they have to hit a button to update the data. The data entry form (same form that is...
0
by: Spam Catcher | last post by:
Is it possible to assign DAtaGridView Columns to subproperties, for example: MyObject.SomeProperty.ValueToBind I can only assign 1st level properties, but not child ones?
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
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
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...
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...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.