- 博客(9)
- 资源 (5)
- 收藏
- 关注
原创 C#判断网络
[System.Runtime.InteropServices.DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(out int Description, int ReservedValue); public static bool IsConnectedToIntern
2007-10-24 00:34:00 495
原创 MDI窗口
private void Form2_LocationChanged(object sender, EventArgs e) { this.Location = new Point(0, 0); }
2007-10-24 00:33:00 394
原创 无标题窗口如何移动
private Point mouse_Offset; private void Form1_MouseDown(object sender, MouseEventArgs e) { mouse_Offset = new Point(-e.X, -e.Y); } private void Form1_MouseM
2007-10-24 00:32:00 489
原创 软件背景音乐
using System.Runtime.InteropServices; public static uint SND_ASYNC = 0x0001; // play asynchronously public static uint SND_FILENAME = 0x00020000; // name is file name [DllImport("winm
2007-10-24 00:32:00 517
原创 C#连接EXCEL
try { OleDbConnection myConn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:/学习资料/ACCPS2笔试机试/ACCPS2笔试/20070114笔试S2/答案.xls;Extended Properties=Excel 8
2007-10-24 00:31:00 603
原创 C#打开光驱
[DllImport("winmm.dll")]public static extern int mciSendString(string s1,string s2,int i1,int i2);//关闭光驱mciSendString ("set cdaudio door closed","",0,0);//打开光驱mciSendString ("set cdaudio door open",""
2007-10-24 00:30:00 686
原创 richTextBox连接
private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e) { System.Diagnostics.Process p = new System.Diagnostics.Process(); p = System.Diagnostics.P
2007-10-24 00:29:00 412
原创 C#读取XML文件
using System.Xml; XmlDocument doc = new XmlDocument(); doc.Load("../../ServerInfor.xml"); XmlNode server; server = doc["server"]; this.textBox1.Text =
2007-10-24 00:28:00 932
原创 C#播放器
//在工具箱右击——选择项——COM组件——windows media player try { this.openFileDialog1.Filter = "*.mav,*wmv|*.mav,*.wmv|*.*|*.*"; if (this.openFileDialog1.ShowDial
2007-10-24 00:27:00 560
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人