This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Exemple colorDialog | |
if (colorDialog1.ShowDialog() == DialogResult.OK) | |
{ | |
label1.ForeColor = colorDialog1.Color; | |
} | |
//Exemple fontDialog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Déclaration du sépérateur | |
char[] separator = { ' ' }; | |
// Exemple | |
string nom = "Anass anass"; | |
string[] mots = nom.Split(separator); | |
// Exemple: utilisation en windowsfroms avec listbox | |
listBox1.Items.AddRange(textBox1.Text.Split(separator)); |
NewerOlder