用浏覽器打開手機號碼查詢的網站
代碼如下
using System;
using System
using System
namespace HnVote
{
public partial class Mobile : Form
{
public Mobile()
{
InitializeComponent();
}
private static string[] GetMobileInfo(string number)
{
try
{
XmlDocument xmlDocument = new XmlDocument();
xmlDocument
XmlNamespaceManager cx = new XmlNamespaceManager(xmlDocument
cx
XmlNodeList nodes = xmlDocument
("//content:QueryResult|//content:Mobile|//content:Province|//content:City|//
content:Corp|//content:Card|//content:AreaCode|//content:PostCode"
if (nodes
{
if ("True"
{
return new string[]
{
nodes[
nodes[
};
}
}
return new string[] { "false" };
}
catch (Exception)
{
return new string[] { "false" };
}
}
private void button
{
try
{
string[] num = GetMobileInfo(textBox
MessageBox
num[
}
catch (Exception ex)
{
MessageBox
}
}
private void textBox
{
if(e
{
button
}
}
}
}
界面
From:http://tw.wingwit.com/Article/program/net/201311/14406.html