Click here to Skip to main content
15,896,730 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to improve preformance of drawing in c# Pin
musefan15-Sep-09 2:09
musefan15-Sep-09 2:09 
AnswerRe: How to improve preformance of drawing in c# Pin
Eddy Vluggen15-Sep-09 2:39
professionalEddy Vluggen15-Sep-09 2:39 
Questionredirect to PHP page from C# code Pin
Alaa Telfah15-Sep-09 1:32
Alaa Telfah15-Sep-09 1:32 
AnswerRe: redirect to PHP page from C# code Pin
SeMartens15-Sep-09 1:37
SeMartens15-Sep-09 1:37 
QuestionConvert The Layout Of The Application Between Arabic And English Pin
Thaer Hamael15-Sep-09 1:20
Thaer Hamael15-Sep-09 1:20 
AnswerRe: Convert The Layout Of The Application Between Arabic And English Pin
Keith Barrow15-Sep-09 1:34
professionalKeith Barrow15-Sep-09 1:34 
QuestionIsolation Levels Pin
scotlandc15-Sep-09 0:53
scotlandc15-Sep-09 0:53 
QuestionThumbnail of minimized Form Pin
Paw Jershauge15-Sep-09 0:39
Paw Jershauge15-Sep-09 0:39 
Does anyone know how to get an thumbnail of an Form thats Minimized Confused | :confused: Confused | :confused: Confused | :confused:
This code works ok when the form is normal or maximum size, but not when its minimized, or anything in front of it.

private Bitmap GetFormImage(Form formToCapture)
{
    Bitmap formImage = null;
    using (Graphics g = formToCapture.CreateGraphics())
    {
        formImage = new Bitmap(formToCapture.Size.Width, formToCapture.Size.Height, g);
        using (Graphics mg = Graphics.FromImage(formImage))
        {
            IntPtr dc1 = g.GetHdc();
            IntPtr dc2 = mg.GetHdc();
            BitBlt(dc2, 0, 0, formToCapture.ClientRectangle.Width, formToCapture.ClientRectangle.Height, dc1, 0, 0, 13369376);
            g.ReleaseHdc(dc1);
            mg.ReleaseHdc(dc2);
        }
    }
    return formImage;
}


Appreciate the help... Thumbs Up | :thumbsup: Thumbs Up | :thumbsup: Thumbs Up | :thumbsup:

With great code, comes great complexity, so keep it simple stupid...Shucks | :-\ Shucks | :-\

AnswerRe: Thumbnail of minimized Form Pin
musefan15-Sep-09 1:21
musefan15-Sep-09 1:21 
GeneralRe: Thumbnail of minimized Form Pin
Paw Jershauge15-Sep-09 2:01
Paw Jershauge15-Sep-09 2:01 
AnswerRe: Thumbnail of minimized Form Pin
Henry Minute15-Sep-09 1:38
Henry Minute15-Sep-09 1:38 
GeneralRe: Thumbnail of minimized Form Pin
Paw Jershauge15-Sep-09 2:03
Paw Jershauge15-Sep-09 2:03 
GeneralRe: Thumbnail of minimized Form Pin
Henry Minute15-Sep-09 2:11
Henry Minute15-Sep-09 2:11 
GeneralRe: Thumbnail of minimized Form Pin
Paw Jershauge15-Sep-09 6:25
Paw Jershauge15-Sep-09 6:25 
Questionhow to clear the value of the ASP.NET FileUpload control in Web application. Pin
coolsharath15-Sep-09 0:00
coolsharath15-Sep-09 0:00 
AnswerRe: how to clear the value of the ASP.NET FileUpload control in Web application. Pin
Keith Barrow15-Sep-09 0:05
professionalKeith Barrow15-Sep-09 0:05 
QuestionCustomer Grid View Pin
Syed Shahid Hussain14-Sep-09 23:59
Syed Shahid Hussain14-Sep-09 23:59 
AnswerRe: Customer Grid View Pin
Henry Minute15-Sep-09 1:48
Henry Minute15-Sep-09 1:48 
GeneralRe: Customer Grid View Pin
Syed Shahid Hussain15-Sep-09 2:56
Syed Shahid Hussain15-Sep-09 2:56 
GeneralRe: Customer Grid View Pin
Henry Minute15-Sep-09 3:05
Henry Minute15-Sep-09 3:05 
Questionhide the text in specified position? Pin
raj23136214-Sep-09 23:26
raj23136214-Sep-09 23:26 
AnswerRe: hide the text in specified position? Pin
musefan14-Sep-09 23:37
musefan14-Sep-09 23:37 
GeneralRe: hide the text in specified position? Pin
raj23136214-Sep-09 23:48
raj23136214-Sep-09 23:48 
QuestionPassing a table (DataTable) value as a parameter to stored procedure Pin
sanjubaba14-Sep-09 23:22
sanjubaba14-Sep-09 23:22 
AnswerRe: Passing a table (DataTable) value as a parameter to stored procedure [modified] Pin
sanjubaba15-Sep-09 17:26
sanjubaba15-Sep-09 17:26 

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.