473,324 Members | 2,193 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,324 software developers and data experts.

Refresh a control in the IDE Designer when changing properties.

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

Mar 13 '07 #1
3 2754
Have you tried Refresh() and Update() as well?
Failing that you can always desperately call Application.DoEvents();

"Sagaert Johan" <RE*************@hotmail.comwrote in message
news:Oc**************@TK2MSFTNGP05.phx.gbl...
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

Mar 13 '07 #2
you should just wait for Visual Studio 2007. It is going to ship this
April.

-Todos


On Mar 13, 11:50 am, "Sagaert Johan" <REMOVEsagaer...@hotmail.com>
wrote:
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

Mar 13 '07 #3
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.


"Simon Tamman" <i_**********************************@NOSPAMhotmai l.com>
wrote in message news:oB**************@newsfe3-gui.ntli.net...
Have you tried Refresh() and Update() as well?
Failing that you can always desperately call Application.DoEvents();

"Sagaert Johan" <RE*************@hotmail.comwrote in message
news:Oc**************@TK2MSFTNGP05.phx.gbl...
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



Mar 14 '07 #4

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

Similar topics

0
by: Chris Millar | last post by:
I have a user control that i wish to extend to change the date when the user selects the numeric up down button. The code explains itself, hope someone can help. any ideas appreaciated.. ...
1
by: Laurent Liegeois | last post by:
Hi, I try to write a Web Custom Control. But I have a little problem for refreshing the properties view of my Web Control in Visual Studio (). When I modify the value of text property of my...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
4
by: A Traveler | last post by:
Hello all, I have a control i wrote which inherits from asp:label. It worked fine. It extends asp:label with a "For" property which implements the "for" attribute of an html label tag (yes i...
4
by: jim | last post by:
I am trying to debug a user written web control and web control designer. I found an article “Building Windows Forms Controls and Component with Rich Design-Time Features” that describes how...
2
by: Xavier | last post by:
Hi, When I create a user control textbox (like "public class mytextbox : textbox") in C# and use it on another form, properties like font, colors, etc. are not inherited. Is this behavor normal...
0
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
0
by: yisroem | last post by:
Hi Everybody, I am just getting to grips with ASP.NET 2.0. as per my reading I understand that it is possible for a data control (such as the GridView, DetailsView etc.) to reflect upon the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.