protected override bool IsInputChar(char charCode)
{
Graphics g = CreateGraphics();
g.DrawString(charCode.ToString(), new Font("宋体", 9), new SolidBrush(Color.Red), new PointF(1, 0));
return base.IsInputChar(charCode);
}
//在Form里面的事件,在自定义的控件是可以接收中文信息
//怎么只有字母,没有中文
{
Graphics g = CreateGraphics();
g.DrawString(charCode.ToString(), new Font("宋体", 9), new SolidBrush(Color.Red), new PointF(1, 0));
return base.IsInputChar(charCode);
}
//在Form里面的事件,在自定义的控件是可以接收中文信息
//怎么只有字母,没有中文
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货