如何从另一种形式显示文本框 [英] how can show textbox from another form

查看:130
本文介绍了如何从另一种形式显示文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作表格1它有文本框







我制作表格2它有按钮1

当我点击按钮1时我需要显示表格2中表格1的文本框

解决方案

问题原来是非常受欢迎,我以前的答案往往不太清楚,可能还不够清楚,我决定写一篇提示/技巧文章,详细的代码示例和解释:一次回答的许多问题 - Windows窗体或WPF Windows之间的协作



请阅读。您的后续问题将受到欢迎。



-SA


使用server.transfer in表格2页面,因为它将在表格2页面中显示表格1页面的内容。



语法:Server.Transfer(Form1.aspx);







问候,



Debasis Kundu的

I make Form 1 it have textbox



and I make Form 2 it have button 1
I need when I click the button 1 show the textbox from Form 1 in Form 2

解决方案

As the question turned out to be very popular, and my previous answers often were not well understood, probably were not clear enough, I decided to write a Tips/Trick article complete with detailed code samples and explanations: Many Questions Answered at Once — Collaboration between Windows Forms or WPF Windows.

Please read. Your follow-up questions will be welcome.

—SA


use server.transfer in the form 2 page as it will show the content of form 1 page in the form 2 page.

syntax: Server.Transfer("Form1.aspx");



Regards,

Debasis Kundu


这篇关于如何从另一种形式显示文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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