Click here to Skip to main content
15,909,822 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drag and drop file into application Pin
led mike2-Apr-08 6:42
led mike2-Apr-08 6:42 
GeneralRe: Drag and drop file into application Pin
Blubbo2-Apr-08 6:57
Blubbo2-Apr-08 6:57 
GeneralRe: Drag and drop file into application Pin
Blubbo2-Apr-08 7:21
Blubbo2-Apr-08 7:21 
GeneralRe: Drag and drop file into application Pin
led mike2-Apr-08 7:45
led mike2-Apr-08 7:45 
AnswerRe: Drag and drop file into application Pin
Blubbo2-Apr-08 8:02
Blubbo2-Apr-08 8:02 
GeneralPass in-memory assembly to ReportViewer Pin
AndrusM2-Apr-08 5:29
AndrusM2-Apr-08 5:29 
QuestionUnable to set location of picturebox programatically Pin
KaKa'2-Apr-08 4:33
KaKa'2-Apr-08 4:33 
GeneralRe: Unable to set location of picturebox programatically Pin
Luc Pattyn2-Apr-08 5:53
sitebuilderLuc Pattyn2-Apr-08 5:53 
Hi,

some comments:

1.
your names are quite confusing, you should change them:

PlaceFlower() does not place a flower, it creates a PictureBox that holds a flower,
but it does not make it visible and does not set its location; GetFlowerBox() is a better name.

SetCoordinates() does not set coordinates, it creates and returns a Point, but does
not do anything with the Point. GetRandomPoint() would be a more appropriate name.

Choosing proper names will help you in understanding your own code, today and in future.

2.
your code is not complete, and the problem is likely to reside it what is not shown.
My best guess is you have two PictureBoxes:
- if you already see a flower, it is not the one from flowerPicture; I suspect you
have some other PictureBox that shows the flower you see, and is not affected by
your attempts to move it;
- the flowerPicture PictureBox, as far as the code shows, never becomes visible, since
it is not added to the Controls property of any Container or Form.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Unable to set location of picturebox programatically Pin
KaKa'3-Apr-08 5:31
KaKa'3-Apr-08 5:31 
QuestionButtons and Controls look different in 2008 designer than when run Pin
UTRocketFan2-Apr-08 4:06
UTRocketFan2-Apr-08 4:06 
GeneralRe: Buttons and Controls look different in 2008 designer than when run Pin
damianrda2-Apr-08 5:22
damianrda2-Apr-08 5:22 
GeneralCPU temperature Pin
half-life2-Apr-08 3:27
half-life2-Apr-08 3:27 
GeneralRe: CPU temperature Pin
Dave Kreskowiak2-Apr-08 3:59
mveDave Kreskowiak2-Apr-08 3:59 
GeneralRe: CPU temperature Pin
half-life2-Apr-08 4:46
half-life2-Apr-08 4:46 
GeneralDa how can I see the details of an assembly Pin
sujithkumarsl2-Apr-08 3:08
sujithkumarsl2-Apr-08 3:08 
GeneralRe: Da how can I see the details of an assembly Pin
papadimitriou2-Apr-08 3:20
papadimitriou2-Apr-08 3:20 
GeneralBeginners foreach and condition question Pin
NewToAspDotNet2-Apr-08 3:02
NewToAspDotNet2-Apr-08 3:02 
GeneralRe: Beginners foreach and condition question Pin
Simon P Stevens2-Apr-08 3:21
Simon P Stevens2-Apr-08 3:21 
GeneralRe: Beginners foreach and condition question Pin
papadimitriou2-Apr-08 3:27
papadimitriou2-Apr-08 3:27 
GeneralRe: Beginners foreach and condition question Pin
NewToAspDotNet2-Apr-08 3:33
NewToAspDotNet2-Apr-08 3:33 
GeneralRe: Beginners foreach and condition question [modified] Pin
Stu Richardson2-Apr-08 4:27
Stu Richardson2-Apr-08 4:27 
GeneralRe: Beginners foreach and condition question Pin
Clive D. Pottinger2-Apr-08 4:43
Clive D. Pottinger2-Apr-08 4:43 
QuestionHow to load data? Pin
Hum Dum2-Apr-08 2:42
Hum Dum2-Apr-08 2:42 
GeneralStupid question of the day (Trees) Pin
martin_hughes2-Apr-08 2:26
martin_hughes2-Apr-08 2:26 
GeneralRe: Stupid question of the day (Trees) Pin
Pete O'Hanlon2-Apr-08 2:31
mvePete O'Hanlon2-Apr-08 2:31 

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.