How can I change the maximum size of a form?

Posted on 2006-04-14
Last Modified: 2012-05-05

I've got a Windows form and I need to set the height to greater than that of the screen height.

How can I do it? It restricts the height to that of the screen (plus an additional 12 pixels for some reason).
Question by:salted
    LVL 12

    Expert Comment

    Is there a reason that you are trying to do that? Are you trying to hide the borders?

    Author Comment

    No, I'm calling PrintWindow, but the control I'm printing (to an image) is greater than the size of the screen.
    LVL 12

    Expert Comment

    Ok, then I don't really know, sorry :$

    LVL 12

    Expert Comment

    I use printForm for doing this kind of operation and it is really useful.  I used for many projects now and it is money well spent if you want to buy a third party control.  If not I won't say there is no free solution because often there is but I don't know
    LVL 11

    Accepted Solution

    hi salted, thats what clipping is for.
    only showable objects are drawn to screen, thats how graphics work.
    if you wanna print data, which is offscreen, you will have to do it by hand.
    you will have to implement drawing routines for each type of control and its drawn objects.
    then you could draw all to a graphics objects of an created bitmapobject, and spit that image to the settuped printdocument pagesettings height in its printpage event.
    that event has an graphics handle to the printed site as event argument.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    This video discusses moving either the default database or any database to a new volume.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now