When you answer to a thread, look below the buttons Submit Reply and Preview post. You'll see a panel marked "Additional Options". You will find a button there : Manage Attachments click on it, it should be obvious now...

The sample project is the project you are having trouble with. As sknake did not know the name of your project he called it "sample project". You could preferably zip it before uploading.

>It runs OK up to the point where it could not find the file "e:\\CuPeak.dat".
As I don't even have an e: drive, this is going to be difficult...

hi
i have attached the txt file and also changed the path to c. i want to zoom the to any extend and use the scrollbar(both horizental and vertical) to see it

Attachments
52	27965
54	25814
56	24283
58	23709
60	22467
62	21948
64	21377
66	21550
68	21622
70	22709
72	24644
74	25574
76	25796
78	24502
80	23354
82	22783
84	22276
86	21824
88	22775
90	23687
92	25297
94	25494
96	26175
98	26775
100	26851
102	27356
104	27461
106	27564
108	27238
110	27886
112	27441
114	28227
116	27821
118	27816
120	28369
122	28526
124	28507
126	28434
128	28860
130	28255
132	28618
134	29234
136	29356
138	29019
140	29508
142	29421
144	29562
146	30109
148	29777
150	29498
152	29381
154	29513
156	28499
158	29001
160	29090
162	29530
164	28668
166	29284
168	29494
170	29691
172	29755
174	30082
176	30487
178	30810
180	29770
182	28750
184	28690
186	28597
188	28318
190	29253
192	29845
194	30103
196	30841
198	30566
200	29976
202	30333
204	31222
206	31165
208	31156
210	31051
212	29878
214	29887
216	29159
218	30213
220	30265
222	30593
224	29858
226	29522
228	30172
230	31763
232	32462
234	31829
236	31887
238	31736
240	31737
242	31801
244	32516
246	32391
248	33293
250	32554
252	31861
254	32536
256	31295
258	31630
260	31441
262	31140
264	29190
266	28396
268	23892
270	19144
272	15481
274	14202
276	14490
278	15391
280	17942
282	20872
284	24137
286	25804
288	27310
290	27798
292	27244
294	27652
296	29108
298	28645
300	28411
302	28655
304	29322
306	28853
308	29181
310	29643
312	30342
314	30426
316	30460
318	31246
320	31204
322	31002
324	30215
326	30081
328	30197
330	29555
332	30433
334	29744
336	30648
338	29877
340	30523
342	31221
344	30985
346	31377
348	29881
350	29642
352	29406
354	29663
356	29757
358	29594
360	29366
362	29336
364	29138
366	28042
368	28202
370	29238
372	29268
374	29785
376	30455
378	30871
380	29447
382	29340
384	29491
386	29363
388	28411
390	28560
392	29349
394	28876
396	29888
398	30111
400	30117
402	30547
404	30073
406	30742
408	31325
410	31504
412	31540
414	30851
416	30705
418	30048
420	29969
422	30972
424	31880
426	31214
428	31336
430	31155
432	31237
434	30713
436	30632
438	31529
440	31667
442	31916
444	31211
446	30933
448	31633
450	31668
452	31667
454	31384
456	31381
458	31694
460	32135
462	31732
464	30894
466	31125
468	30776
470	30596
472	30482
474	29671
476	31345
478	31210
480	32439
482	32885
484	31596
486	31132
488	30548
490	29352
492	30933
494	31084
496	30838
498	31461
500	33640
502	35598
504	36859
506	34955
508	31024
510	26821
512	25228
514	24573
516	25770
518	27386
520	28207
522	29277
524	29275
526	28510
528	29018
530	29151
532	30451
534	30303
536	31020
538	31009
540	30662
542	30710
544	30210
546	30521
548	30850
550	30818
552	31004
554	30973
556	31061
558	31222
560	30491
562	31280
564	31992
566	31581
568	31480
570	30743
572	31454
574	31618
576	31292
578	30916
580	31420
582	29844
584	30207
586	30504
588	30774
590	30922
592	31814
594	31556
596	30711
598	31007
600	30170
602	29921
604	30124
606	30703
608	30846
610	31982
612	31440
614	30885
616	31913
618	31341
620	31628
622	31675
624	31462
626	31483
628	30256
630	30298
632	30604
634	30962
636	31704
638	32681
640	31927
642	31998
644	31728
646	29873
648	31042
650	31199
652	31624
654	31550
656	31564
658	32604
660	32108
662	31755
664	32311
666	32294
668	32610
670	31932
672	32071
674	32042
676	31248
678	30781
680	31863
682	31546
684	30350
686	31323
688	29699
690	30532
692	30535
694	29792
696	30900
698	31505
700	30451
702	30528
704	30346
706	30946
708	31893
710	32328
712	31734
714	31916
716	32357
718	33531
720	33504
722	32331
724	32347
726	31681
728	31707
730	30709
732	31246
734	29492
736	30878
738	30444
740	30994
742	30528
744	31514
746	32060
748	32324
750	31900
752	30591
754	31947
756	30939
758	31912
760	31379
762	31731
764	32909
766	32897
768	32999
770	32285
772	29355
774	28704
776	28359
778	30264
780	30202
782	31722
784	31041
786	30195
788	31191
790	30792
792	29990
794	29188
796	29651
798	30159
800	30441
802	30322
804	30618
806	31381
808	33112
810	32457
812	31983
814	32549
816	32885
818	33375
820	31937
822	29815
824	29777
826	29627
828	32286
830	32760
832	34071
834	33239
836	30687
838	31402
840	32026
842	29460
844	29686
846	28302
848	29280
850	30776
852	31234
854	30206
856	29336
858	30788
860	30782
862	32301
864	32138
866	32058
868	31402
870	31452
872	31031
874	30512
876	31249
878	32667
880	33580
882	32541
884	31607
886	32816
888	32519
890	30169
892	32428
894	32642
896	32057
898	32198
900	32677
902	32578
904	33825
906	33631
908	33393
910	35344
912	33956
914	31023
916	24590
918	22920
920	24685
922	25910
924	27422
926	27860
928	28289
930	29344
932	29005
934	27246
936	27874
938	28839
940	29243
942	30623
944	31047
946	30825
948	30581
950	28563
952	28303
954	29348
956	31862
958	30625
960	33089
962	32600
964	31884
966	31947
968	33990
970	32611
972	32775
974	33331
976	34320
978	33140
980	33159
982	32317
984	34016
986	34879
988	33358
990	31907
992	31730
994	30822
996	32173
998	33219
1000	33081
1002	32392
1004	31932
1006	33581
1008	32224
1010	33111
1012	32781
1014	32262
1016	32747
1018	32205
1020	32055
1022	33613
1024	30579
1026	33928
1028	33887
1030	31770

Remove this line from your Button1_Click handler:

g.FillRectangle(Brushes.Black, new Rectangle(0, 0, pnlGraph.Width, pnlGraph.Height));

Fill in the BackColor property of your panel in design mode. Maybe it's not much, but it helps if the background of your panel is already black, instead of having to repaint it every time from white to black.
Also the line pnlGraph.Invalidate(); near the end of the same handler is not needed.
I was also wondering why you have to change an integer value to a float value. This causes extra overhead, which, perhaps, is not needed.

This article has been dead for over six months. Start a new discussion instead.