保存文件Diaglog帮助 [英] Save File Diaglog help
本文介绍了保存文件Diaglog帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问候朋友,
我有一个按钮来保存扩展名为.bat的文件。我使用了savefiledialog,比如
Greetings Friends,
I have a button to save a file with extension .bat. I used savefiledialog like
int num1 = (int)this.saveFileDialog1.ShowDialog();
this.saveFileDialog1.Title = "Build Destro";
this.saveFileDialog1.Filter = "Standard Batch Files (*.bat)|*.bat|*.*";*/
当我按下按钮对话框打开但文件没有保存时..
如果有任何代码可用,请告诉...
提前致谢。
When i press the button dialog box opens but the file is not saving..
If any code is available pls do tell...
Thanks in advance.
推荐答案
showDialog片段只允许您显示弹出窗口并帮助您选择用于保存的文件名和位置。
你还需要自己实现保存逻辑。
这里 [ ^ ]是一个很好的例子,可以在选择文件名后保存图像。
The showDialog piece will only allow you to display the popup and help you choose a filename and location for saving.
You still need to implement saving logic on your own.
Here[^] is a good example that saves an image after selecting a file name.
Ajax控件比你容易多了se和可靠的......
请试试以下内容..
[ ^ ]
希望它会帮助...:)
Ajax controls are much easier to use and reliable as well...
Do give a try to the following..
[^]
Hope it will help... :)
这篇关于保存文件Diaglog帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文