daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Replace \\ with \ in FolderDialogBox.SelectedPath
  2. private void label1_Click(object sender, EventArgs e)
  3.     {
  4.        folderBrowserDialog1.ShowNewFolderButton = false;
  5.  
  6.         if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
  7.         {
  8.             string p = @folderBrowserDialog1.SelectedPath; //=> Selected C:ACTNT
  9.             //removing @ in front of folderBrowserDialog1 does not change the situation
  10.             strPathName.Text = p; // => display c:ACNT
  11.             con = "database = " + p; // => actual value "database = c:\ACNT"
  12.             UpdateTableName();
  13.         }
  14.     }
  15.    
  16. string myvar = @"c:myfile.txt";
  17.    
  18. string path = @"C:\test";
  19. path=path.Replace(@"\", @"");
  20.    
  21. @"c:test".
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top