摘要:
1.仿QQ托盘消息闪动:原理:当有消息来的时候,托盘图标以彩色图标和透明图标来回切换表现闪动效果。2.播放WAV文件System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.SoundLocation = Application.StartupPath + "\\msg.wav"; player.Play();3. 调用Chrome打开指定网址Process process = new Process();process.StartInfo.Use... 阅读全文
摘要:
调用 IE:System.Diagnostics.Process myProcess = new System.Diagnostics.Process();myProcess.StartInfo.FileName = "iexplore.exe";myProcess.StartInfo.Arguments = "http://www.net0and1.com/";myProcess.Start();调用默认浏览器:string target= "http://www.net0and1.com";//Use no more than o 阅读全文
摘要:
Part 2Chapter 3LINQ to Objects overviewIEnumberalbe<T> Sequences,and the standard QueryIEnumberable<T>, 发音为“I enumerable of T”,IEnumberalbe 是C#中所有泛型集合类必须继承的接口。这个接口允许遍历每个集合的元素。序列的定义就是实现了IEnumerable<T>接口的集合。所有的标准查询语句都是扩展方法,在System。Linq.Enumberalbe命名空间中,静态类,属性中第一个参数是IEnumberable<T& 阅读全文