Bonjour à tous,

Voila je cherche à écrire mon label verticalement
J'ai trouvé un code sur msdn :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
string myText = "Vertical text";
 
FontFamily fontFamily = new FontFamily("Lucida Console");
Font font = new Font(
fontFamily,
   14,
   FontStyle.Regular,
   GraphicsUnit.Point);
PointF pointF = new PointF(40, 10);
StringFormat stringFormat = new StringFormat();
SolidBrush solidBrush = new SolidBrush(Color.FromArgb(255, 0, 0, 255));
 
stringFormat.FormatFlags = StringFormatFlags.DirectionVertical;
 
e.Graphics.DrawString(myText, font, solidBrush, pointF, stringFormat);
mais il m'affiche la dernière ligne le mot Graphics en souligné rouge...

Si quelqu'un à une idée.