Click here to Skip to main content
15,888,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding a chart to my form Pin
enjoycrack6-Oct-05 10:43
enjoycrack6-Oct-05 10:43 
Questionpaste/insert text at cursor position in a rich text box Pin
Agyeman5-Oct-05 6:13
Agyeman5-Oct-05 6:13 
AnswerRe: paste/insert text at cursor position in a rich text box Pin
Heath Stewart5-Oct-05 8:39
protectorHeath Stewart5-Oct-05 8:39 
QuestionSocket.BeginSend and AsyncCallBack Delegate problems Pin
Lilli Alexis5-Oct-05 5:57
Lilli Alexis5-Oct-05 5:57 
Questionpaste/insert text at cursor position in a rich text box Pin
Agyeman5-Oct-05 5:34
Agyeman5-Oct-05 5:34 
AnswerRe: paste/insert text at cursor position in a rich text box Pin
mav.northwind5-Oct-05 8:24
mav.northwind5-Oct-05 8:24 
GeneralRe: paste/insert text at cursor position in a rich text box Pin
Agyeman5-Oct-05 8:34
Agyeman5-Oct-05 8:34 
QuestionHow to place line cap code for arrow?? Pin
...---...5-Oct-05 5:13
...---...5-Oct-05 5:13 
Here is my problem. I'm trying to draw a vector on a graph on a WinForm.
I want an arrow (triangle) on the end of the line. I have two files.
My pens are "cycled" on each paint event (0, 1, 2.. repeat). Everything works ok. I just can't seem to figure out how to draw an arrow....

Complex.cs
///////////////////////////////////////
private double x
private double y

//Constructor
public Complex()
{
x = 0;
y = 0;
}
public Complex( double _x, _y)
{
x - _x;
y = _y;
}

/////////////////////////////////////////////////////////////////////////////////////////////////////Form1.cs


public Pen[] activePen = new Pen[] { new Pen( Color.Blue, 2 ), new Pen( Color.Green, 2 ), new Pen(Color.Red, 2) };

private int _penIndex = -1;

/////////////////////////////////////////////////////////////////////////////////////////////////////////

private Pen GetNextPen()
{
_penIndex = (_penIndex + 1) % 3;
return activePen[_penIndex];
}

//////////////////////////////////////////////////////////////////////////////////////////////////////


g.DrawLine(GetNextPen(), 250, 250, x, y );

/////////////////////////////////////////////////////////////////////////////////////////////
AnswerRe: How to place line cap code for arrow?? Pin
Andy Moore5-Oct-05 6:37
Andy Moore5-Oct-05 6:37 
GeneralRe: How to place line cap code for arrow?? Pin
...---...5-Oct-05 6:45
...---...5-Oct-05 6:45 
GeneralRe: How to place line cap code for arrow?? Pin
Andy Moore5-Oct-05 6:57
Andy Moore5-Oct-05 6:57 
AnswerRe: How to place line cap code for arrow?? Pin
Robert Rohde5-Oct-05 8:31
Robert Rohde5-Oct-05 8:31 
GeneralRe: How to place line cap code for arrow?? Pin
...---...5-Oct-05 8:36
...---...5-Oct-05 8:36 
GeneralRe: How to place line cap code for arrow?? Pin
Robert Rohde5-Oct-05 11:04
Robert Rohde5-Oct-05 11:04 
QuestionSuggestions for modeling Pin
mikker_1235-Oct-05 4:30
mikker_1235-Oct-05 4:30 
QuestionPictureBox Pin
PHDENG815-Oct-05 4:24
PHDENG815-Oct-05 4:24 
AnswerRe: PictureBox Pin
Niklas Ulvinge5-Oct-05 5:03
Niklas Ulvinge5-Oct-05 5:03 
AnswerRe: PictureBox Pin
Anudeep Jaiswal - MCA7-Sep-10 7:10
Anudeep Jaiswal - MCA7-Sep-10 7:10 
QuestionApache & C# Web Pages Pin
StrayGrey5-Oct-05 3:24
StrayGrey5-Oct-05 3:24 
AnswerRe: Apache & C# Web Pages Pin
enjoycrack5-Oct-05 14:28
enjoycrack5-Oct-05 14:28 
QuestionApache & C# Web Pages Pin
StrayGrey5-Oct-05 3:19
StrayGrey5-Oct-05 3:19 
AnswerRe: Apache & C# Web Pages Pin
Daniel Turini5-Oct-05 3:39
Daniel Turini5-Oct-05 3:39 
QuestionHow do I delay Windows shutdown with a Console Project in .NET? Pin
DavidWGriffin5-Oct-05 3:05
DavidWGriffin5-Oct-05 3:05 
AnswerRe: How do I delay Windows shutdown with a Console Project in .NET? Pin
DavidWGriffin5-Oct-05 12:05
DavidWGriffin5-Oct-05 12:05 
QuestionCrystal Reports with Multiple Values Pin
dbetting5-Oct-05 2:45
dbetting5-Oct-05 2:45 

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.