Solved

Repaint UserControl in DesignTime

Posted on 2004-08-16
2
1,026 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

809 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