Solved

Repaint UserControl in DesignTime

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now