Refresh a control in the IDE Designer when changing properties.

S

Sagaert Johan

Hi

I have a custom control that displays an image.

I have the invalidate method fired when a new picture is selected in the
designer, but the designer does not show this change.
It only does this if the UI window is closed and opened again.

Is there some attribute i have to use to get an immediate refresh of the
designer window ?

Johan
 
S

Simon Tamman

Have you tried Refresh() and Update() as well?
Failing that you can always desperately call Application.DoEvents();
 
T

Todos Menos [MSFT]

you should just wait for Visual Studio 2007. It is going to ship this
April.

-Todos
 
S

Sagaert Johan

Doevents will not help int the Designe Time environment

i gues i need to fiddle with
System.Windows.Forms.Design.ControlDesigner

but i can't find a lot of help on this subject.
 

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