- 博客(7)
- 资源 (9)
- 收藏
- 关注

原创 dictionary-字典用法 VB.net 2005
Dim stateCaps As New Dictionary(Of String, String) ' Add items to the dictionary stateCaps.Add("WA", "Olympia") stateCaps.Add("NM", "Santa Fe") Trace.WriteLine(stateCaps.Item("WA")) 'True Trace.WriteLine(statecaps.Conta
2010-08-01 09:06:00
5573
原创 查找记录行 vb.net 2003
<br />Public Sub useDataAdapterWithSqlCmd1()<br /> Dim KHZLView As New DataView<br /> Try<br /> Dim MyCmd As SqlCommand = New SqlCommand("select * from khda", Conn)<br /> <br /> With MyCmd<br /> '.Parameters.Ad
2010-08-01 09:28:00
561
原创 测量运行时间 vb.net 2005
<br />Imports System.Diagnostics<br /> Dim stopW As Stopwatch = New Stopwatch<br /> stopW.Reset()<br /><br /> stopW.Start()<br /> For i As Integer = 0 To 100000<br /> i += 1<br /> Next<br /> stopW.Stop()
2010-08-01 09:22:00
706
原创 遍历控件 vb.net 2005
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Cont As Control Dim i as integer txtbox1.Text = "txt1" txtbox2.Text = "txt2" 'Controls(0).Text = "Hello" Co
2010-08-01 09:20:00
778
原创 指定小数位转换 vb.net 2005
dim D as decimal=123.456789‘将小数转换成2位小数的字符串,小数点后保持2位cstr(decimal.Round(d,3))cstr(decimal.Round(1233.455d,2)) Dim a As String = FormatNumber(1230.4549994, 2, TriState.True, TriState.True, TriState.False)1,230.451230.45Format(douNum, ".00")Dim i As Integer =
2010-08-01 09:13:00
1070
原创 Remoting用法(2)
Remoting提供客户端与主机的高速通讯,实战:VB.Net 2005(二) 上面类库中三个类建好后, 在类库文件AssemblyInfo.vb中加入以下代码: #Region " Helper Class to Get Information for the debug methods of each class. "Public Class Assembly
2009-11-07 23:45:00
587
photo 924 printer driver for win7(5)
2011-04-16
photo 924 printer driver for win7(4)
2011-04-16
photo 924 printer driver for win7(3)
2011-04-16
photo 924 printer driver for win7(2)
2011-04-16
photo 924 printer driver for win7(1)
2011-04-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人