简体   繁体   中英

OpenFileDialog not showing in Visual Studio 2017 (FolderBrowserDialog isn't either!)

While coding, I'm getting an open file dialog to tell where a file is for an exe, but when I put it on the design file, it just never shows up. I tried doing it again and running debug. It just never shows up. Not even in release.

 OpenFileDialog openFileDialog = new OpenFileDialog();
            if (openFileDialog.ShowDialog() == true)
            {
                //your code
            }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM