Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
AnswerRe: Parsing Log Files Pin
Mustafa Ismail Mustafa26-Jan-09 4:41
Mustafa Ismail Mustafa26-Jan-09 4:41 
GeneralRe: Parsing Log Files Pin
alwaysthinking26-Jan-09 4:59
alwaysthinking26-Jan-09 4:59 
GeneralRe: Parsing Log Files Pin
Mark Churchill26-Jan-09 14:44
Mark Churchill26-Jan-09 14:44 
GeneralRe: Parsing Log Files Pin
Mustafa Ismail Mustafa26-Jan-09 23:49
Mustafa Ismail Mustafa26-Jan-09 23:49 
Question[Message Deleted] Pin
hkjghkj126-Jan-09 3:34
hkjghkj126-Jan-09 3:34 
AnswerRe: CopyFromScreen() question. Pin
PIEBALDconsult26-Jan-09 5:20
mvePIEBALDconsult26-Jan-09 5:20 
General[Message Deleted] Pin
hkjghkj126-Jan-09 6:50
hkjghkj126-Jan-09 6:50 
GeneralRe: CopyFromScreen() question. Pin
PIEBALDconsult26-Jan-09 7:08
mvePIEBALDconsult26-Jan-09 7:08 
I don't know about anybody else, but I use a transparent Panel to select the area of the screen to capture, then:

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

using ( System.Drawing.Graphics gr = System.Drawing.Graphics.FromImage ( bitmap ) )
{
    gr.CopyFromScreen
    (
        this.pPanel.PointToScreen ( new System.Drawing.Point ( 0 , 0 ) )
    ,
        new System.Drawing.Point ( 0 , 0 )
    ,
        this.pPanel.Size
    ) ;

    try
    {
        System.IO.StreamWriter sw = new System.IO.StreamWriter
        (
            new System.IO.FileStream
            (
                this.dlgFileSave.FileName
            ,
                System.IO.FileMode.Create
            ,
                System.IO.FileAccess.Write
            ,
                System.IO.FileShare.None
            )
        ) ;

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

        sw.Close() ;
    }
    catch ( System.Exception err )
    {
        System.Windows.Forms.MessageBox.Show
        (
            "Could not open file\n" +
            err.Message
        ,
            "File open error"
        ,
            System.Windows.Forms.MessageBoxButtons.OK
        ,
            System.Windows.Forms.MessageBoxIcon.Exclamation
        ) ;
    }
}

QuestionHow do I bounce an old thread? Pin
Butter18526-Jan-09 3:29
Butter18526-Jan-09 3:29 
AnswerRe: How do I bounce an old thread? Pin
benjymous26-Jan-09 3:59
benjymous26-Jan-09 3:59 
GeneralRe: How do I bounce an old thread? Pin
Mustafa Ismail Mustafa26-Jan-09 4:08
Mustafa Ismail Mustafa26-Jan-09 4:08 
GeneralRe: How do I bounce an old thread? Pin
Butter18526-Jan-09 6:27
Butter18526-Jan-09 6:27 
GeneralRe: How do I bounce an old thread? Pin
benjymous26-Jan-09 22:09
benjymous26-Jan-09 22:09 
AnswerRe: How do I bounce an old thread? Pin
Mustafa Ismail Mustafa26-Jan-09 4:04
Mustafa Ismail Mustafa26-Jan-09 4:04 
GeneralRe: How do I bounce an old thread? Pin
J4amieC26-Jan-09 4:27
J4amieC26-Jan-09 4:27 
GeneralRe: How do I bounce an old thread? Pin
Mustafa Ismail Mustafa26-Jan-09 4:30
Mustafa Ismail Mustafa26-Jan-09 4:30 
QuestionProblem to if communicate with video capture device! Pin
Alex_xso26-Jan-09 3:27
Alex_xso26-Jan-09 3:27 
AnswerRe: Problem to if communicate with video capture device! Pin
Mustafa Ismail Mustafa26-Jan-09 3:57
Mustafa Ismail Mustafa26-Jan-09 3:57 
GeneralRe: Problem to if communicate with video capture device! Pin
Alex_xso26-Jan-09 5:02
Alex_xso26-Jan-09 5:02 
Questionclient/server problem [modified] Pin
staticv26-Jan-09 3:20
staticv26-Jan-09 3:20 
AnswerRe: client/server problem Pin
Mustafa Ismail Mustafa26-Jan-09 3:55
Mustafa Ismail Mustafa26-Jan-09 3:55 
GeneralRe: client/server problem Pin
staticv26-Jan-09 4:09
staticv26-Jan-09 4:09 
GeneralRe: client/server problem Pin
Mustafa Ismail Mustafa26-Jan-09 4:28
Mustafa Ismail Mustafa26-Jan-09 4:28 
GeneralRe: client/server problem [modified] Pin
staticv26-Jan-09 4:37
staticv26-Jan-09 4:37 
GeneralRe: client/server problem Pin
Mustafa Ismail Mustafa26-Jan-09 4:40
Mustafa Ismail Mustafa26-Jan-09 4: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.