PrintPreviewDialog

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

How do I disable the print button in PrintPreviewDailog?

I have tried the following code.
DirectCast(.Controls(1), ToolBar).Buttons(1).Enabled = False
But it throw 'InvalidCastException'.

Pls assist me.

Thanks.

Cheers

.


Quantcast