Hi Guys,
Currently I have a form that load an XML file and populates Text Boxes with certian Values from that XML. I also have an 'Admin' form which accept new values. What I am wanting to do is the following:
When the Admin screen is loaded from a button on the main form, populated with new credentials and then the 'Apply Changes' button is pressed. The main form to 'refresh' or 're-load' the connection to the XML to pick up the new values.
Code for Main for Load:
{
public partial class Form1 : Form
{
private XmlDocument smtpDetails;
private XmlElement root;
public string PATH = @"C:\********\Quickticket\Person.xml";
public Form1()
{
InitializeComponent();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
SplashScreen Splash = new SplashScreen();
Splash.Show();
textBox1.Enabled = false;
compName.Enabled = false;
comp_tel.Enabled = false;
ccEmail.Visible = false;
ccEmailLbl.Visible = false;
smtpDetails = new XmlDocument();
smtpDetails.Load(PATH);
any advice or sample could would be great.
Thanks in advance.