如何用button调整panel中字体的大中小?
如何用button调整panel中字体的大中小?
int _userSize = 10; private void button3_Click(object sender, EventArgs e) { switch (_userSize) { case 10: _userSize = 15; break; case 15: _userSize = 20; break; case 20: _userSize = 10; break; } panel1.Font = new Font(panel1.Font.FontFamily, _userSize); }