Solved

Repaint UserControl in DesignTime

Posted on 2004-08-16
2
1,030 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

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…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

695 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