Click here to Skip to main content
15,912,205 members
Home / Discussions / C#
   

C#

 
Generallooking for a Component Pin
parnian honarmand18-Sep-04 10:08
parnian honarmand18-Sep-04 10:08 
GeneralRe: looking for a Component Pin
Alex Korchemniy19-Sep-04 12:23
Alex Korchemniy19-Sep-04 12:23 
Questionhowto read infos from *.url files ? Pin
Member 80267718-Sep-04 8:54
Member 80267718-Sep-04 8:54 
AnswerRe: howto read infos from *.url files ? Pin
Colin Angus Mackay18-Sep-04 15:51
Colin Angus Mackay18-Sep-04 15:51 
GeneralRe: howto read infos from *.url files ? Pin
Member 80267719-Sep-04 1:14
Member 80267719-Sep-04 1:14 
GeneralCopying richtext to Word Pin
RomanD18-Sep-04 8:29
RomanD18-Sep-04 8:29 
GeneralRe: Copying richtext to Word Pin
mav.northwind18-Sep-04 23:57
mav.northwind18-Sep-04 23:57 
QuestionWhich Pixel Was Clicked? Pin
Finn Grimwood18-Sep-04 8:10
Finn Grimwood18-Sep-04 8:10 
right Smile | :) hello

I have loaded the contents of a picturebox into a bitmap variable...

Bitmap bmp = new Bitmap(pictureBox1.Image);

like so...

when someone clicks on the image how can i get the XY coordinates of the pixel that was clicked.. and then do a GetPixel on the location?

I cant use Mouse event args e.x/e.y because that gives me the position of the click on the whole screen... not the position of the click on the picturebox...

any ideas?

ps. i cant just find the xy position of the click on the screen and then trace it back to the form and the position of the picturebox becase of form borders and different XP Styles...

Thanks in advanced.

Finn
AnswerRe: Which Pixel Was Clicked? Pin
Charlie Williams18-Sep-04 9:20
Charlie Williams18-Sep-04 9:20 
GeneralRe: Which Pixel Was Clicked? Pin
Finn Grimwood18-Sep-04 10:32
Finn Grimwood18-Sep-04 10:32 
Questionhow to make a canvas for manipulating different bitmaps and shapes Pin
Sheraz Saeedy18-Sep-04 6:51
Sheraz Saeedy18-Sep-04 6:51 
Answernot the answer Pin
Colin Angus Mackay18-Sep-04 7:21
Colin Angus Mackay18-Sep-04 7:21 
GeneralRe: not the answer Pin
Charlie Williams18-Sep-04 9:23
Charlie Williams18-Sep-04 9:23 
GeneralRe: not the answer Pin
Sheraz Saeedy20-Sep-04 5:25
Sheraz Saeedy20-Sep-04 5:25 
GeneralRe: not the answer Pin
Colin Angus Mackay20-Sep-04 5:32
Colin Angus Mackay20-Sep-04 5:32 
GeneralRe: not the answer Pin
Sheraz Saeedy20-Sep-04 5:53
Sheraz Saeedy20-Sep-04 5:53 
GeneralRe: not the answer Pin
Colin Angus Mackay20-Sep-04 6:04
Colin Angus Mackay20-Sep-04 6:04 
QuestionHi Duell ???? Pin
Anonymous18-Sep-04 3:46
Anonymous18-Sep-04 3:46 
AnswerRe: Hi Duell ???? Pin
Colin Angus Mackay18-Sep-04 7:28
Colin Angus Mackay18-Sep-04 7:28 
GeneralRe: Hi Duell ???? Pin
peterchen19-Sep-04 8:19
peterchen19-Sep-04 8:19 
GeneralRe: Hi Duell ???? Pin
Colin Angus Mackay19-Sep-04 8:20
Colin Angus Mackay19-Sep-04 8:20 
GeneralMerge Pin
sreejith ss nair18-Sep-04 3:12
sreejith ss nair18-Sep-04 3:12 
GeneralRe: Merge Pin
Charlie Williams18-Sep-04 13:47
Charlie Williams18-Sep-04 13:47 
GeneralRe: Merge Pin
sreejith ss nair19-Sep-04 3:42
sreejith ss nair19-Sep-04 3:42 
GeneralChange License URL using key info Pin
gupta vaibhav18-Sep-04 1:50
gupta vaibhav18-Sep-04 1:50 

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.