Click here to Skip to main content
15,906,190 members
Home / Discussions / C#
   

C#

 
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

AnswerRe: how to write a object data into a file? Pin
dan!sh 18-Dec-09 19:44
professional dan!sh 18-Dec-09 19:44 
AnswerRe: how to write a object data into a file? Pin
OriginalGriff18-Dec-09 22:03
mveOriginalGriff18-Dec-09 22:03 
GeneralRe: how to write a object data into a file? Pin
santhosh-padamatinti19-Dec-09 0:13
santhosh-padamatinti19-Dec-09 0:13 
Questionsocket connection when Messenger behind router Pin
s196675m18-Dec-09 13:09
s196675m18-Dec-09 13:09 
AnswerRe: socket connection when Messenger behind router Pin
Migounette18-Dec-09 13:17
Migounette18-Dec-09 13:17 
Questionhow to send mail with hyperlink and values Pin
treuveni18-Dec-09 10:57
treuveni18-Dec-09 10:57 
AnswerRe: how to send mail with hyperlink and values Pin
Stryder_118-Dec-09 11:13
Stryder_118-Dec-09 11:13 
Questionmanipulate the Title of Application [modified] Pin
Terrakotta00118-Dec-09 10:35
Terrakotta00118-Dec-09 10:35 
AnswerRe: manipulate the Title of Application Pin
DaveyM6918-Dec-09 12:09
professionalDaveyM6918-Dec-09 12:09 
QuestionDoes any one know some decent game programming books? Pin
venomation18-Dec-09 10:31
venomation18-Dec-09 10:31 
AnswerRe: Does any one know some decent game programming books? Pin
Migounette19-Dec-09 7:03
Migounette19-Dec-09 7:03 
QuestionNeed help with CPU app Pin
xploda18-Dec-09 8:02
xploda18-Dec-09 8:02 
QuestionVS C# Windows Service - System.IO.DirectoryNotFoundException: Could not find a part of the path Pin
Tomb42118-Dec-09 5:18
Tomb42118-Dec-09 5:18 
AnswerRe: VS C# Windows Service - System.IO.DirectoryNotFoundException: Could not find a part of the path Pin
EliottA18-Dec-09 5:29
EliottA18-Dec-09 5:29 
GeneralRe: VS C# Windows Service - System.IO.DirectoryNotFoundException: Could not find a part of the path Pin
Tomb42118-Dec-09 5:44
Tomb42118-Dec-09 5:44 
GeneralRe: VS C# Windows Service - System.IO.DirectoryNotFoundException: Could not find a part of the path Pin
Luc Pattyn18-Dec-09 5:50
sitebuilderLuc Pattyn18-Dec-09 5:50 
GeneralRe: VS C# Windows Service - System.IO.DirectoryNotFoundException: Could not find a part of the path Pin
Dave Kreskowiak18-Dec-09 6:59
mveDave Kreskowiak18-Dec-09 6:59 

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.