Advertisement
Guest User

UI

a guest
Sep 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace WindowsFormsApp1
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         string directory;
  16.         string[] files;
  17.  
  18.         public Form1()
  19.         {
  20.             InitializeComponent();
  21.         }
  22.  
  23.         private void pictureBox1_Click(object sender, EventArgs e)
  24.         {
  25.             MouseEventArgs me = (MouseEventArgs)e;
  26.             Point coordinates = me.Location;
  27.         }
  28.  
  29.         private void button1_Click(object sender, EventArgs e)
  30.         {
  31.             FolderBrowserDialog openFolder = new FolderBrowserDialog();
  32.  
  33.             if (openFolder.ShowDialog() == DialogResult.OK)
  34.             {
  35.                 directory = openFolder.SelectedPath;
  36.             }
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement