决定如何将选定的文件从“打开文件”对话框传递到另一个表单
我在思考如何将选定的文件传递到另一个表单时遇到问题。
我尝试使用“打开文件”对话框在 Form 1 中选择一个文件,然后将同一文件传递到 Form 2,在其中我将尝试向文件中添加另一个条目。
问题是我不确定我应该传递什么。我应该只传递 openFileDialog.FileName
还是我需要传递的不仅仅是这个?
我今天整天都在想这个问题,但我不知道该怎么办?我应该跳过“打开文件”对话框的哪些部分?
或者..我可能只是想太多了这个问题。请清理我的思绪。
I am having a problem with thinking of a way that would let me pass a selected file to another form.
I am trying to select a file in Form 1 by using Open File Dialog and then pass the same file to Form 2 in which I will try to add another entry into a file.
The problem is that I am nnot sure what I should be passing. Should I pass only openFileDialog.FileName
or I need to pass more than just this?
I was thinking of this all day today but I don't know how should I do this? Which parts of Open File Dialog should I pass over?
Or.. I might just thinking too hard of this problem. Please clear my mind.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)