Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: CreateGraphics on a System.Image Pin
codemunkeh13-Nov-07 13:09
codemunkeh13-Nov-07 13:09 
GeneralRe: CreateGraphics on a System.Image Pin
Luc Pattyn13-Nov-07 13:16
sitebuilderLuc Pattyn13-Nov-07 13:16 
GeneralRe: CreateGraphics on a System.Image Pin
codemunkeh13-Nov-07 13:35
codemunkeh13-Nov-07 13:35 
GeneralRe: CreateGraphics on a System.Image Pin
Luc Pattyn13-Nov-07 13:45
sitebuilderLuc Pattyn13-Nov-07 13:45 
QuestionImages Click Event Problem... Pin
kingletas13-Nov-07 12:01
kingletas13-Nov-07 12:01 
AnswerRe: Images Click Event Problem... Pin
Luc Pattyn13-Nov-07 12:17
sitebuilderLuc Pattyn13-Nov-07 12:17 
GeneralRe: Images Click Event Problem... Pin
kingletas13-Nov-07 12:51
kingletas13-Nov-07 12:51 
GeneralRe: Images Click Event Problem... Pin
Luc Pattyn13-Nov-07 13:11
sitebuilderLuc Pattyn13-Nov-07 13:11 
kingletas wrote:
I am using the same picture box to draw the images in the form


I do not agree. You have a while loop in which you do P=new PictureBox(),
so yes the variable P is used over and over, but it is a new PictureBox on every iteration
of the loop.

object sender can be cast to PictureBox, it will point to the one PictureBox that you clicked,
and if you get it's Image property, you have a reference to the Image you clicked.

So you don't need a separate collection to get this working properly.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


GeneralRe: Images Click Event Problem... Pin
kingletas13-Nov-07 14:58
kingletas13-Nov-07 14:58 
QuestionImporting Extreamly Large Files Pin
jasper01813-Nov-07 11:58
jasper01813-Nov-07 11:58 
GeneralRe: Importing Extreamly Large Files Pin
jasper01813-Nov-07 12:46
jasper01813-Nov-07 12:46 
QuestionDateTime Compare Problem Pin
dataminers13-Nov-07 11:12
dataminers13-Nov-07 11:12 
AnswerRe: DateTime Compare Problem Pin
Christian Graus13-Nov-07 11:35
protectorChristian Graus13-Nov-07 11:35 
GeneralRe: DateTime Compare Problem Pin
dataminers13-Nov-07 11:45
dataminers13-Nov-07 11:45 
AnswerRe: DateTime Compare Problem Pin
Bino B13-Nov-07 21:44
Bino B13-Nov-07 21:44 
QuestionTo make button's backgroundimage enabled Pin
omegazafer13-Nov-07 11:02
omegazafer13-Nov-07 11:02 
GeneralRe: To make button's backgroundimage enabled Pin
omegazafer13-Nov-07 12:04
omegazafer13-Nov-07 12:04 
GeneralRe: To make button's backgroundimage enabled Pin
omegazafer13-Nov-07 13:18
omegazafer13-Nov-07 13:18 
QuestionCustom Pocket PC sync Pin
DaveyM6913-Nov-07 9:38
professionalDaveyM6913-Nov-07 9:38 
AnswerRe: Custom Pocket PC sync Pin
Vasudevan Deepak Kumar13-Nov-07 20:21
Vasudevan Deepak Kumar13-Nov-07 20:21 
GeneralRe: Custom Pocket PC sync Pin
DaveyM6913-Nov-07 22:59
professionalDaveyM6913-Nov-07 22:59 
QuestionUpdate, Delete On multi Tables Pin
mehrdadc4813-Nov-07 8:03
mehrdadc4813-Nov-07 8:03 
AnswerRe: Update, Delete On multi Tables Pin
Vasudevan Deepak Kumar13-Nov-07 20:23
Vasudevan Deepak Kumar13-Nov-07 20:23 
QuestionSearching an Item in a ComboBox and get its index Pin
Jonso13-Nov-07 6:33
Jonso13-Nov-07 6:33 
AnswerRe: Searching an Item in a ComboBox and get its index Pin
Ravi Bhavnani13-Nov-07 6:48
professionalRavi Bhavnani13-Nov-07 6:48 

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.