摘要: 用winform应用程序登录网站的解决方案 阅读全文
posted @ 2008-01-29 14:52 菩提树下的杨过 阅读(2993) 评论(1) 推荐(0) 编辑
摘要: 关键是在Main函数中处理,示例如下usingSystem;usingSystem.Collections.Generic;usingSystem.Windows.Forms;namespaceWinFormTest{staticclassProgram{/**////<summary>///应用程序的主入口点。///</summary>[STAThread]staticv... 阅读全文
posted @ 2008-01-29 14:32 菩提树下的杨过 阅读(849) 评论(0) 推荐(0) 编辑
摘要: privatevoidForm1_Load(objectsender,EventArgse){this.lnkTest.Text="百度GoogleYahoo";this.lnkTest.Links.Add(0,2,"http://www.baidu.com");this.lnkTest.Links.Add(3,6,"http://www.google.com");}privatevoidlnkT... 阅读全文
posted @ 2008-01-29 14:30 菩提树下的杨过 阅读(2982) 评论(2) 推荐(0) 编辑
摘要: privatevoidbtnTest_Click(objectsender,EventArgse){//usingSystem.Text.RegularExpressions; 先using这一段string_Result="";string_Pattern=@"(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})";Matchm=Regex.Match(txtMobile.Text,_Pattern);if(m.Groups.Count>1)//表示能匹配到有效的手机号码比如为:13016750139不包含区号 {_Result 阅读全文
posted @ 2008-01-29 14:27 菩提树下的杨过 阅读(1875) 评论(1) 推荐(0) 编辑