Results 1 to 7 of 7

Thread: Browse for Folder **RESOLVED**

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Posts
    30

    Question Browse for Folder **RESOLVED**

    Ok, i know this must've been posted a million times in VB but I'm a new C# programmer and frankly I have no clue as how to do this in C#, so please help me out

    Code:
    private void button3_Click(object sender, System.EventArgs e)
    {
    	OpenFileDialog openFileDialog1 = new OpenFileDialog();
    	openFileDialog1.ShowDialog();
    	textBox1.Text = openFileDialog1.FileName;
    }
    How do I turn this into a Folder browsing dialog? This only selects existing files. I've seen the VB code involved for this and it's, for a lack of a better word, ridiculously complex! Isn't there a built-in method or class for this in C#? Thanks in advance!
    Last edited by eanatum; May 7th, 2003 at 01:06 PM.

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