保存和浏览按钮 [英] save and browse buttons

查看:75
本文介绍了保存和浏览按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


我使用openfileDialog,saveFileDialog。在设计中过滤属性为:Excel文件(* .xls)| * .xls



i需要打开并保存Excel表格。但是



浏览 - >文件类型

保存 - >另存为类型comboBoxes没有显示格式

如何解决它。我可能需要设置属性

hi
i used openfileDialog, saveFileDialog. Filter property at design as: Excel Files(*.xls)| *.xls

i need to open and save Excel sheet.but at

browse -->files of type
save -->save as type comboBoxes aren't showing that format
how to solve it. may i need to set property

推荐答案

您好b $ b

首先分配过滤器属性,然后尝试打开对话框。



它会正常工作..



低于我的代码....





Hi
First you assign the filter property and then try to open the dialog.

it will work fine..

below my code....


fdlg.Filter = "Excel Files|*.xls";
            if (fdlg.ShowDialog() == DialogResult.OK)










saveFileDialog1.Filter = "Text Files|*.txt";
          if (saveFileDialog1.ShowDialog() == DialogResult.OK)


这篇关于保存和浏览按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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