摘要: 由于本着节约的原则,这里的打印都只是保存为.oxps格式的文件。 在我调试时每次打印完成后,窗体都会自己闪退。 在网上并没有相关资料,经过加入断点确认问题在 修改为 修改后不再崩溃。 阅读全文
posted @ 2019-10-23 09:27 baissy 阅读(1938) 评论(0) 推荐(0) 编辑
摘要: if (!(e.KeyChar >= '0' && e.KeyChar <= '9' || e.KeyChar == '.')) e.Handled = true; if (e.KeyChar == '\b') e.Handled = false; 阅读全文
posted @ 2019-10-23 09:05 baissy 阅读(1458) 评论(0) 推荐(0) 编辑
摘要: private string Notes = "提示文本"; private void textBox1_Leave(object sender, EventArgs e) { // 退出失去焦点,重新显示 if (string.IsNullOrEmpty(textBox1.Text)) { textBox1.ForeColor = Color.Dark... 阅读全文
posted @ 2019-10-23 09:01 baissy 阅读(5608) 评论(0) 推荐(2) 编辑
摘要: using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace WGClient { class AutoSizeFormClass { //(1).声明结构,只记录窗体和其控件的初始位置和大小。 public struct controlRect { public int 阅读全文
posted @ 2019-10-23 08:57 baissy 阅读(4746) 评论(1) 推荐(1) 编辑