Click here to Skip to main content
15,910,121 members
Home / Discussions / C#
   

C#

 
QuestionMovement... sigh Pin
MasterSharp12-Oct-07 6:52
MasterSharp12-Oct-07 6:52 
AnswerRe: Movement... sigh Pin
Luc Pattyn12-Oct-07 7:05
sitebuilderLuc Pattyn12-Oct-07 7:05 
GeneralRe: Movement... sigh Pin
MasterSharp12-Oct-07 7:08
MasterSharp12-Oct-07 7:08 
GeneralRe: Movement... sigh Pin
led mike12-Oct-07 7:20
led mike12-Oct-07 7:20 
GeneralRe: Movement... sigh Pin
Luc Pattyn12-Oct-07 7:23
sitebuilderLuc Pattyn12-Oct-07 7:23 
GeneralRe: Movement... sigh Pin
MasterSharp12-Oct-07 16:39
MasterSharp12-Oct-07 16:39 
GeneralRe: Movement... sigh Pin
Luc Pattyn12-Oct-07 16:53
sitebuilderLuc Pattyn12-Oct-07 16:53 
AnswerRe: Movement... sigh Pin
Guffa12-Oct-07 7:10
Guffa12-Oct-07 7:10 
MasterSharp wrote:
How do you move what you draw?


You can't. Once you have drawn something somewhere, it's drawn. It's like a brush stroke on a canvas, you can't move that around once it's done.

MasterSharp wrote:
I tried

rectangle1.Location = new System.Drawing.Point(x, y);


That would work if it was a windows control. They repaint themselves when needed. Graphics that has been drawn are just pixels on the screen, they doesn't exist as an entity that you can manipulate in any way.

MasterSharp wrote:
but it didn't work.


I am amazed about how often people describe a result with "doesn't work". It doesn't say anything about what the problem is, and it can be anything from a slight difference from what was expected to a total failure.

What do you mean exctly when you say that "it didn't work"?

---
single minded; short sighted; long gone;

GeneralRe: Movement... sigh Pin
MasterSharp12-Oct-07 7:11
MasterSharp12-Oct-07 7:11 
GeneralRe: Movement... sigh Pin
Judah Gabriel Himango12-Oct-07 7:18
sponsorJudah Gabriel Himango12-Oct-07 7:18 
GeneralRe: Movement... sigh Pin
MasterSharp12-Oct-07 7:19
MasterSharp12-Oct-07 7:19 
AnswerRe: Movement... sigh Pin
Guffa12-Oct-07 7:39
Guffa12-Oct-07 7:39 
AnswerRe: Movement... sigh Pin
Guffa12-Oct-07 7:21
Guffa12-Oct-07 7:21 
GeneralRe: Movement... sigh Pin
MasterSharp12-Oct-07 7:25
MasterSharp12-Oct-07 7:25 
GeneralRe: Movement... sigh Pin
snorkie12-Oct-07 7:45
professionalsnorkie12-Oct-07 7:45 
GeneralRe: Movement... sigh Pin
MasterSharp12-Oct-07 7:48
MasterSharp12-Oct-07 7:48 
GeneralRe: Movement... sigh Pin
snorkie29-Oct-07 9:39
professionalsnorkie29-Oct-07 9:39 
AnswerYou can cheat a little Pin
Ennis Ray Lynch, Jr.12-Oct-07 8:41
Ennis Ray Lynch, Jr.12-Oct-07 8:41 
QuestionFinding Classes that implement a certain Class Pin
Fayu12-Oct-07 6:29
Fayu12-Oct-07 6:29 
AnswerRe: Finding Classes that implement a certain Class Pin
Luc Pattyn12-Oct-07 7:07
sitebuilderLuc Pattyn12-Oct-07 7:07 
GeneralRe: Finding Classes that implement a certain Class Pin
Fayu12-Oct-07 7:40
Fayu12-Oct-07 7:40 
GeneralRe: Finding Classes that implement a certain Class Pin
Luc Pattyn12-Oct-07 8:02
sitebuilderLuc Pattyn12-Oct-07 8:02 
AnswerRe: Finding Classes that implement a certain Class Pin
Skippums12-Oct-07 7:10
Skippums12-Oct-07 7:10 
GeneralRe: Finding Classes that implement a certain Class Pin
Fayu12-Oct-07 7:40
Fayu12-Oct-07 7:40 
AnswerRe: Finding Classes that implement a certain Class Pin
led mike12-Oct-07 7:17
led mike12-Oct-07 7:17 

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.