需要用于打开,写入,保存在Winforms中的代码 [英] Need code for file open,write,save in winforms

查看:104
本文介绍了需要用于打开,写入,保存在Winforms中的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Winform应用程序的新手,我在窗体中使用了菜单条.在该菜单中,子菜单是new,open,save,save作为选项.我需要用于操作这些操作的代码.请以这种方式帮助我.在此先感谢.

hi Am new for Winform application, I used menu strip in my form.In that menu the sub menus are new,open,save,save as options .I need code for manipulate these operations.Please kindly help me in that manner. Thanks in Advance.

推荐答案

我们不能.

您正在谈论的文件操作不仅与文件有关,而且还与应用程序的内部结构有关.如果您的应用程序围绕一棵独立的视频树运行,则保存文件"将意味着完全不同于如果该应用程序是基于单个段落的便笺模拟器.

考虑一下您的应用程序,它的工作方式,它的工作方式,需要知道的内容,并尝试确定您需要保存的内容-通常这将有助于您找到合适的格式.
We can''t.

The file operations you are talking about are not just file related - they are related to the inner structure of your application. If you app works around a tree of independent videos, then "Save File" will mean something totally different to what it would if the application was a single paragraph based post-it note simulator.

Think about your application, how it works, what it works with, what it needs to know, and try to work out what you need to save - that will generally help to lead you to a suitable format.


保存 [打开 [
Save[^]

Open[^]


这篇关于需要用于打开,写入,保存在Winforms中的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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