中间放一个picturebox无边框,处理他的拖动事件
解决方案 »
- 重大问题(救命)
- 点击TreeView1时让DataGrid1显示TreeView1对应的SQL语查询出的值.
- 如何用F1调用帮助文件?
- 如何修改win2000\xp\2003的ip地址?
- FSO获得硬盘分区下文件夹的问题。
- 在OneForm窗体模块中定义如下:Public FormatForm As Boolean在TowMain窗体模块中应该怎么用这个全局变量?如果是Public FormatForm As
- 怎么样取得一个表中的某个字段,存入vb的变量?
- 显示sql查询分析器消息栏”(5 行受影响)“这么显示?
- 鼠标指针问题,各位大侠帮帮忙~~
- VB6中连接oracle 数据库 怎么往指定的表中添加数据
- 我想得到一个SQL语句,这个SQL语句好难写出来,好烦心。请您指点指点!(分我不在乎)
- ADO与 带密码的Access2000连接问题
这是我的代码,你可以参考:
Private Sub Bar_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
sx = X
sy = Y
End If
End SubPrivate Sub Bar_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Bar.Top = 0
Bar.Move Bar.Left + X - sx
trv.Width = Bar.Left
lstv.Left = trv.Width + Bar.Width
lstv.Width = Me.ScaleWidth - trv.Width - Bar.Width
End If
End Sub
'说明:bar是一个LABEL
'lstv 是listview
'trv是treeview
Dim sy As Long
还要加上模块级的声明,储存鼠标的初始位置.