Click here to Skip to main content
16,016,204 members
Home / Discussions / C#
   

C#

 
AnswerRe: Raise Event Pin
0x3c023-Sep-09 0:41
0x3c023-Sep-09 0:41 
AnswerRe: Raise Event Pin
nagendrathecoder23-Sep-09 0:44
nagendrathecoder23-Sep-09 0:44 
AnswerRe: Raise Event Pin
Giorgi Dalakishvili23-Sep-09 1:09
mentorGiorgi Dalakishvili23-Sep-09 1:09 
QuestionSaving an image of a control Pin
Harvey Saayman23-Sep-09 0:20
Harvey Saayman23-Sep-09 0:20 
AnswerRe: Saving an image of a control Pin
N a v a n e e t h23-Sep-09 0:26
N a v a n e e t h23-Sep-09 0:26 
AnswerRe: Saving an image of a control Pin
Luc Pattyn23-Sep-09 0:27
sitebuilderLuc Pattyn23-Sep-09 0:27 
AnswerRe: Saving an image of a control Pin
Hristo-Bojilov23-Sep-09 0:51
Hristo-Bojilov23-Sep-09 0:51 
AnswerRe: Saving an image of a control Pin
PIEBALDconsult23-Sep-09 6:10
mvePIEBALDconsult23-Sep-09 6:10 
What I do in my screen grabber applet is...

Define a bitmap of the appropriate size:

System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap
(
    this.pPanel.Width
,
    this.pPanel.Height
) ;


Get a Graphics object for the bitmap:

using ( System.Drawing.Graphics gr = System.Drawing.Graphics.FromImage ( bitmap ) )


Copy the area of the screen that the Panel covers to the bitmap:

gr.CopyFromScreen
(
    this.pPanel.PointToScreen ( new System.Drawing.Point ( 0 , 0 ) )
,
    new System.Drawing.Point ( 0 , 0 )
,
    this.pPanel.Size
) ;


Save the bitmap to a file (I prefer PNG):

bitmap.Save ( sw.BaseStream , System.Drawing.Imaging.ImageFormat.Png ) ;


(Details left as an exercise.)
QuestionEvent timer_Tick in thread Pin
tamir10123-Sep-09 0:15
tamir10123-Sep-09 0:15 
AnswerRe: Event timer_Tick in thread Pin
N a v a n e e t h23-Sep-09 0:25
N a v a n e e t h23-Sep-09 0:25 
GeneralRe: Event timer_Tick in thread Pin
tamir10123-Sep-09 1:50
tamir10123-Sep-09 1:50 
QuestionPicturebox Image to be stored in Sql Database Pin
amaankhan23-Sep-09 0:03
amaankhan23-Sep-09 0:03 
AnswerRe: Picturebox Image to be stored in Sql Database Pin
N a v a n e e t h23-Sep-09 0:08
N a v a n e e t h23-Sep-09 0:08 
AnswerRe: Picturebox Image to be stored in Sql Database Pin
carlecomm23-Sep-09 16:36
carlecomm23-Sep-09 16:36 
QuestionRead row value from previous DataRowView Pin
kanchoette22-Sep-09 22:19
kanchoette22-Sep-09 22:19 
AnswerRe: Read row value from previous DataRowView Pin
N a v a n e e t h23-Sep-09 0:07
N a v a n e e t h23-Sep-09 0:07 
QuestionAdding the result of two Anonymous Type LINQ queries Pin
Programm3r22-Sep-09 21:15
Programm3r22-Sep-09 21:15 
AnswerRe: Adding the result of two Anonymous Type LINQ queries Pin
Ravi Mori22-Sep-09 21:56
Ravi Mori22-Sep-09 21:56 
GeneralRe: Adding the result of two Anonymous Type LINQ queries Pin
Programm3r22-Sep-09 23:14
Programm3r22-Sep-09 23:14 
QuestionHow to save a web page opened in Mozilla using c# Pin
svt gdwl22-Sep-09 21:10
svt gdwl22-Sep-09 21:10 
AnswerRe: How to save a web page opened in Mozilla using c# Pin
Calla22-Sep-09 21:51
Calla22-Sep-09 21:51 
Questionhow to know which control is focused Pin
meghamaharshi22-Sep-09 21:03
meghamaharshi22-Sep-09 21:03 
AnswerRe: how to know which control is focused Pin
OriginalGriff22-Sep-09 21:31
mveOriginalGriff22-Sep-09 21:31 
GeneralRe: how to know which control is focused Pin
meghamaharshi22-Sep-09 21:56
meghamaharshi22-Sep-09 21:56 
GeneralRe: how to know which control is focused Pin
Programm3r22-Sep-09 21:57
Programm3r22-Sep-09 21: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.