摘要:
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; namespace Wind... 阅读全文
posted @ 2017-08-27 15:13
Dsp Tian
阅读(777)
评论(0)
推荐(0)
摘要:
using System; using System.Runtime.InteropServices; namespace ConsoleApplication { class Program { [DllImport("winmm.dll")] public static extern uint mciSendString(string lps... 阅读全文
posted @ 2017-08-27 15:12
Dsp Tian
阅读(778)
评论(0)
推荐(0)
摘要:
转自:http://www.cnblogs.com/netlyf/archive/2011/06/22/2086718.html 一、获取当前文件的路径 string str1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe 阅读全文
posted @ 2017-08-27 15:12
Dsp Tian
阅读(449)
评论(0)
推荐(0)
摘要:
using System; using System.Net; using System.Net.Mail; using System.Text; namespace ConsoleApplication { class Program { static void Main(string[] args) { MailMes... 阅读全文
posted @ 2017-08-27 15:11
Dsp Tian
阅读(515)
评论(0)
推荐(0)
摘要:
using System; using System.Net; namespace ConsoleApplication { class Program { static void Main(string[] args) { IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHost... 阅读全文
posted @ 2017-08-27 15:11
Dsp Tian
阅读(387)
评论(0)
推荐(0)
摘要:
using System; using System.Data.OleDb; namespace ConsoleApplication { class Program { static void Main(string[] args) { string strConnection = "Provider = Microso... 阅读全文
posted @ 2017-08-27 15:10
Dsp Tian
阅读(536)
评论(0)
推荐(0)
摘要:
using System; using System.Data.SqlClient; namespace ConsoleApplication { class Program { static void Main(string[] args) { SqlConnection con = new SqlConnection(... 阅读全文
posted @ 2017-08-27 15:10
Dsp Tian
阅读(616)
评论(0)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { string a = "1234"; int b = Convert.ToInt32(a)+1; ... 阅读全文
posted @ 2017-08-27 15:09
Dsp Tian
阅读(404)
评论(0)
推荐(0)
摘要:
using System; using System.Media; namespace ConsoleApplication { class Program { static void Main(string[] args) { SoundPlayer s = new SoundPlayer("test.wav"); ... 阅读全文
posted @ 2017-08-27 15:09
Dsp Tian
阅读(2609)
评论(1)
推荐(0)
摘要:
using System; namespace ConsoleApplication { class stu { private string name; private int age; public stu() { name = ""; age = -1; ... 阅读全文
posted @ 2017-08-27 15:09
Dsp Tian
阅读(404)
评论(0)
推荐(0)

浙公网安备 33010602011771号