Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ColorDialog doesn't seem to work on WinForm
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
ColorDialog doesn't seem to work on WinForm
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01458618
Message ID:
01458618
Vues:
113
I have a situation where the same code works in one Windows Form, but not in another form I am now working on in my C# class. I believe I have all the code necessary to change the default Font for the WinForm, but the fonts on all the labels do not change at all. Did I miss any steps here?
        private void colorToolStripMenuItem_Click(object sender, EventArgs e)
        {
             colorDialog1.Color = this.ForeColor; // Get initial color value.
             colorDialog1.ShowDialog();           // Let the user choose the ForeColor value.
             this.ForeColor = colorDialog1.Color; // Set the ForeColor value.
        }
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform