vendredi 14 août 2015

C# WinForms - Custom UserControl - Design-Time support for control repainting

I have created my custom UserControl with some custom properties for it. For example:

[Description("Example Description"), Category("CustomSettings"), DefaultValue("Transmedicom")]
public string DatabaseAddress
{
    get; set;
}

Everythink works fine. I can change custom property in code and in design-time.

What I'm looking for (and cannot find anything) now is: How could I reapint (reacreate) my UserControl in design-time when my custom property change in design-time. Let's say when DatabaseName will be changed to localhost UserControl will add and display some Label on my UserControl. It's important to work in Design-Time.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire