How do I create this custom print dialog and get the values of the red options when the user clicks ok?

The print dialog below is not created manually, the app I took this screenshot from is probably modifying the default print dialog.

The items circled in red is associated with some data found in the app I took the screenshot from.

The class name of this dialog is #32770 (Dialog) which is the same print dialog found in notepad, wordpad, and vb6 common dialog print. So it is clear that it is modifying the dialog, adding controls to it somehow

custom print dialog

有帮助吗?

解决方案

You could look at Customizing Common Dialog Boxes but don't expect this to be simple from VB6. it is clumsy enough in C++.

You could just create your own dialog Form.

Update:

Perhaps consider using the download in HOW TO: Raise and Control Print Dialog Boxes from Visual Basic?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top