Click here to Skip to main content
15,899,124 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionC# Winform controls not drawing Pin
Member 783446019-Apr-13 7:01
Member 783446019-Apr-13 7:01 
AnswerRe: C# Winform controls not drawing Pin
Eddy Vluggen22-Apr-13 8:52
professionalEddy Vluggen22-Apr-13 8:52 
QuestionChanging BackColor for tabControl Pin
_katon_11-Apr-13 2:54
_katon_11-Apr-13 2:54 
AnswerRe: Changing BackColor for tabControl Pin
Alan N11-Apr-13 3:48
Alan N11-Apr-13 3:48 
GeneralRe: Changing BackColor for tabControl Pin
_katon_11-Apr-13 4:29
_katon_11-Apr-13 4:29 
AnswerRe: Changing BackColor for tabControl Pin
Dave Kreskowiak11-Apr-13 5:02
mveDave Kreskowiak11-Apr-13 5:02 
QuestionHow to link drawings on on-line maps to the map Pin
Member 843537226-Mar-13 11:40
Member 843537226-Mar-13 11:40 
AnswerRe: How to link drawings on on-line maps to the map Pin
Bernhard Hiller26-Mar-13 22:47
Bernhard Hiller26-Mar-13 22:47 
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 
below is my routine which works fine but the routine is not generating the image of sdi form with proper height & width. here is my routine and i think there is flaw but i am not being able to capture & fix the flaw. so here is my code. please have a look and guide me what i need to change in this code to fix this flaw.

C#
protected virtual void OnMinimize(EventArgs e)
{
    Rectangle r = this.RectangleToScreen(this.ClientRectangle);
    int titleHeight = r.Top - this.Top;

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

    using (Image windowImage = new Bitmap(r.Width, r.Height + titleHeight))
    using (Graphics windowGraphics = Graphics.FromImage(windowImage))
    using (Graphics tipGraphics = Graphics.FromImage(_lastSnapshot))
    {
        windowGraphics.CopyFromScreen(new Point(r.Left, r.Top - titleHeight),
                 new Point(0, 0), new Size(r.Width, r.Height + titleHeight));
        windowGraphics.Flush();

        tipGraphics.DrawImage(windowImage, 0, 0, r.Width, r.Height + titleHeight);
        _lastSnapshot.Save(@".\tmp.bmp", ImageFormat.Bmp);
    }
}


with the help of above routine i could generate form image and just click on the link to check.
http://i.stack.imgur.com/wCvUl.png[^]
tbhattacharjee

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 
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 

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.