Click here to Skip to main content
15,908,173 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to obtain drive letters without checking the diskette? Pin
Dan Neely8-Mar-06 7:53
Dan Neely8-Mar-06 7:53 
AnswerRe: How to obtain drive letters without checking the diskette? Pin
Tom Wright8-Mar-06 7:20
Tom Wright8-Mar-06 7:20 
AnswerRe: How to obtain drive letters without checking the diskette? Pin
Guffa8-Mar-06 9:02
Guffa8-Mar-06 9:02 
GeneralRe: How to obtain drive letters without checking the diskette? Pin
Libor Tinka8-Mar-06 10:49
Libor Tinka8-Mar-06 10:49 
AnswerRe: How to obtain drive letters without checking the diskette? Pin
Steve Hansen9-Mar-06 3:32
Steve Hansen9-Mar-06 3:32 
GeneralRe: How to obtain drive letters without checking the diskette? Pin
Libor Tinka9-Mar-06 6:20
Libor Tinka9-Mar-06 6:20 
Questionhow to convert a physical address to a virtual address? Pin
bharadwaj_r8-Mar-06 6:36
bharadwaj_r8-Mar-06 6:36 
AnswerRe: how to convert a physical address to a virtual address? Pin
Judah Gabriel Himango8-Mar-06 7:14
sponsorJudah Gabriel Himango8-Mar-06 7:14 
GeneralRe: how to convert a physical address to a virtual address? Pin
bharadwaj_r8-Mar-06 19:22
bharadwaj_r8-Mar-06 19:22 
GeneralRe: how to convert a physical address to a virtual address? Pin
Judah Gabriel Himango9-Mar-06 5:00
sponsorJudah Gabriel Himango9-Mar-06 5:00 
QuestionWhat are these WndProc WMs? Pin
redfish348-Mar-06 6:25
redfish348-Mar-06 6:25 
AnswerRe: What are these WndProc WMs? Pin
Dan Neely8-Mar-06 7:15
Dan Neely8-Mar-06 7:15 
GeneralRe: What are these WndProc WMs? Pin
redfish348-Mar-06 22:03
redfish348-Mar-06 22:03 
AnswerRe: What are these WndProc WMs? Pin
Le centriste8-Mar-06 15:14
Le centriste8-Mar-06 15:14 
QuestionAutoscroll to a rectangle drawn in paint event Pin
Gulfraz Khan8-Mar-06 5:19
Gulfraz Khan8-Mar-06 5:19 
QuestionFile Icon Pin
Mr Marchepane8-Mar-06 4:52
Mr Marchepane8-Mar-06 4:52 
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 
Thank you for your help.
I shall try this also(By the way isn't ProcessCmdKey used in C++?). Meanwhile the program's style has been changed.
And my spellings are not poor. I am the champion of spellings in my university and I always have been throughout my studies. You can say I was taking liberty of net abbreviations, which everyone understands nowadays.
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 Button_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.
I hope this time you'll not be able to find a flaw in my spellings.

All guidance in Graphics in Visual C#.Net is Welcome with advanced thanks.
Wajeeha
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 
AnswerRe: Graphics in C# Pin
_awatts20-Mar-06 9:53
_awatts20-Mar-06 9:53 

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.