明天的明天 永远的永远 未知的一切 我与你一起承担 ??

是非成败转头空 青山依旧在 几度夕阳红 。。。
  博客园  :: 首页  :: 管理

2007年7月7日

摘要: 在windows form之间传值,我总结了有四个方法:全局变量、属性、窗体构造函数和delegate。 第一个全局变量: 这个最简单,只要把变量描述成static就可以了,在form2中直接引用form1的变量,代码如下: 在form1中定义一个static变量public static int i= 9 ; Form2中的钮扣按钮如下: private void button1_Click(o... 阅读全文

posted @ 2007-07-07 18:56 且行且思 阅读(2992) 评论(0) 推荐(0)

摘要: Windows端应用程序1,首先建立两个POST变量,这两个POST变量模拟ASP中的Form的name~~~(我瞎试的,果然是模拟form) System.Net.WebClient WebClientObj=new System.Net.WebClient();System.Collections.Specialized.NameValueCollection PostVars=new Sys... 阅读全文

posted @ 2007-07-07 11:09 且行且思 阅读(540) 评论(0) 推荐(0)

摘要: Using Internet Explorer from .NET 5.0 Introduction Earlier in this book we have looked at how to read HTML from websites, and how to navigate through websites using GET and POST requests. Thes... 阅读全文

posted @ 2007-07-07 10:57 且行且思 阅读(3552) 评论(0) 推荐(0)

摘要: //先在工程中添加一个mshtml的引用//替换内核函数 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using mshtml;... 阅读全文

posted @ 2007-07-07 00:51 且行且思 阅读(4912) 评论(0) 推荐(0)