Click here to Skip to main content
15,914,416 members
Home / Discussions / C#
   

C#

 
QuestionHow to distinguish between remotely and not remotely created objects Pin
Bjoern.adG19-Jan-05 23:58
Bjoern.adG19-Jan-05 23:58 
AnswerRe: How to distinguish between remotely and not remotely created objects Pin
Arjan Einbu20-Jan-05 2:32
Arjan Einbu20-Jan-05 2:32 
GeneralFileInfo Class Pin
Gavin Jeffrey19-Jan-05 21:54
Gavin Jeffrey19-Jan-05 21:54 
GeneralRe: FileInfo Class Pin
Mike Dimmick20-Jan-05 2:31
Mike Dimmick20-Jan-05 2:31 
GeneralOutLook and WebService Pin
WDI19-Jan-05 21:25
WDI19-Jan-05 21:25 
GeneralRe: OutLook and WebService Pin
Esmo200020-Jan-05 5:22
Esmo200020-Jan-05 5:22 
GeneralDrawing Curves in C# !! Pin
ElJerry19-Jan-05 21:06
ElJerry19-Jan-05 21:06 
GeneralRe: Drawing Curves in C# !! Pin
Heath Stewart20-Jan-05 6:48
protectorHeath Stewart20-Jan-05 6:48 
ElJerry wrote:
PointF[] list = new PointF[2]{new Point(1,2),new Point(2,3),new Point(3,4)}

That statement is wrong. You have 3 elements, not 2. Don't declare an array size when you specify the array elements when you instantiate the array. The following is common and better:
PointF[] list = new PointF[]
{
  new PointF(1f, 2f),
  new PointF(2f, 3f),
  new PointF(3f, 4f)
};
You're also using the wrong type. If you're declaring an array of PointF, the elements must be PointF. Frankly I'm surprised it even compiled. Declare and instantiate list correctly and you should see the results you want.

Have you read the documentation[^] for the Graphics.DrawCurve method? There's an overload that doesn't even require a 3rd or 4th parameter, and which can take either a Point[] or PointF[]. It's important to understand what the documentation says. There's also several examples for the method.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
General[C# / SQL] cmd.ExecuteNonQuery() problem Pin
Rafferty Uy19-Jan-05 19:13
Rafferty Uy19-Jan-05 19:13 
GeneralRe: [C# / SQL] cmd.ExecuteNonQuery() problem Pin
leppie19-Jan-05 19:56
leppie19-Jan-05 19:56 
Generalpls correct the error in this part of the program Pin
dhol19-Jan-05 17:07
dhol19-Jan-05 17:07 
GeneralRe: pls correct the error in this part of the program Pin
David Levitt (Myrddin)21-Jan-05 13:18
David Levitt (Myrddin)21-Jan-05 13:18 
Questionhow to remove an EventHandler? Pin
zecodela19-Jan-05 15:53
zecodela19-Jan-05 15:53 
AnswerRe: how to remove an EventHandler? Pin
Robert Rohde19-Jan-05 19:32
Robert Rohde19-Jan-05 19:32 
GeneralFew menu extension (WinForms) Pin
TheDen19-Jan-05 15:20
TheDen19-Jan-05 15:20 
GeneralRe: Few menu extension (WinForms) Pin
Dave Kreskowiak20-Jan-05 3:53
mveDave Kreskowiak20-Jan-05 3:53 
GeneralRe: Few menu extension (WinForms) Pin
Charlie Williams20-Jan-05 5:54
Charlie Williams20-Jan-05 5:54 
GeneralExposing data to WMI Pin
ilkovm19-Jan-05 13:41
ilkovm19-Jan-05 13:41 
GeneralRe: Exposing data to WMI Pin
Heath Stewart20-Jan-05 6:25
protectorHeath Stewart20-Jan-05 6:25 
GeneralRe: Exposing data to WMI Pin
ilkovm20-Jan-05 12:44
ilkovm20-Jan-05 12:44 
QuestionHow can i handle my project in windows event Pin
m.rastgar19-Jan-05 11:36
m.rastgar19-Jan-05 11:36 
AnswerRe: How can i handle my project in windows event Pin
Heath Stewart20-Jan-05 6:09
protectorHeath Stewart20-Jan-05 6:09 
GeneralControl development Pin
PaleyX19-Jan-05 11:30
PaleyX19-Jan-05 11:30 
GeneralRe: Control development Pin
Robert Rohde19-Jan-05 19:36
Robert Rohde19-Jan-05 19:36 
GeneralRe: Control development Pin
PaleyX19-Jan-05 22:02
PaleyX19-Jan-05 22:02 

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.