在用户控件/表单中嵌入文件选择器 [英] Embed a File Chooser in a UserControl / Form

查看:64
本文介绍了在用户控件/表单中嵌入文件选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个桌面应用程序,该应用程序具有嵌入在控件中的自定义.NET文件选择器,但存在一些问题。

我想用非自定义样式替换它文件选择器(如 OpenFileDialog )。

I've inherited a desktop application which has a custom .NET file chooser that is embedded in a control, but it has some issues.
I'd like to replace it with a non-custom File Chooser (like the OpenFileDialog).

但是,由于多种原因,它需要嵌入到父控件中而不是弹出对话框中。

我是否有一个控件缺少,还是MS仅提供开箱即用的弹出对话框?

However, for a variety of reasons it needs to be embedded in the parent control not a popup dialog.
Is there a control I'm missing, or does MS only provide the popup dialog out of the box?

推荐答案

.Net控件对于Windows中内置的常见对话框,而对话框。因此,无法像嵌入控件一样嵌入它。

The .Net control is a thin wrapper for the common dialog built into windows, and that is a dialog. So there is no way to embed it as though it were a control.

这篇关于在用户控件/表单中嵌入文件选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆