随笔分类 - C#
摘要:Dictionary GetAllPrinterQueues(){ RaiseLog("Getting print queue counts"); Dictionary TempDict =new Dictionary(); PrintServer myPrintServer =new PrintServer(); // Get all the printers installed on this PC // List the print server's queues PrintQueueCollection myPrintQueues = myPrintServ
阅读全文
摘要:在开发Winform MDI程序时,有时需要子窗体正好铺满父窗体的展示子窗体的区域,但又不希望子窗体最大化,此时按本文方式开发即可:示例截图:1、建立一个专门用于获取MDI父窗体展示子窗体的区域的大小的空白窗体,在窗体Load时就实例化该窗体,但不show出来。 private void Main_Load(object sender, EventArgs e) { MainFormSizeFrm = new MainFormSize(); MainFormSizeFrm.MdiParent = this; }2、创建函数获取MDI父窗体展示子窗体的区域大小 /// <summary&g
阅读全文
浙公网安备 33010602011771号