Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
QuestionProgress bar implementation Pin
tasumisra19-Dec-09 7:03
tasumisra19-Dec-09 7:03 
AnswerRe: Progress bar implementation Pin
Luc Pattyn19-Dec-09 7:52
sitebuilderLuc Pattyn19-Dec-09 7:52 
GeneralRe: Progress bar implementation Pin
tasumisra20-Dec-09 6:03
tasumisra20-Dec-09 6:03 
GeneralRe: Progress bar implementation Pin
Luc Pattyn20-Dec-09 6:18
sitebuilderLuc Pattyn20-Dec-09 6:18 
QuestionGDI Get Painted Points Pin
dataminers19-Dec-09 5:18
dataminers19-Dec-09 5:18 
AnswerRe: GDI Get Painted Points Pin
Luc Pattyn19-Dec-09 5:51
sitebuilderLuc Pattyn19-Dec-09 5:51 
AnswerRe: GDI Get Painted Points Pin
Saksida Bojan19-Dec-09 7:00
Saksida Bojan19-Dec-09 7:00 
GeneralRe: GDI Get Painted Points Pin
dataminers19-Dec-09 7:38
dataminers19-Dec-09 7:38 
GeneralRe: GDI Get Painted Points Pin
Dave Kreskowiak19-Dec-09 8:18
mveDave Kreskowiak19-Dec-09 8:18 
GeneralRe: GDI Get Painted Points Pin
OriginalGriff19-Dec-09 23:11
mveOriginalGriff19-Dec-09 23:11 
GeneralRe: GDI Get Painted Points Pin
Dave Kreskowiak20-Dec-09 3:01
mveDave Kreskowiak20-Dec-09 3:01 
QuestionHow to get all IPs from LAN environment. Pin
Md. Marufuzzaman19-Dec-09 3:55
professionalMd. Marufuzzaman19-Dec-09 3:55 
AnswerRe: How to get all IPs from LAN environment. Pin
dan!sh 19-Dec-09 5:42
professional dan!sh 19-Dec-09 5:42 
GeneralRe: How to get all IPs from LAN environment. Pin
Md. Marufuzzaman19-Dec-09 5:46
professionalMd. Marufuzzaman19-Dec-09 5:46 
QuestionHelp me! Datetimepicker Pin
tphung.hue19-Dec-09 2:27
tphung.hue19-Dec-09 2:27 
AnswerRe: Help me! Datetimepicker Pin
PIEBALDconsult19-Dec-09 4:17
mvePIEBALDconsult19-Dec-09 4:17 
AnswerRe: Help me! Datetimepicker Pin
Saksida Bojan19-Dec-09 6:50
Saksida Bojan19-Dec-09 6:50 
AnswerRe: Help me! Datetimepicker Pin
Saksida Bojan19-Dec-09 8:40
Saksida Bojan19-Dec-09 8:40 
GeneralRe: Help me! Datetimepicker Pin
PIEBALDconsult19-Dec-09 17:31
mvePIEBALDconsult19-Dec-09 17:31 
Questionlan messenger Pin
rawatsunil9218-Dec-09 22:24
rawatsunil9218-Dec-09 22:24 
AnswerRe: lan messenger Pin
OriginalGriff18-Dec-09 22:35
mveOriginalGriff18-Dec-09 22:35 
AnswerRe: lan messenger Pin
dataminers19-Dec-09 8:04
dataminers19-Dec-09 8:04 
QuestionHow to find the path of a PDF based on corresponding URL opened in IE? Pin
svt gdwl18-Dec-09 19:24
svt gdwl18-Dec-09 19:24 
AnswerRe: How to find the path of a PDF based on corresponding URL opened in IE? Pin
Luc Pattyn19-Dec-09 0:30
sitebuilderLuc Pattyn19-Dec-09 0:30 
Questionhow to write a object data into a file? Pin
santhosh-padamatinti18-Dec-09 19:18
santhosh-padamatinti18-Dec-09 19:18 
Hi,

I am new to C#, I have a doubt please tell me the answer.


I have a form1. In that I am retrieving student information(studentgroup, studentname, admintionnumber). Now
<br />
<br />
namespace student_information<br />
{<br />
    public partial class Form1 : Form <br />
    {<br />
           <br />
        string m_stname;<br />
        string m_sgroup;<br />
        int m_iadminnum;   <br />
<br />
        public Form1()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
<br />
        private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            m_stname = this.textBox1.Text;<br />
            m_iadminnum = int.Parse(this.textBox2.Text);<br />
            m_sgroup = this.comboBox1.SelectedItem.ToString();<br />
<br />
<br />
            Form1 f1 = new Form1();<br />
                        <br />
            f1.m_iadminnum = m_iadminnum;<br />
            f1.m_sgroup = m_sgroup;<br />
            f1.m_stname = m_stname;<br />
            <br />
                        <br />
        }<br />
        <br />
    }<br />
<br />
}<br />


In the above code what i did is i am receiving information from form1,
Now that information in f1(object). Can any one tell what is the procedure for store this data into a file.
Also please tell me the procedure for retrieving object information from the same file.

Thanx in advance......

sampath-padamatinti

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.