Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7716897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:44:52+00:00 2026-06-01T02:44:52+00:00

I have a fun application written in Visual Studio (C#), and I’m wondering –

  • 0

I have a fun application written in Visual Studio (C#), and I’m wondering – What I do is I draw panels in certain ways on the form – if it’s possible to render the form, without taking a screenshot?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:44:53+00:00Added an answer on June 1, 2026 at 2:44 am

    If by “taking a screenshot” you mean “sending PrtSc“, then there’s a better way, using System.Drawing.Graphics.CopyFromScreen:

    using(Bitmap b = new Bitmap(this.ClientSize.Width, this.ClientSize.Height)) {
        using(Graphics g = Graphics.FromImage(b)) {
            g.CopyFromScreen(this.PointToClient(Point.Empty), Point.Empty, this.ClientSize);
        }
    
        // Your form is now rendered into b.
    }
    

    If you want to include the border, just use Size instead of ClientSize, and this.Location instead of this.PointToClient(Point.Empty).

    Alternatively, you can use this.DrawToBitmap:

    using(Bitmap b = new Bitmap(this.Width, this.Height)) {
        this.DrawToBitmap(b, new Rectangle(0, 0, this.Width, this.Height));
    
        // Your form is now rendered into b.
    }
    

    This will work even if your form doesn’t have focus. However, it will draw the border and it will draw it in Windows Basic style if Aero is active.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fun issue where during application shutdown, try / catch blocks are
I'm writing an application using the public Tumblr API, just for fun. I have
I have a WPF TaskBar like application that i am developing for fun and
I have just started to develop android application yesterday and having a great fun
This is a fun one... I have an application that has a help screen
I have started coding an FTP client application (for fun). I’m trying to represent
I want to make (for fun, challenge) a videoconference application, I have some ideas
I'm writing a basic planet viewer OpenGL Perl application, just for fun. I have
Let say I have Erlang enterprise application: -module(hello). -export([start/0]). start() -> spawn(fun() -> loop()
I have found myself designing a language for fun that is a cross between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.