Jump to content

folderbrowserdialog and selecting files after open folder

- - - - -

  • Please log in to reply
1 reply to this topic

#1
mokszyk

mokszyk

    Learning Programmer

  • Members
  • PipPipPip
  • 33 posts
Hello. I have my own code:
 private void listBox1_DoubleClick(object sender, EventArgs e)
        {

            string path = Path.GetDirectoryName(listBox1.SelectedItem.ToString());
            System.Diagnostics.Process process = new System.Diagnostics.Process();
            process.StartInfo.FileName = path;
            process.Start();


        }
How to turn on automatic file selection when I open the specified folder? ( I double click on selecteditem of listbox, it shows the folder with files and one file which is selected).

Help :crying:
THink positive :)

#2
Mozana

Mozana

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
dont you think it would be better to open a file using the control known as the openflie dialog under dialogs? If you think it is but need the how you can hit back




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users