Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. PrintPreview Dialog

PrintPreview Dialog

Scheduled Pinned Locked Moved C#
question
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mazdak
    wrote on last edited by
    #1

    I have a printpreview dialog,How can I make it be maximize when it create or set size for?It seems that this dialog do not have those properties? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
    Wish You Were Here-Pink Floyd-1975

    J 1 Reply Last reply
    0
    • M Mazdak

      I have a printpreview dialog,How can I make it be maximize when it create or set size for?It seems that this dialog do not have those properties? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
      Wish You Were Here-Pink Floyd-1975

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      According to MSDN it has the Size property available to it. I don't have a project setup where I can test this though. James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

      M 1 Reply Last reply
      0
      • J James T Johnson

        According to MSDN it has the Size property available to it. I don't have a project setup where I can test this though. James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

        M Offline
        M Offline
        Mazdak
        wrote on last edited by
        #3

        Yes,that exists,but what about Maximize and Minimize? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
        Wish You Were Here-Pink Floyd-1975

        J 1 Reply Last reply
        0
        • M Mazdak

          Yes,that exists,but what about Maximize and Minimize? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
          Wish You Were Here-Pink Floyd-1975

          J Offline
          J Offline
          James T Johnson
          wrote on last edited by
          #4

          Set the WindowState property to FormWindowState.Maximized :) James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

          M 1 Reply Last reply
          0
          • J James T Johnson

            Set the WindowState property to FormWindowState.Maximized :) James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

            M Offline
            M Offline
            Mazdak
            wrote on last edited by
            #5

            James T. Johnson wrote: WindowState I know it James,the point is that I can't find it for PrintPreviewDialog,thats the reason I said it does not exist:( Have you test it for PrintPreviewDialog? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
            Wish You Were Here-Pink Floyd-1975

            J 1 Reply Last reply
            0
            • M Mazdak

              James T. Johnson wrote: WindowState I know it James,the point is that I can't find it for PrintPreviewDialog,thats the reason I said it does not exist:( Have you test it for PrintPreviewDialog? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
              Wish You Were Here-Pink Floyd-1975

              J Offline
              J Offline
              James T Johnson
              wrote on last edited by
              #6

              The documentation shows it being there; but Intellisense doesn't.... Oddly enough this compiles and works correctly.

              PrintPreviewDialog foo = new PrintPreviewDialog();
              foo.WindowState = FormWindowState.Maximized;

              I still don't know why some items don't appear in IntelliSense, especially when its parent class contains something and its not changed in the sub-class. James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

              M 1 Reply Last reply
              0
              • J James T Johnson

                The documentation shows it being there; but Intellisense doesn't.... Oddly enough this compiles and works correctly.

                PrintPreviewDialog foo = new PrintPreviewDialog();
                foo.WindowState = FormWindowState.Maximized;

                I still don't know why some items don't appear in IntelliSense, especially when its parent class contains something and its not changed in the sub-class. James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

                M Offline
                M Offline
                Mazdak
                wrote on last edited by
                #7

                James T. Johnson wrote: I still don't know why some items don't appear in IntelliSense, especially when its parent class contains something and its not changed in the sub-class. Me too. Thanks again James.:) Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
                Wish You Were Here-Pink Floyd-1975

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups