Click here to Skip to main content
15,867,686 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How to link drawings on on-line maps to the map Pin
Member 843537227-Mar-13 0:35
Member 843537227-Mar-13 0:35 
GeneralRe: How to link drawings on on-line maps to the map Pin
Member 843537227-Mar-13 1:53
Member 843537227-Mar-13 1:53 
GeneralRe: How to link drawings on on-line maps to the map Pin
Bernhard Hiller27-Mar-13 22:18
Bernhard Hiller27-Mar-13 22:18 
QuestionNeed guidance for chat conversion UI area designing (win form c#) Pin
Tridip Bhattacharjee25-Mar-13 5:03
professionalTridip Bhattacharjee25-Mar-13 5:03 
AnswerRe: Need guidance for chat conversion UI area designing (win form c#) Pin
Eddy Vluggen25-Mar-13 8:18
professionalEddy Vluggen25-Mar-13 8:18 
GeneralRe: Need guidance for chat conversion UI area designing (win form c#) Pin
Tridip Bhattacharjee25-Mar-13 9:33
professionalTridip Bhattacharjee25-Mar-13 9:33 
GeneralRe: Need guidance for chat conversion UI area designing (win form c#) Pin
Eddy Vluggen25-Mar-13 9:39
professionalEddy Vluggen25-Mar-13 9:39 
QuestionSlow Graphics in Windows 8 Pin
Dr.Walt Fair, PE11-Mar-13 21:09
professionalDr.Walt Fair, PE11-Mar-13 21:09 
JokeRe: Slow Graphics in Windows 8 Pin
Maciej Los19-Apr-13 6:23
mveMaciej Los19-Apr-13 6:23 
GeneralRe: Slow Graphics in Windows 8 Pin
Dr.Walt Fair, PE19-Apr-13 7:24
professionalDr.Walt Fair, PE19-Apr-13 7:24 
AnswerRe: Slow Graphics in Windows 8 Pin
Maciej Los19-Apr-13 9:36
mveMaciej Los19-Apr-13 9:36 
GeneralRe: Slow Graphics in Windows 8 Pin
Dr.Walt Fair, PE20-Apr-13 22:08
professionalDr.Walt Fair, PE20-Apr-13 22:08 
QuestionHow to capture snap of any SDI windowForm including title bar Pin
Tridip Bhattacharjee11-Mar-13 8:20
professionalTridip Bhattacharjee11-Mar-13 8:20 
AnswerRe: How to capture snap of any SDI windowForm including title bar Pin
Richard MacCutchan12-Mar-13 2:08
mveRichard MacCutchan12-Mar-13 2:08 
Unfortunately the ClientRectangle does not include the form borders so that is not useful for capturing the complete window. However the actual location and size is kept in the form's properties and can be used to capture the window as below. And in this case, the title bar size is not needed.
C#
Rectangle r = new Rectangle(this.Left, this.Top, this.Width, this.Height);

Bitmap _lastSnapshot = new Bitmap(r.Width, r.Height);

using (Image windowImage = new Bitmap(r.Width, r.Height))
using (Graphics windowGraphics = Graphics.FromImage(windowImage))
using (Graphics tipGraphics = Graphics.FromImage(_lastSnapshot))
{
    windowGraphics.CopyFromScreen(new Point(r.Left, r.Top), new Point(0, 0), new Size(r.Width, r.Height));
    windowGraphics.Flush();
    
    tipGraphics.DrawImage(windowImage, 0, 0, r.Width, r.Height);
    _lastSnapshot.Save(@".\tmp.bmp", System.Drawing.Imaging.ImageFormat.Bmp);
}

Use the best guess

GeneralRe: How to capture snap of any SDI windowForm including title bar Pin
Tridip Bhattacharjee13-Mar-13 8:29
professionalTridip Bhattacharjee13-Mar-13 8:29 
GeneralRe: How to capture snap of any SDI windowForm including title bar Pin
Richard MacCutchan13-Mar-13 22:31
mveRichard MacCutchan13-Mar-13 22:31 
QuestionHow to detect mouse over & out on win form title bar Pin
Tridip Bhattacharjee9-Mar-13 9:23
professionalTridip Bhattacharjee9-Mar-13 9:23 
QuestionWinforms Html Editor Pin
tarjeetsalh7-Mar-13 1:41
tarjeetsalh7-Mar-13 1:41 
AnswerRe: Winforms Html Editor Pin
Dave Kreskowiak7-Mar-13 2:27
mveDave Kreskowiak7-Mar-13 2:27 
GeneralRe: Winforms Html Editor Pin
tarjeetsalh10-Mar-13 21:28
tarjeetsalh10-Mar-13 21:28 
GeneralRe: Winforms Html Editor Pin
Dave Kreskowiak11-Mar-13 5:41
mveDave Kreskowiak11-Mar-13 5:41 
QuestionThread Leak Pin
michaelbarb25-Feb-13 5:12
michaelbarb25-Feb-13 5:12 
AnswerRe: Thread Leak Pin
Bernhard Hiller27-Feb-13 23:36
Bernhard Hiller27-Feb-13 23:36 
GeneralRe: Thread Leak Pin
michaelbarb28-Feb-13 3:34
michaelbarb28-Feb-13 3:34 
AnswerRe: Thread Leak Pin
Pete O'Hanlon28-Feb-13 1:40
subeditorPete O'Hanlon28-Feb-13 1:40 

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.