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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Maximize PrintPreviewDialog window

Maximize PrintPreviewDialog window

Scheduled Pinned Locked Moved Visual Basic
question
2 Posts 2 Posters 1 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.
  • Q Offline
    Q Offline
    quinton nel
    wrote on last edited by
    #1

    Hi How can i maximize the printpreviewdialog during runtime. Thanxs quinton.nel

    D 1 Reply Last reply
    0
    • Q quinton nel

      Hi How can i maximize the printpreviewdialog during runtime. Thanxs quinton.nel

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The PrintPreviewDialog doesn't expose any methods to do this. You can either use it's .SetDesktopBounds() method to set the size as large as you want, or you'll have to go through Win32 API calls to find the window handle and send an appropriatly formatted window message to the form to get it to maximize itself.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      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