hi frnds,
iam shaam working on c#.net. i want the way how to open an open dialog box so that i can select the file from that by opening that dialog box and select a file and add the path into a text box....
i will be very helpful to one and all if u help me in solving this problem...
Hai
Shaam
I am Sangita Deori,working on C#.Net as a GIS developer in DAKC.I have also gone through your problem,the solution to your problem is very simple.M sendin a piece of code for atleast your programe to run.
You need to take a OpenDialog box ,text box(now for the properties for the text box do text= multiline, scrollbar as both or vartical anything you could take) and a button .
Now on button click write the following code.Believe me it will run
private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.ShowDialog();
string s = openFileDialog1.FileName;
MessageBox.Show(s);
StringReader sr = new StringReader(s);
string t1 = sr.ReadToEnd();
textBox1.AppendText(t1);
textBox1.AppendText("***********************"); /* for seperating b/w paths,you could commecnt it too*/
sr.Close();
}