bonjour
je veux afficher les police d'ecriture(arial...)dans une liste box,comment je peux les récupérer automatiquement!
Merci
Version imprimable
bonjour
je veux afficher les police d'ecriture(arial...)dans une liste box,comment je peux les récupérer automatiquement!
Merci
Bonjour,
Tu peux essayer cela,ça te donne la boite de dialogue windows et ça te valide quand tu appuie sur OK.
Code:
1
2
3
4
5
6
7 Dim MyDialog As New FontDialog() MyDialog.AllowSimulations = False MyDialog.ShowHelp = True MyDialog.Font = RichTextBox1.Font If (MyDialog.ShowDialog() = Windows.Forms.DialogResult.OK) Then RichTextBox1.SelectionFont = MyDialog.Font End If
Va voir la classe InstalledFontCollection, elle sert à ça. Un petit exemple ici :
http://msdn2.microsoft.com/en-us/lib...e8(VS.80).aspx
Si tu veux un contrôle tout fait :
http://www.codeproject.com/KB/combobox/CGFontCombo.aspx
Merci
:)