Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法最大化打印预览对话框?
我在属性窗口的控件上看不到任何 Maximize 属性。
它在属性页面中不可用,因为您必须将 PrintPreviewDialog 转换为 Form 才能访问这些 Form 属性:
DirectCast(PrintPreviewDialog1, Form).WindowState = FormWindowState.Maximized
对于 C#:
(PrintPreviewDialog1 as Form).WindowState = FormWindowState.Maximized;