Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading Xml to and fro Pin
_Erik_13-Dec-10 6:03
_Erik_13-Dec-10 6:03 
AnswerRe: Reading Xml to and fro PinPopular
RaviRanjanKr13-Dec-10 5:42
professionalRaviRanjanKr13-Dec-10 5:42 
GeneralRe: Reading Xml to and fro Pin
ShilpaKumari13-Dec-10 5:57
ShilpaKumari13-Dec-10 5:57 
GeneralRe: Reading Xml to and fro Pin
RaviRanjanKr13-Dec-10 6:08
professionalRaviRanjanKr13-Dec-10 6:08 
GeneralRe: Reading Xml to and fro Pin
squerley13-Dec-10 5:58
squerley13-Dec-10 5:58 
GeneralRe: Reading Xml to and fro Pin
RaviRanjanKr13-Dec-10 6:05
professionalRaviRanjanKr13-Dec-10 6:05 
GeneralRe: Reading Xml to and fro Pin
squerley13-Dec-10 6:25
squerley13-Dec-10 6:25 
GeneralRe: Reading Xml to and fro Pin
squerley13-Dec-10 6:13
squerley13-Dec-10 6:13 
This is my listView form that im trying to get populated by the xml file

private void frmPersonList_Load(object sender, EventArgs e)
{
    try
    {
        m_xmlDoc.Load("m_person.xml");
    }
    catch (Exception xmle)
    {
        MessageBox.Show(xmle.Message, "Error", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
    }

and i cant see the ReadInPeople method in my main form unless i use public instead of privete and if i use public i get an exception...
    myForm.ReadInPeople();

    lstPersons.View = View.Details;
    lstPersons.Columns.Add("Fist Name", 100, HorizontalAlignment.Center);
    lstPersons.Columns.Add("MI", 30, HorizontalAlignment.Center);
    lstPersons.Columns.Add("Last Name", 80, HorizontalAlignment.Center);
    lstPersons.Columns.Add("Address", 160, HorizontalAlignment.Center);
    lstPersons.Columns.Add("City", 150, HorizontalAlignment.Center);
    lstPersons.Columns.Add("State", 50, HorizontalAlignment.Center);
    lstPersons.Columns.Add("Zip", 50, HorizontalAlignment.Center);
    lstPersons.Columns.Add("Date and Time", 150, HorizontalAlignment.Center);

    Person p;
    for (int i = 0; i < m_PersonReference.Length; i++)
    {
        p = m_PersonReference[i];
        lstPersons.Items.Add(p.FirstName);
        lstPersons.Items[i].SubItems.Add(p.MI);
        lstPersons.Items[i].SubItems.Add(p.LastName);
        lstPersons.Items[i].SubItems.Add(p.Address);
        lstPersons.Items[i].SubItems.Add(p.city);
        lstPersons.Items[i].SubItems.Add(p.state);
        lstPersons.Items[i].SubItems.Add(p.zip);
        lstPersons.Items[i].SubItems.Add(p.time);
    }
}

private void btnCancel_Click(object sender, EventArgs e)
{
   this.Close();
}

private void frmPersonList_FormClosing(object sender, FormClosingEventArgs e)
{
    this.m_xmlDoc.Save("m_person.xml");
}

GeneralRe: Reading Xml to and fro Pin
RaviRanjanKr13-Dec-10 6:19
professionalRaviRanjanKr13-Dec-10 6:19 
GeneralRe: Reading Xml to and fro Pin
ShilpaKumari13-Dec-10 6:28
ShilpaKumari13-Dec-10 6:28 
GeneralRe: Reading Xml to and fro [modified] Pin
squerley13-Dec-10 6:37
squerley13-Dec-10 6:37 
QuestionCPU jumps from 16% to 78% Pin
Jassim Rahma13-Dec-10 2:47
Jassim Rahma13-Dec-10 2:47 
AnswerRe: CPU jumps from 16% to 78% Pin
Luc Pattyn13-Dec-10 3:16
sitebuilderLuc Pattyn13-Dec-10 3:16 
GeneralRe: CPU jumps from 16% to 78% Pin
Jassim Rahma13-Dec-10 3:27
Jassim Rahma13-Dec-10 3:27 
QuestionRe: CPU jumps from 16% to 78% Pin
Luc Pattyn13-Dec-10 3:34
sitebuilderLuc Pattyn13-Dec-10 3:34 
GeneralRe: CPU jumps from 16% to 78% Pin
Dave Kreskowiak13-Dec-10 8:54
mveDave Kreskowiak13-Dec-10 8:54 
AnswerRe: CPU jumps from 16% to 78% Pin
fjdiewornncalwe13-Dec-10 8:32
professionalfjdiewornncalwe13-Dec-10 8:32 
GeneralRe: CPU jumps from 16% to 78% Pin
Jassim Rahma14-Dec-10 2:32
Jassim Rahma14-Dec-10 2:32 
QuestionWindow open and close effect with c# in windows application Pin
Tridip Bhattacharjee13-Dec-10 2:13
professionalTridip Bhattacharjee13-Dec-10 2:13 
AnswerRe: Window open and close effect with c# in windows application Pin
PIEBALDconsult13-Dec-10 2:18
mvePIEBALDconsult13-Dec-10 2:18 
GeneralRe: Window open and close effect with c# in windows application Pin
Tridip Bhattacharjee13-Dec-10 19:20
professionalTridip Bhattacharjee13-Dec-10 19:20 
GeneralRe: Window open and close effect with c# in windows application Pin
SilimSayo17-May-11 6:56
SilimSayo17-May-11 6:56 
Questionhelp!how can i get the monitor's status Pin
scoket12-Dec-10 22:35
scoket12-Dec-10 22:35 
AnswerRe: help!how can i get the monitor's status Pin
Prerak Patel12-Dec-10 23:01
professionalPrerak Patel12-Dec-10 23:01 
GeneralRe: help!how can i get the monitor's status Pin
scoket13-Dec-10 15:05
scoket13-Dec-10 15:05 

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.