var ua = window.navigator.userAgent;var edge = ua.indexOf('Edge/'); if (edge > 0) { //需要处理的代码 } Read More
posted @ 2016-04-21 12:58 指尖的流星 Views(313) Comments(0) Diggs(0)
/// <summary> /// 开机启动项 . /// </summary> /// <param name="Started">是否启动</param> /// <param name="name">启动值的名称</param> /// <param name="path">启动程序的路径</param> public void RunWhenStart(bool Started, string name, string path) Read More
posted @ 2013-03-11 10:27 指尖的流星 Views(183) Comments(0) Diggs(0)
[DllImport("user32.dll")] static extern bool SystemParametersInfo(uint uiAction, bool uiParam, ref bool pvParam, uint fWinIni); const uint SPI_GETSCREENSAVEACTIVE = 0x0010; const uint SPI_SETSCREENSAVEACTIVE = 0x0011; const uint SPIF_SENDCHANGE = 0x0002; const uint SPIF_SENDWININICHANGE = Read More
posted @ 2013-03-11 10:24 指尖的流星 Views(360) Comments(0) Diggs(0)
/// <summary> /// 增加换肤菜单 /// </summary> /// <param name= "toolMenu "> </param> public void AddSkinMenu(ToolStripMenuItem toolMenu) { DataSet skin = new DataSet(); try { skin.ReadXml("skin.xml ", XmlReadMode.Auto)... Read More
posted @ 2013-02-20 10:13 指尖的流星 Views(2437) Comments(0) Diggs(0)
From窗体的内容private bool isMouseDown = false; private Point FormLocation; //form的location private Point mouseOffset; //鼠标的按下位置 private int xPosition, yPosition; //声明委托 delegate void DisposeForm(); delegate void SetForm(double value); public frm... Read More
posted @ 2013-01-30 12:00 指尖的流星 Views(562) Comments(0) Diggs(0)
class AutoSizeFormClass { //(1).声明结构,只记录窗体和其控件的初始位置和大小。 public struct controlRect { public int Left; public int Top; public int Width; public int Height; } //(2).声明 1个对象 //注意这里不能使用控件列表记录 List<Control> nCtrl;,因为控件的关联性,记录的始终是当前的大小。 public List<controlRect> oldCtrl; //int ctrl_first = 0; // Read More
posted @ 2013-01-29 08:34 指尖的流星 Views(384) Comments(0) Diggs(0)
Table1表结构如下idgroup1group2money2232 gp1aaa234.32233 gp2bbb90.32234 gp1aaa804.392235 gp2bbb02236 gp2bbb882237 gp1aaa72238 gp1aaa234.3 2239 gp2bbb88 需要获得如下查询结果:idgroup1group2money num2234 gp1aaa804.39 12232 gp1aaa234.3 22238 gp1aaa234.3 22237 gp1aaa732233 gp2bbb90.3 12236 gp2bbb88 22239 gp2bbb8822235 g Read More
posted @ 2012-12-03 11:00 指尖的流星 Views(2780) Comments(0) Diggs(0)
1. CDONTS.NewMail 组件使用说明 Set MailObject = Server.CreateObject("CDONTS.NewMail") MailObject.From = "发信邮箱" MailObject.To = "收信邮箱" MailObject.Cc = "抄送邮箱" MailObject.Bcc = "密送邮箱" MailObject.Subject = "邮件主题" MailObject.Body = "邮件内容" Ma Read More
posted @ 2012-11-27 11:35 指尖的流星 Views(257) Comments(0) Diggs(0)
这个是也从网上搜索的代码,稍微改动了一个错误地方。usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Drawing.Printing;usingSystem.Windows.Forms;usingSystem.IO;usingSystem.Drawing;usingSystem.Data;namespaceOrderPDA.OrderCode{internalclassPrintService{publicPrintService(){}#regionMembers//成员publicStringp Read More
posted @ 2012-11-09 15:50 指尖的流星 Views(4899) Comments(0) Diggs(0)
C#天气预报WebService Read More
posted @ 2012-09-25 15:02 指尖的流星 Views(1402) Comments(0) Diggs(0)