Beispiel #1
0
        private void InPutPath_DragDrop(object sender, DragEventArgs e)
        {
            string[] s = (string[])e.Data.GetData(DataFormats.FileDrop, false);

            mFileName = s[0];
            InPutPath.Clear();
            InPutPath.AppendText(mFileName);
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            openFileDialog1.Filter = "Access文件(*.mdb)|*.mdb|所有文件(*.*)|*.*";

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                mFileName = openFileDialog1.FileName;
                InPutPath.Clear();
                InPutPath.AppendText(mFileName);
            }
        }