简体   繁体   中英

Is it possible to load 2 file explorer windows in 1 form?

I would like to have a form that has 2 windows file explorer(explorer.exe) views.

I know I could code a file browser in a few days, but I much rather just use instances of explorer. I dont need to re-invent the wheel, just two windows connected by a form.

Is this possible in C#?

您可以使用控制器,然后在同一窗口中使用它们中的2个

There is no means by which to "host" an explorer window, as you want to do. The only way to come close is to use an OpenFileDialog , but that is obviously unsuited to what you're going for. There is no API around the explorer window; no matter what approach you take, you're going to have to use an actual control. There are plenty available online, such as the one linked to by Baget, but nothing built into .NET.

您需要为此使用嵌入式控件,例如Shell MegaPack

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