ふらっと C#,C♯,C#(初心者用) Part113
■ このスレッドは過去ログ倉庫に格納されています
0779デフォルトの名無しさん
2014/12/10(水) 17:08:25.21ID:p7pdAcdTCreateGraphicsで生成する必要がないと本で見たのですが
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
Font myfont = new Font("MS 明朝", 10);
SolidBrush mybrush = new SolidBrush(Color.Black);
e.Graphics.DrawString("1行目", myfont, mybrush, 0, 0);
e.Graphics.DrawString("2行目", myfont, mybrush, 0, myfont.Height);
e.Graphics.DrawString("3行目", myfont, mybrush, 0, myfont.Height*2);
}
■ このスレッドは過去ログ倉庫に格納されています