SETHA SITE INFORMATION

  • Increase font size
  • Default font size
  • Decrease font size

How to Open File Location using C# 2008?

E-mail Print PDF
This article shows you how to Open File Location from Visual C# 2008 code.
  • Drag the OpenFileDialog Control to Form
  • Add Reference {Microsoft.VisualBasic}
  • Sample images

  • Coding
    Microsoft.VisualBasic.Interaction.Shell("explorer.exe /select, "+
                       this.txtFileName.Text, 
                       Microsoft.VisualBasic.AppWinStyle.NormalFocus, true, 20);
    
Download Source Code Here