473,385 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

repaint control after collection changed

Hi,

As i did not get any answer to my previous post, i post the topic again.

How can i repaint my control, when an item from my custom control
collection has changed ?

in my collection property there is only a get function as following :

[Category("Behavior")]
[Browsable(true)]
[Description("Column Collection")]
[DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]
[Editor(typeof(ColumnCollectionEditor),typeof(Syste m.Drawing.Design.UITypeEditor))]
public ColumnCollection Columns
{
get
{
if (this.m_columns == null)
{
this.m_columns = new ColumnCollection(this);
}
return this.m_columns;
}
}

it works very well, except that it does not repaint the control.

Any ideas ?

thx.

Al.
Feb 19 '07 #1
3 2662
Alain,

Is it design time or runtime issue? Can you also post some compilable code
that demostrates your problem?
--

Stoitcho Goutsev (100)

"--== Alain ==--" <no****@noemail.comwrote in message
news:u$**************@TK2MSFTNGP06.phx.gbl...
Hi,

As i did not get any answer to my previous post, i post the topic again.

How can i repaint my control, when an item from my custom control
collection has changed ?

in my collection property there is only a get function as following :

[Category("Behavior")]
[Browsable(true)]
[Description("Column Collection")]
[DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]
[Editor(typeof(ColumnCollectionEditor),typeof(Syste m.Drawing.Design.UITypeEditor))]
public ColumnCollection Columns
{
get
{
if (this.m_columns == null)
{
this.m_columns = new ColumnCollection(this);
}
return this.m_columns;
}
}

it works very well, except that it does not repaint the control.

Any ideas ?

thx.

Al.

Feb 20 '07 #2
My problem is on design time. When i change property value in property
window, the component does not refresh itself.

I have to click on somewhere else to refresh it.

Regarding code :-) there are more than 15.000 line of code, with several
10th of linked classes. So it's impossible to give a compilable code.

Moreover, it's a company property, so you can understand that they will
not allow me to send whole code on internet.

For now, i've tried to setup some eventhandler in the collectioneditor
and in the class used as collection item, but without success.

What could be great it's to have an idea where should i place those
eventhandler to make them refresh the parent control (the container).

Or maybe a snap of code which show how to refresh a parent container
when an item of collection property is changed.

Alain

Stoitcho Goutsev (100) wrote:
Alain,

Is it design time or runtime issue? Can you also post some compilable code
that demostrates your problem?

Feb 21 '07 #3
Hello ,

Please don't multi-post. I've replied to your question in another
newsgroup, don't remember which.
Oliver Sturm
--
http://www.sturmnet.org/blog
Feb 21 '07 #4

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

Similar topics

3
by: Joe Loyd | last post by:
I have a Web form made up of several panels of controls. On postback, I need to detect if any of the controls were updated. Is there something like a "Panel.Changed" event or am I stuck iterating...
0
by: Víctor | last post by:
Hello, I'm doing a Intranet application which shows some information panels dinamically. Each panel is a dll loaded dinamically using Reflection and inherits from Panel class. To display...
6
by: Tom Rowton | last post by:
This one has me a bit confused and I'm not finding what I need in the MSDN or by searching these forums, so here goes... I have a rather large, complex code-in-page WebForm (don't ask) and a...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
1
by: MLH | last post by:
I have frmVehicleEntryForm and on it is frmAddnlOwnrListSubForm. The subform is unbound and lists records in a table, allowing the user to change values in CheckMark controls on the subform as...
4
by: MLH | last post by:
Setting form's Picture property to another file from within VBA doesn't repaint the form with new bitmap - for instance... Me.Picture = "c:\pics\MyNewPic.jpg" I tried Me.Repaint afterward,...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
3
by: --== Alain ==-- | last post by:
Hi, I have a control which has a collection property. when an item of the collection property will be added, removed, and so on, i would like to refresh the control itself. Usually for that i...
0
by: philaphan80 | last post by:
Is there a way to force the Visual Studio IDE (Page Control at design- time) to refresh / repaint itself upon drag & drop of *any* item from the toolbox? Perhaps a method I need to override within...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.