浏览visual c ++ winform应用程序中的按钮 [英] browse button in visual c++ winform application
本文介绍了浏览visual c ++ winform应用程序中的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在visual c ++ winform应用程序中创建浏览按钮?
how to create a browse button in visual c++ winform application??
推荐答案
添加一个按钮,将文本设置为"浏览..."或"...",为
单击事件添加处理程序。然后查看 OpenFileDialog 类的示例用法:
Add a button, set the text to "Browse…" or "…", add a handler for Click event. Then see the sample usage of OpenFileDialog class:
OpenFileDialog 组件也可以从Toolbox拖到表单中;然后你可以访问会员,而不是使用
gcnew 。
The OpenFileDialog component can be also dragged from Toolbox to your form; then you can access the member instead of using gcnew.
这篇关于浏览visual c ++ winform应用程序中的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文