Demo窗体图片,Form1 Demo窗体图片,Form2 公共委托 using System; namespace _DeleFrm{ public class Dele { public static Action<string> SendDele; }} form1窗体代码 using System;using System.Windows.Forms; namespace _DeleFrm{ public partial class Form1 : Form {
1.struts2 action如何向JSP的JS函数传值 action中定义变量public class TestAction extends ActionSupport implements ServletRequestAware { private String state = "test";} JSP的JS函数中引用变量<script type=text/javascript> function getStatus() { var t =
windows form (窗体) 之间传值小结 windows form (窗体) 之间传值小结 在windows form之间传值,我总结了有四个方法:全局变量.属性.窗体构造函数和delegate. 第一个全局变量: 这个最简单,只要把变量描述成static就可以了,在form2中直接引用form1的变量,代码如下: 在form1中定义一个static变量public static int i= 9 ; Form2中的钮扣按钮如下: private void button1_Click