Click here to Skip to main content
16,013,918 members
Home / Discussions / C#
   

C#

 
GeneralRe: Save and Save as Pin
GenJerDan2-Dec-10 17:22
GenJerDan2-Dec-10 17:22 
GeneralRe: Save and Save as Pin
Dalek Dave2-Dec-10 12:27
professionalDalek Dave2-Dec-10 12:27 
AnswerRe: Save and Save as Pin
Luc Pattyn2-Dec-10 12:10
sitebuilderLuc Pattyn2-Dec-10 12:10 
AnswerRe: Save and Save as Pin
_Erik_3-Dec-10 3:22
_Erik_3-Dec-10 3:22 
GeneralRe: Save and Save as Pin
squerley3-Dec-10 8:59
squerley3-Dec-10 8:59 
GeneralRe: Save and Save as Pin
squerley4-Dec-10 16:08
squerley4-Dec-10 16:08 
GeneralRe: Save and Save as Pin
_Erik_6-Dec-10 23:35
_Erik_6-Dec-10 23:35 
GeneralRe: Save and Save as Pin
squerley10-Dec-10 15:46
squerley10-Dec-10 15:46 
You rock bro Thanks for your help =^)

So the _fileName field is null will mean that the file is empty or a new file. haha ill get this ?=^)
Haha... and the save dialog box would pop up twice haha thats why. Laugh | :laugh:

Thanks again for all your help

Now i have another question Sniff | :^)

now were importing and exporting XML files But im getting an error in the form

private int ReadInPeople()
{
    XmlNodeList nodeList = m_xmlDoc.DocumentElement.ChildNodes;
    foreach (XmlNode PersonNode in nodeList)
    {
        //Form1 myXmlPerson = new Form1();
        Person myXmlPerson = new Person();
        foreach (XmlNode PersonTag in PersonNode.ChildNodes)
        {
            switch (PersonTag.Name)
            {


"Here im getting an error asking me if i want to create a method with "FirstName" but in my Person class i just have fields and properties. So do i need to create a method for each one of my cases?"

case "firstName":
    myXmlPerson.FirstName(PersonTag.FirstChild.Value);
    break;
case "lastName":
    myXmlPerson.LastName(PersonTag.FirstChild.Value);
    break;
Ext.....


This is a snipit of my Person.cs class

private string firstName;
private string lastName;
public string MI;
private string address;
public string city;
public string state;
public string zip;
public string time;

public string FirstName
{
    get { return firstName; }
    set { firstName = value; }
}
public string LastName
{
    get { return lastName; }
    set { lastName = value; }
}
public string Address
{
    get { return address; }
    set { address = value; }
}
public string PrintLable()
{
    return firstName + " " + MI + " " + lastName + "\n" + address + "\n" + city + ", " + state + "   " + zip + "\n" + time;
}


Thanks guys you rock Poke tongue | ;-P
QuestionHow to delete word field code from C# Pin
Andraw Tang2-Dec-10 8:45
Andraw Tang2-Dec-10 8:45 
QuestionXPathNavigator iterate and write Pin
Mark F.2-Dec-10 5:38
Mark F.2-Dec-10 5:38 
AnswerRe: XPathNavigator iterate and write Pin
cechode2-Dec-10 13:15
cechode2-Dec-10 13:15 
GeneralRe: XPathNavigator iterate and write [modified] Pin
Mark F.3-Dec-10 9:00
Mark F.3-Dec-10 9:00 
AnswerRe: XPathNavigator iterate and write Pin
cechode3-Dec-10 9:34
cechode3-Dec-10 9:34 
QuestionAvoid Peer 2 Peer acces Pin
utunity2-Dec-10 5:08
utunity2-Dec-10 5:08 
AnswerRe: Avoid Peer 2 Peer acces Pin
musefan2-Dec-10 5:36
musefan2-Dec-10 5:36 
GeneralRe: Avoid Peer 2 Peer acces Pin
utunity2-Dec-10 5:45
utunity2-Dec-10 5:45 
GeneralRe: Avoid Peer 2 Peer acces Pin
musefan2-Dec-10 5:51
musefan2-Dec-10 5:51 
GeneralRe: Avoid Peer 2 Peer acces Pin
Luc Pattyn2-Dec-10 7:48
sitebuilderLuc Pattyn2-Dec-10 7:48 
GeneralRe: Avoid Peer 2 Peer acces Pin
fjdiewornncalwe3-Dec-10 1:15
professionalfjdiewornncalwe3-Dec-10 1:15 
AnswerRe: Avoid Peer 2 Peer acces Pin
T M Gray2-Dec-10 11:08
T M Gray2-Dec-10 11:08 
QuestionFlickering Pin
peropata2-Dec-10 3:43
peropata2-Dec-10 3:43 
AnswerRe: Flickering Pin
musefan2-Dec-10 3:52
musefan2-Dec-10 3:52 
AnswerRe: Flickering Pin
phil.o2-Dec-10 4:07
professionalphil.o2-Dec-10 4:07 
GeneralRe: Flickering Pin
musefan2-Dec-10 4:11
musefan2-Dec-10 4:11 
GeneralRe: Flickering [modified] Pin
phil.o2-Dec-10 4:46
professionalphil.o2-Dec-10 4:46 

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.