Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
GeneralRe: Graphics Object Using text box for x & y axis. Pin
OriginalGriff10-Jul-10 10:22
mveOriginalGriff10-Jul-10 10:22 
GeneralMessage Removed Pin
10-Jul-10 21:02
isprog110-Jul-10 21:02 
GeneralRe: Graphics Object Using text box for x & y axis. [modified] Pin
OriginalGriff10-Jul-10 21:26
mveOriginalGriff10-Jul-10 21:26 
GeneralRe: Graphics Object Using text box for x & y axis. Pin
isprog110-Jul-10 21:40
isprog110-Jul-10 21:40 
GeneralRe: Graphics Object Using text box for x & y axis. Pin
OriginalGriff10-Jul-10 21:59
mveOriginalGriff10-Jul-10 21:59 
GeneralRe: Graphics Object Using text box for x & y axis. Pin
OriginalGriff10-Jul-10 23:35
mveOriginalGriff10-Jul-10 23:35 
GeneralRe: Graphics Object Using text box for x & y axis. Pin
Luc Pattyn11-Jul-10 6:04
sitebuilderLuc Pattyn11-Jul-10 6:04 
AnswerRe: Graphics Object Using text box for x & y axis. Pin
Roger Wright10-Jul-10 4:59
professionalRoger Wright10-Jul-10 4:59 
I've no idea where you're going with this, but it's clearly a part of something bigger. Smile | :) That screen's way too small to move the house around much.

If you want to redraw the house at different locations you'll need to define a point on your house to be an anchor, with coordinates on the screen that correspond to the X and Y values entered by the user. All other drawing coordinates will have to be modified to make them relative to the anchor point.

You can do this by adding X to every x-value and Y to every y-value in all of your drawing methods, but this may need some tweaking. The default 0,0 coordinates for all methods is the upper left corner of the container; if you have an element within an element, it may take further work to get it just right. I'm fairly new to graphics programming, so I'm just beginning to pick up on some of the gotchas - you'll probably find more. Good luck! Big Grin | :-D
"A Journey of a Thousand Rest Stops Begins with a Single Movement"

AnswerRe: Graphics Object Using text box for x & y axis. Pin
Luc Pattyn10-Jul-10 8:40
sitebuilderLuc Pattyn10-Jul-10 8:40 
Questionconcatenation of multiple value [modified] Pin
varsh1210-Jul-10 1:18
varsh1210-Jul-10 1:18 
AnswerRe: concatenation of multiple value Pin
Luc Pattyn10-Jul-10 1:24
sitebuilderLuc Pattyn10-Jul-10 1:24 
AnswerRe: concatenation of multiple value Pin
OriginalGriff10-Jul-10 1:56
mveOriginalGriff10-Jul-10 1:56 
GeneralRe: concatenation of multiple value Pin
DaveyM6910-Jul-10 2:04
professionalDaveyM6910-Jul-10 2:04 
GeneralRe: concatenation of multiple value Pin
OriginalGriff10-Jul-10 2:07
mveOriginalGriff10-Jul-10 2:07 
AnswerRe: concatenation of multiple value Pin
DaveyM6910-Jul-10 2:03
professionalDaveyM6910-Jul-10 2:03 
AnswerRe: concatenation of multiple value Pin
PIEBALDconsult10-Jul-10 3:56
mvePIEBALDconsult10-Jul-10 3:56 
AnswerRe: concatenation of multiple value Pin
Abhinav S10-Jul-10 5:17
Abhinav S10-Jul-10 5:17 
QuestionHow to mearge 2 column in dagagridview in C# application?? [modified] Pin
Sunil G9-Jul-10 20:53
Sunil G9-Jul-10 20:53 
AnswerRe: How to set Image in particular cell in DataGridView in C# Pin
Abhinav S9-Jul-10 21:01
Abhinav S9-Jul-10 21:01 
GeneralRe: How to set Image in particular cell in DataGridView in C# Pin
Sunil G9-Jul-10 21:18
Sunil G9-Jul-10 21:18 
AnswerRe: How to mearge 2 column in dagagridview in C# application?? Pin
Peace ON9-Jul-10 21:20
Peace ON9-Jul-10 21:20 
GeneralRe: How to mearge 2 column in dagagridview in C# application?? Pin
Sunil G9-Jul-10 21:27
Sunil G9-Jul-10 21:27 
QuestionStore /Retrieve Text in file Pin
annmarypaul9-Jul-10 11:51
annmarypaul9-Jul-10 11:51 
AnswerRe: Store /Retrieve Text in file Pin
PIEBALDconsult9-Jul-10 12:47
mvePIEBALDconsult9-Jul-10 12:47 
AnswerRe: Store /Retrieve Text in file Pin
Peace ON9-Jul-10 19:16
Peace ON9-Jul-10 19:16 

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.