adding a custom control to print preview dialog

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

Guest

Any ideas on how to do this. It comes with print, zoom, close etc. But I want
to add a button for font change/redisplay.

Just knowing how to get the button on there is all I need.
 
The print preview dialog is inherited from the old VB6 CommonDialog control.
If you delve deep enough in the VB.NET help, it comes with a function which
allows subclassing.

Let me know your findings

Good luck.
 
mark said:
Any ideas on how to do this. It comes with print, zoom, close etc. But I
want to add a button for font change/redisplay.

Create a form that inherits from 'PrintPreviewDialog' and add the controls.
 
Can you also do that with the Open/Save dialog boxes? Also, override the
other buttons/controls on those dialog boxes too the same way? I mean disable
create new folder, search the web & also add a listview under the filename or
extend the dialog box in some way?
 
Crouchie1998 said:
Can you also do that with the Open/Save dialog boxes?

No, that's not possible, because these dialogs are no .NET Windows Forms
dialogs.
Also, override the other buttons/controls on those dialog boxes
too the same way?

This can be done using a Win32 dialog hook only.
 
Inherits System.Windows.Forms.PrintPreviewDialog works but I had to
comment out the line "Me.SuspendLayout()" in the windows form designer code
to get the button to behave properly. What's that all about?

Also, the toolbar can not be modified.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top