Salve a tutti.
Sto cercando di utilizzare questo benedetto DrawString ma ho un problema che non riesco a risolvere, questo è il codice per usare il metodo
In questo modo solleva un'eccezione di tipo ArgumentException e il messaggio è {"Parameter is not valid."}codice:string testo = "we"; Font font = new Font("Times New Roman", 8, FontStyle.Regular); Brush brush = new SolidBrush(Color.White); g.DrawString(testo, font, brush, 10.0f, 10.0f);
se invece provo a scrivere così
cioè con una stringa senza testo non solleva eccezionicodice:string testo = "we"; Font font = new Font("Times New Roman", 8, FontStyle.Regular); Brush brush = new SolidBrush(Color.White); g.DrawString("", font, brush, 10.0f, 10.0f);, qualcuno ha qualche suggerimento :? ?

.
, qualcuno ha qualche suggerimento :? ?
Rispondi quotando