Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to find all the rectangle in point collection ? Pin
DaveyM6920-Sep-10 4:07
professionalDaveyM6920-Sep-10 4:07 
Questionprocess.start and sc delete servicename Pin
tomorrow_ft20-Sep-10 0:53
tomorrow_ft20-Sep-10 0:53 
AnswerRe: process.start and sc delete servicename Pin
tomorrow_ft20-Sep-10 1:06
tomorrow_ft20-Sep-10 1:06 
AnswerRe: process.start and sc delete servicename Pin
Pete O'Hanlon20-Sep-10 1:09
mvePete O'Hanlon20-Sep-10 1:09 
QuestionC# Seeing Through Objects Pin
C.CoderCreator19-Sep-10 20:49
C.CoderCreator19-Sep-10 20:49 
AnswerRe: C# Seeing Through Objects Pin
#realJSOP19-Sep-10 23:44
professional#realJSOP19-Sep-10 23:44 
GeneralRe: C# Seeing Through Objects Pin
C.CoderCreator19-Sep-10 23:58
C.CoderCreator19-Sep-10 23:58 
GeneralRe: C# Seeing Through Objects Pin
Dave Kreskowiak20-Sep-10 1:56
mveDave Kreskowiak20-Sep-10 1:56 
AnswerRe: C# Seeing Through Objects Pin
PIEBALDconsult20-Sep-10 3:12
mvePIEBALDconsult20-Sep-10 3:12 
QuestionReading a PDF File Pin
Anil Kumar.Arvapalli19-Sep-10 20:45
Anil Kumar.Arvapalli19-Sep-10 20:45 
AnswerRe: Reading a PDF File Pin
R. Giskard Reventlov19-Sep-10 20:49
R. Giskard Reventlov19-Sep-10 20:49 
Questionproblem reading from app.config Pin
Jassim Rahma19-Sep-10 6:23
Jassim Rahma19-Sep-10 6:23 
AnswerRe: problem reading from app.config Pin
Luc Pattyn19-Sep-10 7:00
sitebuilderLuc Pattyn19-Sep-10 7:00 
QuestionRe: problem reading from app.config Pin
i.j.russell19-Sep-10 20:58
i.j.russell19-Sep-10 20:58 
QuestionHow to use SetPortVal() and GetPortVal() of winio?? Pin
shushi.lin19-Sep-10 4:39
shushi.lin19-Sep-10 4:39 
AnswerRe: How to use SetPortVal() and GetPortVal() of winio?? Pin
Dave Kreskowiak19-Sep-10 7:24
mveDave Kreskowiak19-Sep-10 7:24 
QuestionTCP Header structure Pin
95ulisse19-Sep-10 3:02
95ulisse19-Sep-10 3:02 
AnswerRe: TCP Header structure Pin
Dave Kreskowiak19-Sep-10 7:21
mveDave Kreskowiak19-Sep-10 7:21 
GeneralRe: TCP Header structure Pin
95ulisse19-Sep-10 9:08
95ulisse19-Sep-10 9:08 
GeneralRe: TCP Header structure Pin
Dave Kreskowiak19-Sep-10 9:56
mveDave Kreskowiak19-Sep-10 9:56 
QuestionPInvoke Pin
Saksida Bojan19-Sep-10 0:08
Saksida Bojan19-Sep-10 0:08 
AnswerRe: PInvoke Pin
Luc Pattyn19-Sep-10 3:23
sitebuilderLuc Pattyn19-Sep-10 3:23 
GeneralRe: PInvoke Pin
Saksida Bojan19-Sep-10 3:59
Saksida Bojan19-Sep-10 3:59 
AnswerRe: PInvoke Pin
Luc Pattyn19-Sep-10 4:16
sitebuilderLuc Pattyn19-Sep-10 4:16 
QuestionWhy i get an exception on this code ? ( code attached ) Pin
Yanshof18-Sep-10 21:53
Yanshof18-Sep-10 21:53 
I have some pictureBox (simple winform) that i change the image every 3 seconds.
When i stop changing the images - and i move the mouse on the picture i get an exception about 'arguments are not valid'.
In debug i see that all the arguments are fine - and the image that appear on the pictureBox is valid.
The Bitmap b is also valid and is not null - and i see in debug the bitmap information.

The exception appear on line 5


1       private Color OnMouseMove_PictureBox( object sender, MouseEventArgs e )
        {
2           Color c = null;
3           if( pictureBox.Image != null )
            {
4                Bitmap b = ( Bitmap )pictureBox.Image;             // ref to the current pic
5                c = b.GetPixel( e.X, e.Y );
            }
            return c;
        }

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.