⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.frm

📁 模仿qq的自动隐藏功能 方便实用 短小精悍 可以
💻 FRM
字号:
VERSION 5.00
Object = "{FA28509C-AAF0-4227-AF72-CC50D19ACDF2}#1.0#0"; "TaskForm.ocx"
Begin VB.Form Form1 
   Caption         =   "Play78.com"
   ClientHeight    =   5850
   ClientLeft      =   -6135
   ClientTop       =   -4455
   ClientWidth     =   1890
   Icon            =   "test.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5850
   ScaleWidth      =   1890
   StartUpPosition =   1  '所有者中心
   Begin taskform.TaskBar TaskBar1 
      Left            =   360
      Top             =   3120
      _ExtentX        =   873
      _ExtentY        =   873
   End
   Begin VB.TextBox Text1 
      Height          =   315
      Left            =   120
      TabIndex        =   0
      Text            =   "500"
      Top             =   2520
      Width           =   765
   End
   Begin VB.CommandButton Command6 
      Caption         =   "设置"
      Height          =   345
      Left            =   960
      TabIndex        =   5
      Top             =   2520
      Width           =   765
   End
   Begin VB.CommandButton Command5 
      Caption         =   "禁止隐藏到右边"
      Height          =   465
      Left            =   60
      TabIndex        =   4
      Top             =   1140
      Width           =   1725
   End
   Begin VB.CommandButton Command4 
      Caption         =   "禁止隐藏到左边"
      Height          =   465
      Left            =   60
      TabIndex        =   3
      Top             =   630
      Width           =   1725
   End
   Begin VB.CommandButton Command3 
      Caption         =   "禁止隐藏到顶部"
      Height          =   495
      Left            =   60
      TabIndex        =   2
      Top             =   90
      Width           =   1725
   End
   Begin VB.CommandButton Command1 
      Caption         =   "取消窗体显示最前"
      Height          =   465
      Left            =   60
      TabIndex        =   1
      Top             =   1650
      Width           =   1725
   End
   Begin VB.Label Label2 
      Caption         =   "类似于qq的可以隐藏到屏幕四周围的控件,海阔天空开发,更多信息请查询:http://www.play78.com 原码下载。专门提供原码给大家共享"
      Height          =   1605
      Left            =   0
      TabIndex        =   7
      Top             =   4140
      Width           =   1875
   End
   Begin VB.Label Label1 
      Caption         =   "每毫秒移动的长度"
      Height          =   255
      Left            =   90
      TabIndex        =   6
      Top             =   2190
      Width           =   1485
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

' **********************************************************************
'  描  述:vb 实现qq的可以拖隐藏到屏幕四边的效果的控件
'  Play78.com : 网站导航,源码之家,绝对开源
'  海阔天空编写,有问题请上www.paly78.com 提
'  网址:http://www.play78.com/
'  QQ:13355575
'  e-mail:hglai@eyou.com
'  开发时间:2005-7-3
' **********************************************************************

Private Sub Command1_Click()
If Command1.Caption = "窗体显示在最前" Then
TaskBar1.OnTop = True: Command1.Caption = "取消窗体显示最前"
Else
TaskBar1.OnTop = False: Command1.Caption = "窗体显示在最前"
End If
End Sub


Private Sub Command3_Click()
If Command3.Caption = "允许隐藏到顶部" Then
TaskBar1.GoTop = True: Command3.Caption = "禁止隐藏到顶部"
Else
TaskBar1.GoTop = False: Command3.Caption = "允许隐藏到顶部"
End If
End Sub

Private Sub Command4_Click()
If Command4.Caption = "允许隐藏到左边" Then
TaskBar1.GoLeft = True: Command4.Caption = "禁止隐藏到左边"
Else
TaskBar1.GoLeft = False: Command4.Caption = "允许隐藏到左边"
End If
End Sub

Private Sub Command5_Click()
If Command5.Caption = "允许隐藏到右边" Then
TaskBar1.GoRight = True: Command5.Caption = "禁止隐藏到右边"
Else
TaskBar1.GoRight = False: Command5.Caption = "允许隐藏到右边"
End If
End Sub

Private Sub Command6_Click()
If Text1.Text = "" Then MsgBox "速度不能为空": Exit Sub
If Text1.Text <= 0 Or Not IsNumeric(Text1.Text) Then MsgBox "速度要为大于0的数字": Exit Sub
TaskBar1.MoveLength = Text1.Text
End Sub

Private Sub Form_Load()
'TaskBar1.setform Me
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -