Click here to Skip to main content
15,919,245 members

Comments by Member 10408516 (Top 3 by date)

Member 10408516 22-May-14 1:52am View    
Thank-you Manikandan it is working the way I want
Member 10408516 21-May-14 7:51am View    
private string Filename;
public string Filename1
{
get { return Filename; }
set { Filename = value; }
}
public Form2()
{
InitializeComponent();
this.textBox1.Text = Filename1;

}
private void button1_Click(object sender, EventArgs e)
{
result = openFileDialog1.ShowDialog();
openFileDialog1.AddExtension = true;
openFileDialog1.Title = "Open peripheral programming sequence file";
openFileDialog1.Filter = "Sequence XML File (*.xml)|*.xml";

openFileDialog1.RestoreDirectory = true;

if (result == DialogResult.OK)
{
this.textBox1.Text = openFileDialog1.FileName;
Filename1 = openFileDialog1.FileName;
}
}



Thankyou.I tried using the property method as shown above but not sure if i have done it in the correct way but the filename was not shown in the textbox1 when the form2 was opened .Is there any method where the string is not passed through the constructor but it is stored in a string variable that can be accessed until the application is stopped i.e even when the form 2 is closed we should be able to access that string variable .
Member 10408516 27-Mar-14 6:56am View    
When there are the nodes of the same name and i want to add inner text to the last node what should i do
eg
<book>
<Pg1 type="textbook">
<content pgno="12">11 22
<content pgno="120">112 asc aaa 1sw
<content pgno="200">112 asc 123 123
</Pg1>


Herei want to add some data "aaa knj rta" along with "112 asc aaa 1sw" of the second content tag what is the code i need to write