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