商店规模& PrintPreviewDialog的位置 [英] Store size & location of PrintPreviewDialog

查看:95
本文介绍了商店规模& PrintPreviewDialog的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有VS 2012,我目前正在使用vb.net进行开发。

我正在尝试保存大小&用户调整PrintPreviewDialog表单大小的位置,然后将其用作大小&他们再次打开相同类型的文件时的位置。我一直使用表单执行此操作,只是在注册表中编写和读取维度。我想实现这种类型的逻辑,但我不知道如何获取PrintPreviewDialog表单的维度。我对OnClosed事件进行了一些研究,但我无法弄清楚如何使用它。



请帮忙 - 谢谢



我用来调用printpreviewdialog的当前代码是:

I have VS 2012 and I am currently using vb.net to develop in.
I am trying to save the size & location that the user sized the PrintPreviewDialog form to and then use that as the size & location when they open up the same type of file again. I do this with forms all the time, just writing and reading the dimensions to/from the registry. I would like to implement this same type of logic, but I don't know how to get the dimensions of the PrintPreviewDialog form. I did some research with the OnClosed event, but I couldn't figure out how to use it.

Please Help - Thank You

the current code I am using to call the printpreviewdialog is:

Dim PrintPreview As New PrintPreviewDialog

PrintPreview.Document = PrintDocument1
PrintPreview.PrintPreviewControl.Zoom = 1
PrintPreview.Height = 500
PrintPreview.Width = 700

PrintPreview.ShowDialog()

推荐答案

这篇关于商店规模& PrintPreviewDialog的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆