?
Solved

Repaint UserControl in DesignTime

Posted on 2004-08-16
2
Medium Priority
?
1,042 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 750 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month17 days, 3 hours left to enroll

862 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