码迷,mamicode.com
首页 > Windows程序
【C#学习笔记】鼠标控制
using System; using System.Runtime.InteropServices; using System.Windows.Forms; namespace ConsoleApplication1 { class Program { public struct POINT { ... ...
分类:Windows程序   时间:2017-08-27 16:15:25    阅读次数:252
【C#学习笔记】类构造函数使用
using System; namespace ConsoleApplication { class stu { private string name; private int age; public stu() { name = ""; age = -1; ... ...
分类:Windows程序   时间:2017-08-27 16:15:00    阅读次数:246
【C#学习笔记】图片像素操作
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
分类:Windows程序   时间:2017-08-27 16:14:32    阅读次数:260
【C#学习笔记】函数调用
using System; namespace ConsoleApplication { class Program { static int Add(int a, int b) { return a + b; } static void Main(string[] args) ... ...
分类:Windows程序   时间:2017-08-27 16:14:18    阅读次数:258
【C#学习笔记】获取当前应用程序所在路径及环境变量
转自:http://www.cnblogs.com/netlyf/archive/2011/06/22/2086718.html 一、获取当前文件的路径 string str1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe ...
分类:Windows程序   时间:2017-08-27 16:13:31    阅读次数:260
【C#学习笔记】浏览目录得到路径
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
分类:Windows程序   时间:2017-08-27 16:13:06    阅读次数:200
【C#学习笔记】smtp发邮件
using System; using System.Net; using System.Net.Mail; using System.Text; namespace ConsoleApplication { class Program { static void Main(string[] arg... ...
分类:Windows程序   时间:2017-08-27 16:12:10    阅读次数:201
【C#学习笔记】类型转换
using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { string a = "1234"; int b = Convert.ToInt32(a)+1; ... ...
分类:Windows程序   时间:2017-08-27 16:12:03    阅读次数:203
【C#学习笔记】保存文件
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
分类:Windows程序   时间:2017-08-27 16:10:50    阅读次数:223
【C#学习笔记】获得本机IP
using System; using System.Net; namespace ConsoleApplication { class Program { static void Main(string[] args) { IPHostEntry ipHost = Dns.GetHostEntry... ...
分类:Windows程序   时间:2017-08-27 16:10:25    阅读次数:148
【C#学习笔记】文本复制到粘贴板
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
分类:Windows程序   时间:2017-08-27 16:10:17    阅读次数:217
【C#学习笔记】函数重载
using System; namespace ConsoleApplication { class Program { static void Print(int a, int b) { Console.Write(a + b); } static void Print(string a... ...
分类:Windows程序   时间:2017-08-27 16:10:00    阅读次数:240
【C#学习笔记】打开对话框并返回打开文件所在路径
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
分类:Windows程序   时间:2017-08-27 16:09:11    阅读次数:222
【C#学习笔记】改变字体
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
分类:Windows程序   时间:2017-08-27 16:08:40    阅读次数:284
【C#学习笔记】Dictionary容器使用
using System; using System.Collections.Generic; namespace ConsoleApplication { class Program { static void Main(string[] args) { Dictionary a = new Di... ...
分类:Windows程序   时间:2017-08-27 16:08:33    阅读次数:216
【C#学习笔记】网页弹出提示框
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace W... ...
分类:Windows程序   时间:2017-08-27 16:08:25    阅读次数:176
【C#学习笔记】播放wav文件
using System; using System.Media; namespace ConsoleApplication { class Program { static void Main(string[] args) { SoundPlayer s = new SoundPlayer("te... ...
分类:Windows程序   时间:2017-08-27 16:08:03    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!