08 2010 档案

摘要:Private Function Byte2HexStr(bt() As Byte) As String Dim btLen As Integer Dim I As Integer Dim strDes As String btLen = UBound(bt) + 1 strDes = Space$(btLen * 2) For I = 0 To btLen - 1 Mid$(strDes, I + I + 1, 2) = Right$( "0 " & He... 阅读全文

posted @ 2010-08-10 10:51 严武 阅读(190) 评论(0) 推荐(0) |

摘要:label1.Text = "2004-1-1 15:36:05";label2.Text = "2004-3-1 20:16:35"; DateTime d1 =new DateTime(2004,1,1,15,36,05); DateTime d2 =new DateTime(2004,3,1,20,16,35); TimeSpan d3 = d2.Subtract(d1); label3.Text = "相差:" +d3.Days.ToString()+"天" +d3.Hours.ToString()+&qu 阅读全文

posted @ 2010-08-06 13:36 严武 阅读(216) 评论(0) 推荐(0) |

摘要:private void Form1_Load(object sender, EventArgs e) { this.tabControl1.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed; this.tabControl1.DrawItem += new DrawItemEventHandler(this.tabControl1_DrawItem); } private void tabControl1_DrawItem(object sender, System.Windows.Forms.DrawItemEventAr 阅读全文

posted @ 2010-08-03 15:35 严武 阅读(2863) 评论(0) 推荐(0) |

摘要:步骤:1.新建一个页面,假如说叫VerticalMenu2.把html代码copy到html代码区3.把LoadTopMenu方法copy到cs代码区4.运行即可-------------------------------------1.html代码<STYLE type="text/css"> A:link {}{ COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none} A:visited {}{ COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: non 阅读全文

posted @ 2010-08-03 11:28 严武 阅读(825) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3