非专业程序员

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年8月2日

摘要: 1. 方法定义 [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int connectionDescription, int reservedValue ) ;2. 方法说明 参数: connectionDescription : 连接说明 reservedValue : 保留值 返回值: true: On Line false: Off Line 3. 调用方法 a. 你必须在你的code里引用System.Runtime.InteropService 阅读全文
posted @ 2011-08-02 23:46 曲仁岗 阅读(391) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;namespace WindowsFormsApplicationWork{ public partial class Form1 : Form { public Form1() { Initializ 阅读全文
posted @ 2011-08-02 23:15 曲仁岗 阅读(438) 评论(0) 推荐(0) 编辑