Click here to Skip to main content
15,927,946 members
Home / Discussions / C#
   

C#

 
Questionhelp..any one helpp..! Pin
mr jets9-May-07 23:46
mr jets9-May-07 23:46 
AnswerRe: help..any one helpp..! Pin
Colin Angus Mackay10-May-07 0:07
Colin Angus Mackay10-May-07 0:07 
GeneralRe: help..any one helpp..! Pin
mr jets10-May-07 0:40
mr jets10-May-07 0:40 
AnswerRe: help..any one helpp..! Pin
Mandaar Kulkarni10-May-07 0:48
Mandaar Kulkarni10-May-07 0:48 
GeneralRe: help..any one helpp..! Pin
mr jets10-May-07 0:52
mr jets10-May-07 0:52 
GeneralRe: help..any one helpp..! Pin
Mandaar Kulkarni10-May-07 1:03
Mandaar Kulkarni10-May-07 1:03 
GeneralRe: help..any one helpp..! Pin
mr jets10-May-07 1:13
mr jets10-May-07 1:13 
GeneralRe: help..any one helpp..! Pin
Mandaar Kulkarni10-May-07 1:30
Mandaar Kulkarni10-May-07 1:30 
Let me make it simpler for you...

When you are drawing line, you have its information like start point, end point, RGB.

Create a structure e.g. structLine which contains members for holding start point , end point (each of appropriate type).

Copy the values to objLine of type structLine before you call DrawLine Method.


When you click Save button

// create a writer and open the file
TextWriter tw = new StreamWriter("line.txt");

// write a line of text to the file
tw.WriteLine(objLine.StartPoint.ToString() + ", " objLine.EndPoint.ToString()); // mention all values of struct

// close the stream
tw.Close();


I recommand you override the method ToString() method of structLine in which you provide way to represent the structure in sting format.

Now is this okey?
GeneralRe: help..any one helpp..! Pin
mr jets10-May-07 1:46
mr jets10-May-07 1:46 
GeneralRe: help..any one helpp..! Pin
Leyu10-May-07 2:04
Leyu10-May-07 2:04 
GeneralRe: help..any one helpp..! Pin
Mandaar Kulkarni10-May-07 2:21
Mandaar Kulkarni10-May-07 2:21 
QuestionNullReferenceException in ListView Pin
Saira Tanwir9-May-07 23:33
Saira Tanwir9-May-07 23:33 
AnswerRe: NullReferenceException in ListView Pin
Martin#9-May-07 23:56
Martin#9-May-07 23:56 
GeneralRe: NullReferenceException in ListView Pin
Saira Tanwir10-May-07 0:15
Saira Tanwir10-May-07 0:15 
AnswerRe: NullReferenceException in ListView Pin
tcss10-May-07 1:00
tcss10-May-07 1:00 
QuestionSQL error, "No value gived for one or more required parameters" Pin
Toubou9-May-07 22:43
Toubou9-May-07 22:43 
AnswerRe: SQL error, "No value gived for one or more required parameters" Pin
Colin Angus Mackay9-May-07 23:00
Colin Angus Mackay9-May-07 23:00 
AnswerRe: SQL error, "No value gived for one or more required parameters" Pin
blackjack21509-May-07 23:48
blackjack21509-May-07 23:48 
QuestionC# connection to Lotus Approach Pin
zoroyster9-May-07 22:31
zoroyster9-May-07 22:31 
AnswerRe: C# connection to Lotus Approach Pin
Leyu10-May-07 2:10
Leyu10-May-07 2:10 
Questionsuggestions for calling webservice in windows service Pin
ramyasangeet9-May-07 22:06
ramyasangeet9-May-07 22:06 
AnswerRe: suggestions for calling webservice in windows service Pin
Russell Jones9-May-07 22:17
Russell Jones9-May-07 22:17 
GeneralRe: suggestions for calling webservice in windows service Pin
ramyasangeet9-May-07 22:25
ramyasangeet9-May-07 22:25 
QuestionHow to Set Cell Backcolor of dataGridView Pin
M Riaz Bashir9-May-07 22:04
M Riaz Bashir9-May-07 22:04 
AnswerRe: How to Set Cell Backcolor of dataGridView Pin
Arun.Immanuel9-May-07 22:19
Arun.Immanuel9-May-07 22:19 

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.