在OpenFileDilog中选择文件后的子窗口 [英] Childwindow after selecting an file in OpenFileDilog

查看:79
本文介绍了在OpenFileDilog中选择文件后的子窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个问题!
on按钮单击我打开Filedilog",该文件向我显示Excel文件列表.现在,事情是我们选择文件后立即弹出子窗口.

你们中的任何一个可以说我该怎么做吗...

谢谢.

Hi Guys,

I have a question !!

on button Click I open the Filedilog which shows me list of Excel files. Now thing is as soon as we select the file I should pop-up child window.

can any of you please say me how to do that...

Thanks.

推荐答案

伙计们,我得到了答案!!!
答案是.

guys I got the answer!!!

answer is.

OpenFileDialog openFileDilog1 = new OpenFileDialog();
            openFileDilog1.Filter = "Excel FILE| *.xls";
            openFileDilog1.ShowDialog();
            tbResults.Text = openFileDilog1.File.Name;
            ChildWindow1 win = new ChildWindow1();
            win.Show();


这篇关于在OpenFileDilog中选择文件后的子窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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