Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
GeneralHiding WinForm app from ALT-TAB Pin
gordingin30-Jan-04 15:47
gordingin30-Jan-04 15:47 
GeneralTypeInitializationException Pin
pahluwalia30-Jan-04 11:30
pahluwalia30-Jan-04 11:30 
GeneralRe: TypeInitializationException Pin
Broken God1-Feb-04 18:58
Broken God1-Feb-04 18:58 
GeneralRe: TypeInitializationException Pin
pahluwalia2-Feb-04 4:04
pahluwalia2-Feb-04 4:04 
QuestionHow to make print preview maximized? Pin
blakeb_130-Jan-04 10:51
blakeb_130-Jan-04 10:51 
AnswerRe: How to make print preview maximized? Pin
Heath Stewart30-Jan-04 10:58
protectorHeath Stewart30-Jan-04 10:58 
GeneralRe: How to make print preview maximized? Pin
blakeb_130-Jan-04 11:02
blakeb_130-Jan-04 11:02 
GeneralRe: How to make print preview maximized? Pin
Heath Stewart30-Jan-04 11:08
protectorHeath Stewart30-Jan-04 11:08 
That weird about the location. Since Screen.WorkingArea returns a Rectangle - which includes a Point - one would assume that it'd be 0, 0. You can set PrintPreviewDialog.DesktopLocation to new Point(0, 0) instead.

As far as the state, for some reason PrintPreviewDialog overrides and hides the Form.WindowState property, even though it derives from Form. There might be a valid reason for this, but you could try to set PrintPreviewDialog.WindowState to FormWindowState.Maximized. It won't be visible in the PropertyGrid or code editor, but it's still there (it just gets and sets base.WindowState. Hopefully that works.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to make print preview maximized? Pin
blakeb_130-Jan-04 11:11
blakeb_130-Jan-04 11:11 
GeneralRe: How to make print preview maximized? Pin
Tom Larsen30-Jan-04 11:31
Tom Larsen30-Jan-04 11:31 
GeneralMaximum value of an array Pin
crushinghellhammer30-Jan-04 9:37
crushinghellhammer30-Jan-04 9:37 
GeneralRe: Maximum value of an array Pin
Heath Stewart30-Jan-04 10:05
protectorHeath Stewart30-Jan-04 10:05 
GeneralRe: Maximum value of an array Pin
crushinghellhammer30-Jan-04 11:19
crushinghellhammer30-Jan-04 11:19 
GeneralRe: Maximum value of an array Pin
Heath Stewart30-Jan-04 11:36
protectorHeath Stewart30-Jan-04 11:36 
GeneralRe: Maximum value of an array Pin
crushinghellhammer30-Jan-04 11:59
crushinghellhammer30-Jan-04 11:59 
GeneralRe: Maximum value of an array Pin
Heath Stewart30-Jan-04 12:03
protectorHeath Stewart30-Jan-04 12:03 
Generalconsuming a class defined in another assembly Pin
godzooky30-Jan-04 8:56
godzooky30-Jan-04 8:56 
GeneralRe: consuming a class defined in another assembly Pin
Heath Stewart30-Jan-04 10:13
protectorHeath Stewart30-Jan-04 10:13 
GeneralRe: consuming a class defined in another assembly Pin
godzooky30-Jan-04 10:39
godzooky30-Jan-04 10:39 
GeneralRe: consuming a class defined in another assembly Pin
Heath Stewart30-Jan-04 10:46
protectorHeath Stewart30-Jan-04 10:46 
GeneralRe: consuming a class defined in another assembly Pin
Nick Parker30-Jan-04 11:19
protectorNick Parker30-Jan-04 11:19 
GeneralRe: consuming a class defined in another assembly Pin
godzooky30-Jan-04 15:41
godzooky30-Jan-04 15:41 
GeneralWindows Services using C# Pin
Todd J Christensen30-Jan-04 8:19
sussTodd J Christensen30-Jan-04 8:19 
GeneralRe: Windows Services using C# Pin
David R. Tosi30-Jan-04 8:52
David R. Tosi30-Jan-04 8:52 
GeneralRe: Windows Services using C# Pin
Member 64105530-Jan-04 11:29
Member 64105530-Jan-04 11:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.