`
xuxujiang0
  • 浏览: 18754 次
  • 性别: Icon_minigender_1
  • 来自: 中山
社区版块
存档分类
最新评论
文章列表
using System.Windows.Threading;//命名空间引用   DispatcherTimer timer = null; //定时器   public void openTimer() { if(timer == null) { timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(2);timer.Tick += new EventHandler(timerChart_Tick); } timer.Start(); return; }   vo ...
            Pen p = new Pen(Color.Blue,4);             p.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;//恢复实线             p.EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor;             g.DrawLine(p, p1, p2);
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using Winner.CU.CheckAccounts.DataAccess; using Winner.CU.CheckAccounts.Facade; using System.Drawing.Drawing2D; using System.Drawing; namespace CheckAccounts {     public  ...
简单的运用Datetime类做时间操作,哈!! DateTime dt1 = DateTime.Now; DateTime dt2 = DateTime.Now; TimeSpan ts = dt2 - dt1; double miao = ts.TotalSeconds;
  [引自Artech]我的WCF之旅
 //http_request = false; function ajax(url, callbackfunction) {//初始化、指定处理函数、发送请求的函数   var  http_request = false;     //开始初始化XMLHttpRequest对象     if (window.XMLHttpRequest) { //Mozilla 浏览器         http_request = new XMLHttpRequest();         if (http_request.overrideMimeType) {//设置MiME类别    ...

js复制

        <script type="text/javascript">       //复制             function copytxt() {                 alert("进入该函数。");                 var txt = "";                 if (window.getSelection) {                     txt = window.getSelection();                 } ...
        private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)         {             Rectangle rectangle = new Rectangle(e.RowBounds.Location.X,             e.RowBounds.Location.Y, dataGridView1.RowHeadersWidth - 4,             e.RowBounds.Height);            ...
DataTable dt = (DataTable)DataGridView1.DataSource; dt.Columns.Add("newCol"); for ( int i = 0 ; i < dt.Rows.Count; i ++ ) {  dt.Rows[i][ " newCol " ] = int .Parse(dt.Rows[i][ 0 ]) + int .Parse(dt.Rows[i][ 1 ]);} DataGridView1.DataSour ...
     为了表示行号,我们可以在DataGridView的RowPostPaint事件中进行绘制。 RowPostPaint事件,具体可以参照MSDN。    private   void  dataGridView1_RowPostPaint( object  sender, DataGridViewRowPostPaintEventArgs e)         {             Rectangle rectangle  =   new  Rectangle(e.RowBounds.Location.X,                 e.R ...
QueryString传值: 1. 这是最简单的传值方式,但缺点是传的值会显示在浏览器的地址栏中且不能传递对象,只适用于传递简单的且安全性要求不高的整数值,例如: 2. 新建一个WEB项目,添加一个页面命名为Test1,在页面中添加一个Button命名为btnLogin,再添加两个TextBox分别命名为tbxUserName和tbxPassWord,添加Buttond的Click()事件: private void btnLogin_Click (object sender, System.EventArgs e) {     string url=" Test1.as ...
                            <asp:TemplateColumn ItemStyle-Width="80px">                             <ItemTemplate>                             <asp:LinkButton ID="btnDelete" runat="server" Text="删除" CommandName="Delete" OnClientClick= ...
@ ECHO 很多显卡在装了驱动之后,桌面右键会多出一项或多项菜单,这些功能并不实用, @ ECHO 还会拖慢右键的弹出速度,以Intel的集成显卡为甚。迟纯的反应速度严重地影响 @ ECHO 了使用者的心情。我们最好清除它。《GhostXP电脑公司特别版》作者编。 @ ECHO ----------------------------------------------------------------------- PAUSE regsvr32 /u /s igfxpph.dll reg delete HKEY_CLASSES_ROOT\Directory\Back ...
           DataTable  dt1 = new DataTable();                 dt1 = userpursecollection.DataTable; //获取的是一个表的数据             dt2.Columns.Add("amount");             dt2.Columns.Add("transferid");             dt2.Columns.Add("createtime");             foreach (DataRow ...
import java.awt.BorderLayout; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.InputEvent; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent ...
Global site tag (gtag.js) - Google Analytics