Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. private void Form1_Load_1(object sender, EventArgs e)
  2. {
  3. listBox3.Items.Clear();
  4. string[] dirs = Directory.GetDirectories("C:\Users\foo\Desktop\test");
  5.  
  6. foreach (string dir in dirs)
  7. {
  8. listBox3.Items.Add(dir);
  9. }
  10. }
  11.  
  12. Listbox.Items = foo;
  13. function(foo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement