Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
AnswerRe: File Icon Pin
redfish348-Mar-06 6:31
redfish348-Mar-06 6:31 
QuestionWebservices (RPC+SOAP) Pin
mpuerto8-Mar-06 4:20
mpuerto8-Mar-06 4:20 
QuestionTableLayoutPanel question Pin
Drew McGhie8-Mar-06 4:10
Drew McGhie8-Mar-06 4:10 
QuestionGraphics in C# Pin
Jeea20068-Mar-06 3:42
Jeea20068-Mar-06 3:42 
AnswerRe: Graphics in C# Pin
Judah Gabriel Himango8-Mar-06 3:55
sponsorJudah Gabriel Himango8-Mar-06 3:55 
GeneralRe: Graphics in C# Pin
Jeea200618-Mar-06 22:49
Jeea200618-Mar-06 22:49 
AnswerRe: Graphics in C# Pin
_awatts8-Mar-06 9:05
_awatts8-Mar-06 9:05 
GeneralRe: Graphics in C# Pin
Jeea200618-Mar-06 23:01
Jeea200618-Mar-06 23:01 
Thank you for your help. I am using the Transform function, WITH the matrices made manually. I have done almost exactly as you've clued above.(By the way, how do we change the colors of text around here?)
Meanwhile the program's style has been changed.
I was taking liberty of net abbreviations, which everyone understands nowadays. And I did not know it's not liked here.
The program structure has now become as in to make 4 separate lines to draw the rectangle, and change its position using button-click.
I have already made the program, but it has one problem: I don't know how to call the DrawLine function in Button1_Click event. It gives me the following errors:
-first that I "No overload for method 'DrawLinePoint' takes '0' arguments" (like 'DrawLine()' ) .
-when I give arguments of p,Pt1, Pt2 it says they're classes and I should enter variables.
-When I give it the arguments Pen, Point, Point(And it is to check only) it says that "No overload for method 'DrawLinePoint' takes '3' arguments"!
-And I have a point to make here:-
**If I give it three arguments, shouldn't I write it 4 times? To make 4 lines I have to call it four times right?
Like this:
e.Graphics.DrawLine(blackPen,pt1,pt2);
e.Graphics.DrawLine(blackPen,pt2,pt4);
e.Graphics.DrawLine(blackPen,pt4,pt3);
e.Graphics.DrawLine(blackPen,pt3,pt1);

where blackPen is the name of the Pen, and pt1,2,3,4 are points.
I have defined all points. I have converted them into integers. And I don't know what else I have done. It was giving me 40 errors, after which it is now giving none, but it does as soon as I try to call DrawLine in Button1_Click event.
I have used the Transform function also. It has no problems.
But obviously, it will only WORK if I call the DrawLine function first. Wish I could attach my file here.
I have also tried making a separate class, but I wouldn't call it a serious step.

Help! I need a 3-D game programmer who can help me in my final year project!
Wajeeha
AnswerRe: Graphics in C# Pin
_awatts20-Mar-06 9:53
_awatts20-Mar-06 9:53 
QuestionAlternatives to DataTable Searches? Pin
Paul Gates8-Mar-06 2:30
Paul Gates8-Mar-06 2:30 
AnswerRe: Alternatives to DataTable Searches? Pin
Wjousts8-Mar-06 3:30
Wjousts8-Mar-06 3:30 
GeneralRe: Alternatives to DataTable Searches? Pin
Paul Gates8-Mar-06 5:07
Paul Gates8-Mar-06 5:07 
QuestionAbout mainFrame communicate with thread Pin
breakhearts8-Mar-06 2:18
breakhearts8-Mar-06 2:18 
AnswerRe: About mainFrame communicate with thread Pin
mav.northwind8-Mar-06 2:54
mav.northwind8-Mar-06 2:54 
QuestionDeclaring a arrays of objects dynamically Pin
winpoorni8-Mar-06 1:12
winpoorni8-Mar-06 1:12 
AnswerRe: Declaring a arrays of objects dynamically Pin
Stefan Troschuetz8-Mar-06 1:32
Stefan Troschuetz8-Mar-06 1:32 
AnswerRe: Declaring a arrays of objects dynamically Pin
Divyang Mithaiwala8-Mar-06 1:51
Divyang Mithaiwala8-Mar-06 1:51 
QuestionRe: Declaring a arrays of objects dynamically Pin
winpoorni8-Mar-06 17:32
winpoorni8-Mar-06 17:32 
AnswerRe: Declaring a arrays of objects dynamically Pin
Divyang Mithaiwala8-Mar-06 17:42
Divyang Mithaiwala8-Mar-06 17:42 
JokeDeclaring a arrays of objects dynamically Pin
winpoorni8-Mar-06 18:25
winpoorni8-Mar-06 18:25 
AnswerRe: Declaring a arrays of objects dynamically Pin
Wjousts8-Mar-06 3:33
Wjousts8-Mar-06 3:33 
AnswerRe: Declaring a arrays of objects dynamically Pin
Judah Gabriel Himango8-Mar-06 4:01
sponsorJudah Gabriel Himango8-Mar-06 4:01 
JokeThanks Pin
winpoorni8-Mar-06 17:41
winpoorni8-Mar-06 17:41 
Questionmanually running class library in cmd Pin
sasire188-Mar-06 0:27
sasire188-Mar-06 0:27 
AnswerRe: manually running class library in cmd Pin
Steve Hansen8-Mar-06 0:52
Steve Hansen8-Mar-06 0:52 

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.