摘要:
1privatevoidtxtStr_KeyPress(objectsender,System.Windows.Forms.KeyPressEventArgse)2{3if(!char.IsNumber(e.KeyChar)&&(short)e.KeyChar!=44&&(short)e.KeyChar!=8&&(short)e.KeyChar!=1... 阅读全文
摘要:
重载窗体的背景颜色1protectedoverridevoidOnPaintBackground(PaintEventArgse) 2{ 3LinearGradientBrushb=newLinearGradientBrush(this.ClientRectangle, 4Color.Blue,Color.AliceBlue,90f);//线性渐变 5e.Graphics.FillRectangl... 阅读全文