473,785 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2779
Have you tried Refresh() and Update() as well?
Failing that you can always desperately call Application.DoE vents();

"Sagaert Johan" <RE************ *@hotmail.comwr ote in message
news:Oc******** ******@TK2MSFTN GP05.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.Co ntrolDesigner

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


"Simon Tamman" <i_************ *************** *******@NOSPAMh otmail.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.DoE vents();

"Sagaert Johan" <RE************ *@hotmail.comwr ote in message
news:Oc******** ******@TK2MSFTN GP05.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
1925
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.. Chris. code :
1
1934
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 Control by programing, it changes in the Design view but no in properties viewAnd when in the design view, I lost the focus and I click above my control. It is refreshed and text property contains the good value. Therefore how I refresh...
19
2989
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 provide an open TD with a DIV in it for the content of this formlet. (The DIV is for DHTML to hide and show the content) I've created a web page showing step by step the two problems I'm encountering. This problem is much easier to see than it...
2
3183
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 problems that I have encountered to date and the solutions (if any) that I found. http://users.adelphia.net/~brianpclab/ServerControlCollectionIssues.htm This page also has all of the source code in a compressed file that you are free to download...
4
1457
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 know the latest framework vers. added this, but i want ot get mine right as a learning exp.). I added a designer class which turns the For property into a dropdown list of the names of all the controls so you can simply pick one. When i added the...
4
2104
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 to setup debugging for a Windows Form control. I cannot find any documentation or articles on setting up the same facility for a Web control. Any help on setting the control library project to debug the design-time code would be greatly...
2
348
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 ? Is there another way to achieve this ? What I would like is if I change the font type or colors in my user control, all the other textboxes that are based on it are automatically changed as well. Also it would be nice to use the WYSIWYG...
0
1977
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 the ini on the client's PC. After the program has ended the control looks in a client side temp folder (specified by the ini file) for an image created by the executed program. If the image is there, then the control moves the file to a public folder...
0
1437
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 object that it is connect to, and refresh its columns according to the properties of the object. In reality, though, when I connect the ObjectDataSource to an object (VB Class) and then select Refresh Schema on the smart tag I get an
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7499
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2879
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.