文件从一个文本框复制到另一个文本框 [英] copy of file from one text box to other

查看:140
本文介绍了文件从一个文本框复制到另一个文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c sharp window应用程序中如何从一个文本框中读取文本然后如何使用system.io将这些文本框复制到另一个文本框中。

想要将文本从文本框复制到文本框或从一个文件复制到另一个文件...... ??

解决方案





您的问题不明确。

如果您想将TextBox复制到TextBox,那么



 TextBoxDest.Text = TextBoxCpyFrm.Text; 



文件到文件

< pre lang =c#> File.Copy( From File Path To File Path true );


in c sharp window application how can read text from one text box and then how can copy those to another text box using system.io.......??
want to copy the text from text box to text box or from one file to another file...??

解决方案

Hi,

Your question is not clear.
Still if you want to Copy to TextBox to TextBox then

TextBoxDest.Text=TextBoxCpyFrm.Text;


File to File

File.Copy("From File Path","To File Path",true);


这篇关于文件从一个文本框复制到另一个文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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