Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Print Preview Window Icon (Read 2217 times)
BudMan
YaBB Newbies
*
Offline


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
Print Preview Window Icon
Apr 22nd, 2010 at 2:47pm
Print Post  
Is there a way to hide or change the icon on the print preview window? I have tried with code like the following:

DgmView.PreviewOptions.TitleBarIcon = My.Resources.MosaicSim3

However this does not work.

Thanks for your help
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print Preview Window Icon
Reply #1 - Apr 22nd, 2010 at 3:21pm
Print Post  
Are you using the PrintPreviewEx method?
  
Back to top
 
IP Logged
 
BudMan
YaBB Newbies
*
Offline


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
Re: Print Preview Window Icon
Reply #2 - Apr 22nd, 2010 at 4:13pm
Print Post  
No, just the regular PrintPreview method. But I just tried the PrintPreviewEx and it still displays the default VS Winform icon.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print Preview Window Icon
Reply #3 - Apr 22nd, 2010 at 6:00pm
Print Post  
PrintPreview won't display it, but PreviewEx should do. Is MosaicSim3 a 16x16 icon?
  
Back to top
 
IP Logged
 
BudMan
YaBB Newbies
*
Offline


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
Re: Print Preview Window Icon
Reply #4 - May 25th, 2010 at 2:15pm
Print Post  
I have eventually gotten back to trying to figure out how to display my custom icon in the DiagramView's PrintPreview.

I was using a 32x32 icon but that was not the problem. The problem was the order of the 2 statements to set the TitleBarIcon property and call the PrintPreviewEx method. I was setting the TitleBarIcon AFTER I called PrintPreviewEx. Reversing their order displayed the icon in the Print Preview window.

Thanks for your help
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint