vb
文章平均质量分 51
a97191
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
随机产生不同的数
Dim bStop As Boolean Dim n(1 To 370), i, j, q Private Sub Command1_Click() Command1.Visible = False Randomize Timer While j q = Int(Rnd(1) * 369 + 1) Label1.Capt原创 2006-04-14 15:09:00 · 764 阅读 · 0 评论 -
取得右边文件名
With CommonDialog1 .ShowOpen If .FileName Text1.Text = Right(.FileName, InStrRev(.FileName, "/")end ifEnd With原创 2006-04-22 11:50:00 · 589 阅读 · 0 评论 -
实现超级连接
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory原创 2006-04-18 11:18:00 · 658 阅读 · 0 评论 -
调用水晶报表
推荐vb6中如何调用水晶报表9做的报表引用ado及crystal report9 activex designer design time library(internal) 使用控件 crystal report viewer contral priver sub form_load() dim strsql as string Dim i As Integer dim capp As New原创 2006-04-18 11:20:00 · 914 阅读 · 0 评论 -
vb实现透明窗体
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As LongPrivate Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA"原创 2006-04-18 17:48:00 · 1221 阅读 · 0 评论 -
在数据库中添加图片
添加两个按钮,一个image控件注意:Access中的photo字段类型为OLE对象.SqlServer中的photo字段类型为Image** 引用 Microsoft ActiveX Data Objects 2.5 Library 及以上版本‘2.5版本以下不支持Stream对象Dim iConcstr As StringDim iConc As ADODB.Connection原创 2006-04-18 11:16:00 · 3183 阅读 · 0 评论 -
用PING示例
模块代码:Public MyIP As StringPrivate Const IP_SUCCESS As Long = 0Private Const IP_STATUS_BASE As Long = 11000Private Const IP_BUF_TOO_SMALL As Long = (11000 + 1)Private Const IP_DEST_NET_UNREACHABLE A原创 2006-04-25 09:14:00 · 853 阅读 · 0 评论 -
选中text字段
Option ExplicitPrivate Const EM_SETSEL = &HB1Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As原创 2006-05-25 17:54:00 · 685 阅读 · 0 评论
分享