使用另一种形式更改一个表单中的文本框字体 [英] changing font of textbox in one form using another form

查看:91
本文介绍了使用另一种形式更改一个表单中的文本框字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过在form2

解决方案

<中的按钮事件中选择fontdialog框中的字体来更改表单1中的文本框字体(这是我的Windows窗体应用程序的主要形式) blockquote>我建​​议你参考这篇文章。



i找到了解决我问题的方法。

它也可以帮到你。



http://www.htmlgoodies.com/beyond/javascript/article.php/3471111/A-Quick-Tutorial-on-JavaScript-Variable-Passing.htm [ ^ ]



或者要将值传递给另一个页面控件,您可以使用会话 cookie viewState



希望此帮助


I want to change font of textbox in form 1 (which is my mainform of windows form application) by selecting a font in fontdialog box on button event in form2

解决方案

I recommend you to refer this article.

i have found solution to my problem.
it may helps you too.

http://www.htmlgoodies.com/beyond/javascript/article.php/3471111/A-Quick-Tutorial-on-JavaScript-Variable-Passing.htm[^]

Or to pass value to the another page control you can use Session or cookie or viewState.

Hope This Help


这篇关于使用另一种形式更改一个表单中的文本框字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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