repaint control after collection changed

A

--== Alain ==--

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(DesignerSerializationVisibility.Content)]
[Editor(typeof(ColumnCollectionEditor),typeof(System.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.
 
S

Stoitcho Goutsev \(100\)

Alain,

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

--== Alain ==--

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
 
O

Oliver Sturm

Hello ,

Please don't multi-post. I've replied to your question in another
newsgroup, don't remember which.


Oliver Sturm
 

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