ShowPrintPreviewDialog shows a tiny size window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I use the WebBrowser component to show a print preview af my HTML document.
Using the ShowPrintPreviewDialog() method, a very litte window that I can't
resize.

How can I resize this print preview ?

Thanks
 
I think you may didn't create object of WebBrowser from tool box.
like this

'WebBrowser wb = new WebBrowser();'

as the title its size follows the WebBrowser's parent container control's size

add this line to your code

'wb.Parent = this;'

than size of preview dialog will be same as your main dialog.
 
Back
Top