Solved

Repaint UserControl in DesignTime

Posted on 2004-08-16
2
1,027 Views
Last Modified: 2008-01-09
How to force repaint/reload of UserControl in DesignTime?

When I change property in DesignTime I want to Redraw my UserControl. Look of my user control is dependent on that property value.

Thanks
0
Comment
Question by:patrikt
2 Comments
 
LVL 7

Accepted Solution

by:
psdavis earned 250 total points
ID: 11823932
Really no different than normal. Invalidate!

        [Category( "Appearance" )]
        [DefaultValue( EtchedStyles.Etched )]
        [Description( "Do you want a etched, raised or simple line?" )]

        public EtchedStyles EtchedStyle
        {
            get{ return this.etchedStyle;  }
            set
            {
                this.etchedStyle = value;  
                Invalidate( );
            }
        }
0
 
LVL 12

Author Comment

by:patrikt
ID: 11831590
OK. Invaliate() is right function.

I found that my problem is dynamic component generation in Load. So I have also regenerate that.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question