Results 1 to 4 of 4

Thread: form.show problem

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    26

    form.show problem

    i have to make a pocket aplication
    i read from an xml file and i modify some data

    private void button1_Click(object sender, EventArgs e)
    {
    System.Data.DataSet DSet = new DataSet();
    DSet.ReadXml("Employee.xml");
    dataGrid1.DataSource = DSet.Tables[0];
    }
    private void button2_Click(object sender, EventArgs e)
    {
    Form1 Form2 = new Form1();
    Form2.Show();//using ShowDialog is teh same
    Form2.Activate();

    the problem is i cant switch to form2 where i have a textbox and a buton
    and if you can please tell me how i can insert the value in the dataset


    Sr for so many questions but i'm a rookie with C#
    Last edited by King Abadon; May 11th, 2007 at 03:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width