Click here to Skip to main content
14,865,273 members
Home / Discussions / Windows Forms
   

Windows Forms

 
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.
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
Membertarjeetsalh7-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
Membertarjeetsalh10-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
Membermichaelbarb25-Feb-13 5:12 
AnswerRe: Thread Leak Pin
Bernhard Hiller27-Feb-13 23:36
MemberBernhard Hiller27-Feb-13 23:36 
GeneralRe: Thread Leak Pin
michaelbarb28-Feb-13 3:34
Membermichaelbarb28-Feb-13 3:34 
AnswerRe: Thread Leak Pin
Pete O'Hanlon28-Feb-13 1:40
mvePete O'Hanlon28-Feb-13 1:40 
GeneralRe: Thread Leak Pin
michaelbarb28-Feb-13 3:38
Membermichaelbarb28-Feb-13 3:38 
GeneralRe: Thread Leak Pin
Pete O'Hanlon28-Feb-13 3:41
mvePete O'Hanlon28-Feb-13 3:41 
GeneralRe: Thread Leak Pin
michaelbarb28-Feb-13 4:11
Membermichaelbarb28-Feb-13 4:11 
GeneralRe: Thread Leak Pin
Dave Kreskowiak28-Feb-13 4:17
mveDave Kreskowiak28-Feb-13 4:17 
GeneralRe: Thread Leak Pin
Pete O'Hanlon28-Feb-13 4:30
mvePete O'Hanlon28-Feb-13 4:30 
AnswerRe: Thread Leak Pin
michaelbarb18-Jun-13 4:57
Membermichaelbarb18-Jun-13 4:57 

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.