Posted 17 years ago by Kasper
Version: 4.0.0252
Avatar
How do I set the icon of the PrintPreview() dialog? Right now it uses the default .NET icon, but I would of course like for it to use the same custom icon I use for all the other forms.

Comments (2)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You would probably have to show the Print Preview dialog on your own and set its icon. Here is our code for that method:
public void PrintPreview() {
    PrintPreviewDialog dialog = new PrintPreviewDialog();
    dialog.Document = printSettings.PrintDocument;
    dialog.ShowDialog();
}


Actipro Software Support

Posted 17 years ago by Kasper
Avatar
Doh, of course. I didn't even realize that SyntaxEditor simply used the standard .NET PrintDialog until now. Thank you for pointing me in the right direction :)
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.