15,919,245 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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