Click here to Skip to main content
15,905,967 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to show only 2 decimal points when using a double Pin
0x3c015-Sep-09 5:51
0x3c015-Sep-09 5:51 
AnswerRe: How to show only 2 decimal points when using a double Pin
OriginalGriff15-Sep-09 6:24
mveOriginalGriff15-Sep-09 6:24 
GeneralRe: How to show only 2 decimal points when using a double Pin
0x3c015-Sep-09 6:55
0x3c015-Sep-09 6:55 
GeneralRe: How to show only 2 decimal points when using a double Pin
OriginalGriff15-Sep-09 8:31
mveOriginalGriff15-Sep-09 8:31 
Questionhow to access and run method from main form without creating a new object instance of the form? Pin
stan_lee2615-Sep-09 3:34
stan_lee2615-Sep-09 3:34 
AnswerRe: how to access and run method from main form without creating a new object instance of the form? Pin
Keith Barrow15-Sep-09 4:18
professionalKeith Barrow15-Sep-09 4:18 
QuestionWindows 7 - Install Windows Service Pin
dataminers15-Sep-09 2:23
dataminers15-Sep-09 2:23 
AnswerRe: Windows 7 - Install Windows Service Pin
Mirko198015-Sep-09 2:27
Mirko198015-Sep-09 2:27 
GeneralRe: Windows 7 - Install Windows Service Pin
dataminers15-Sep-09 4:03
dataminers15-Sep-09 4:03 
QuestionExcel application object in automation add-in? Pin
SRKSHOME15-Sep-09 2:01
SRKSHOME15-Sep-09 2:01 
QuestionHow to improve preformance of drawing in c# Pin
Member 33751415-Sep-09 1:33
Member 33751415-Sep-09 1:33 
AnswerRe: How to improve preformance of drawing in c# Pin
Nuri Ismail15-Sep-09 1:47
Nuri Ismail15-Sep-09 1:47 
GeneralRe: How to improve preformance of drawing in c# Pin
Luc Pattyn15-Sep-09 4:39
sitebuilderLuc Pattyn15-Sep-09 4:39 
GeneralRe: How to improve preformance of drawing in c# Pin
Nuri Ismail15-Sep-09 4:59
Nuri Ismail15-Sep-09 4:59 
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 

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.