Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to get difference between 2 dates in years:months format? Pin
timeArrowI2-Sep-12 21:59
timeArrowI2-Sep-12 21:59 
GeneralRe: how to get difference between 2 dates in years:months format? Pin
Anurag Sinha V3-Sep-12 1:00
Anurag Sinha V3-Sep-12 1:00 
QuestionTrackbar's Scroll Box Position Pin
varunpandeyengg30-Aug-12 20:57
varunpandeyengg30-Aug-12 20:57 
AnswerRe: Trackbar's Scroll Box Position Pin
OriginalGriff30-Aug-12 21:11
mveOriginalGriff30-Aug-12 21:11 
QuestionDrawLines problem Pin
john563230-Aug-12 20:42
john563230-Aug-12 20:42 
AnswerRe: DrawLines problem Pin
Abhinav S30-Aug-12 21:08
Abhinav S30-Aug-12 21:08 
AnswerRe: DrawLines problem Pin
Manfred Rudolf Bihy30-Aug-12 21:12
professionalManfred Rudolf Bihy30-Aug-12 21:12 
AnswerRe: DrawLines problem Pin
OriginalGriff30-Aug-12 21:23
mveOriginalGriff30-Aug-12 21:23 
No, there is no limit I am aware of, and a quick test says that you can use more than 3852 points anyway:

C#
Point[] points = new Point[4096];

public frmTesting()
    {
    InitializeComponent();
    Random r = new Random();
    for (int i = 0; i < points.Length; i++)
        {
        points[i] = new Point(r.Next(0, 200), r.Next(0, 200));
        }
    }
private void panel1_Paint(object sender, PaintEventArgs e)
    {
    Pen p = Pens.Red;
    e.Graphics.DrawLines(p, points);
    }
Works with no problems. I would suspect the problem is in your other code.

BTW: You shouldn't create a new Pen like that - you are responsible for calling Dispose on all graphics elements you create, so you should keep a reference to it, or use a stock item as I did.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

AnswerRe: DrawLines problem Pin
Dave Kreskowiak31-Aug-12 2:13
mveDave Kreskowiak31-Aug-12 2:13 
QuestionC# workin with xsd file Pin
dcof30-Aug-12 18:04
dcof30-Aug-12 18:04 
AnswerRe: C# workin with xsd file Pin
PIEBALDconsult30-Aug-12 18:52
mvePIEBALDconsult30-Aug-12 18:52 
AnswerRe: C# workin with xsd file Pin
RobCroll30-Aug-12 19:11
RobCroll30-Aug-12 19:11 
AnswerRe: C# workin with xsd file Pin
jschell31-Aug-12 7:13
jschell31-Aug-12 7:13 
QuestionCan I import forms into C# Pin
PapaGeek30-Aug-12 8:32
PapaGeek30-Aug-12 8:32 
AnswerRe: Can I import forms into C# Pin
OriginalGriff30-Aug-12 8:43
mveOriginalGriff30-Aug-12 8:43 
GeneralRe: Can I import forms into C# Pin
PapaGeek30-Aug-12 10:14
PapaGeek30-Aug-12 10:14 
GeneralRe: Can I import forms into C# Pin
OriginalGriff30-Aug-12 21:26
mveOriginalGriff30-Aug-12 21:26 
QuestionIs there a way to get a "\n\n" down to a single "\n"? Pin
glennPattonWork330-Aug-12 5:36
professionalglennPattonWork330-Aug-12 5:36 
AnswerRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
Manfred Rudolf Bihy30-Aug-12 6:24
professionalManfred Rudolf Bihy30-Aug-12 6:24 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
glennPattonWork330-Aug-12 23:07
professionalglennPattonWork330-Aug-12 23:07 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
Manfred Rudolf Bihy30-Aug-12 23:26
professionalManfred Rudolf Bihy30-Aug-12 23:26 
AnswerRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
PIEBALDconsult30-Aug-12 13:25
mvePIEBALDconsult30-Aug-12 13:25 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
Manfred Rudolf Bihy30-Aug-12 17:25
professionalManfred Rudolf Bihy30-Aug-12 17:25 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
glennPattonWork330-Aug-12 23:08
professionalglennPattonWork330-Aug-12 23:08 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
PIEBALDconsult31-Aug-12 4:12
mvePIEBALDconsult31-Aug-12 4:12 

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.