Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: overriding List<T>.this Pin
peterchen2-Jan-06 11:40
peterchen2-Jan-06 11:40 
QuestionManaged Directx9 and video fullscreen on secondary monitor Pin
bart.burkhardt1-Jan-06 11:45
bart.burkhardt1-Jan-06 11:45 
QuestionUpload Files to Web Server - Suggestions Pin
Orcrist1-Jan-06 11:12
Orcrist1-Jan-06 11:12 
QuestionBasic Design Question Pin
Skoder1-Jan-06 9:40
Skoder1-Jan-06 9:40 
AnswerRe: Basic Design Question Pin
Xodiak1-Jan-06 10:52
Xodiak1-Jan-06 10:52 
AnswerRe: Basic Design Question Pin
Ed K1-Jan-06 11:36
Ed K1-Jan-06 11:36 
QuestionGame field Pin
DeathJester_1-Jan-06 9:02
DeathJester_1-Jan-06 9:02 
QuestionProblem Translating Window Coordinates Pin
...---...1-Jan-06 6:52
...---...1-Jan-06 6:52 
Hi,
I have asked this question about a day ago and I was given a very good answer about some concepts I was not aware of-- Region.Translate, and Matrix.Transform. So I've been
experimenting with them and I'm able to now draw Rects and Translate and Rotate them
but I still haven't solved what I ultimately want to do...
/////////////////////

PointF pt_1 = new PointF(0,0)
PointF pt_1 = new PointF(100,100)

public void DrawLine(Graphics g)
{
SolidBrush brush = new SolidBrush(Color.SteelBlue);
Pen pen = new Pen(brush, 10);
g.DrawLine(pen, pt_1.X, pt_1.Y, pt_2.X, pt_2.Y);
}

private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
DrawLine(e.Graphics);
}
////////////////////////////////////////////
How do I change to my own coordinate system and have it permanently stay that way?
That is, I want (0,0) to always be the center of the Form, no matter what event fires.
What I have (not the test code above) is a program that can draw vectors on an XY axis.
I can do it-- only because I've hard-coded the coordinates for the Graph Origin, which
besides being a lousy way to do things, also prevents me from any more progress....
Any (further) help would be greatly appreciated.. thanks

AnswerRe: Problem Translating Window Coordinates Pin
Curtis Schlak.3-Jan-06 6:05
Curtis Schlak.3-Jan-06 6:05 
Questionwho can teach me about C#.NET..help me! Pin
azmafaridah1-Jan-06 4:01
azmafaridah1-Jan-06 4:01 
AnswerRe: who can teach me about C#.NET..help me! Pin
Colin Angus Mackay1-Jan-06 6:35
Colin Angus Mackay1-Jan-06 6:35 
QuestionSystem.Collection.Generic Question Pin
Shriniwasan Viswanathan1-Jan-06 3:54
Shriniwasan Viswanathan1-Jan-06 3:54 
AnswerRe: System.Collection.Generic Question Pin
Guffa1-Jan-06 4:23
Guffa1-Jan-06 4:23 
QuestionRe: System.Collection.Generic Question Pin
Shriniwasan Viswanathan1-Jan-06 4:43
Shriniwasan Viswanathan1-Jan-06 4:43 
Questionextract URLs of Strings? Pin
ger_creal1-Jan-06 3:01
ger_creal1-Jan-06 3:01 
AnswerRe: extract URLs of Strings? Pin
Xodiak1-Jan-06 10:56
Xodiak1-Jan-06 10:56 
GeneralRe: extract URLs of Strings? Pin
ger_creal2-Jan-06 2:28
ger_creal2-Jan-06 2:28 
AnswerRe: extract URLs of Strings? Pin
Ravi Bhavnani1-Jan-06 15:56
professionalRavi Bhavnani1-Jan-06 15:56 
GeneralRe: extract URLs of Strings? Pin
ger_creal2-Jan-06 2:22
ger_creal2-Jan-06 2:22 
QuestionHow can i access Group policy in C# Pin
smnqamer1-Jan-06 1:20
smnqamer1-Jan-06 1:20 
QuestionNotify LAN (dis)connection Pin
MohammadAmiry31-Dec-05 23:54
MohammadAmiry31-Dec-05 23:54 
QuestionCircle.IntersectsWith Pin
gnjunge31-Dec-05 23:01
gnjunge31-Dec-05 23:01 
AnswerRe: Circle.IntersectsWith Pin
leppie31-Dec-05 23:34
leppie31-Dec-05 23:34 
GeneralRe: Circle.IntersectsWith Pin
gnjunge31-Dec-05 23:47
gnjunge31-Dec-05 23:47 
AnswerRe: Circle.IntersectsWith Pin
Robert Rohde1-Jan-06 2:31
Robert Rohde1-Jan-06 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.