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

📄 frmtest.frm

📁 VB编写的实现多线程的代码,非常的稳定
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form frmTest 
   BorderStyle     =   1  'Fest Einfach
   Caption         =   "Multithreading Example"
   ClientHeight    =   7080
   ClientLeft      =   3300
   ClientTop       =   2160
   ClientWidth     =   8175
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   7080
   ScaleWidth      =   8175
   StartUpPosition =   2  'Bildschirmmitte
   Begin VB.Frame frOutput 
      Caption         =   "Output thread 2 :"
      Height          =   3015
      Index           =   1
      Left            =   4200
      TabIndex        =   23
      Top             =   3960
      Width           =   3855
      Begin VB.PictureBox picOutput 
         Height          =   1695
         Index           =   1
         Left            =   120
         ScaleHeight     =   1635
         ScaleWidth      =   3555
         TabIndex        =   25
         Top             =   1200
         Width           =   3615
         Begin VB.PictureBox picDisplay 
            BorderStyle     =   0  'Kein
            Height          =   615
            Left            =   1440
            ScaleHeight     =   615
            ScaleWidth      =   615
            TabIndex        =   28
            Top             =   600
            Width           =   615
         End
      End
      Begin VB.Label lblOutput 
         Caption         =   $"frmTest.frx":0000
         Height          =   855
         Index           =   1
         Left            =   120
         TabIndex        =   27
         Top             =   360
         Width           =   3615
      End
   End
   Begin VB.Frame frOutput 
      Caption         =   "Output thread 1 :"
      Height          =   3015
      Index           =   0
      Left            =   120
      TabIndex        =   22
      Top             =   3960
      Width           =   3855
      Begin VB.PictureBox picOutput 
         Height          =   1695
         Index           =   0
         Left            =   120
         ScaleHeight     =   1635
         ScaleWidth      =   3555
         TabIndex        =   24
         Top             =   1200
         Width           =   3615
      End
      Begin VB.Label lblOutput 
         Caption         =   $"frmTest.frx":00B2
         Height          =   855
         Index           =   0
         Left            =   120
         TabIndex        =   26
         Top             =   360
         Width           =   3615
      End
   End
   Begin VB.CommandButton cmdStartThread 
      Caption         =   "Start thread 2"
      Height          =   375
      Index           =   1
      Left            =   6000
      TabIndex        =   21
      Top             =   2160
      Width           =   2055
   End
   Begin VB.CommandButton cmdTerminateThread 
      Caption         =   "Terminate thread 2"
      Height          =   375
      Index           =   1
      Left            =   6000
      TabIndex        =   20
      Top             =   3120
      Width           =   2055
   End
   Begin VB.CommandButton cmdSetProperties 
      Caption         =   "Set properties thread 2"
      Height          =   375
      Index           =   1
      Left            =   6000
      TabIndex        =   19
      Top             =   2640
      Width           =   2055
   End
   Begin VB.CommandButton cmdSetProperties 
      Caption         =   "Set properties thread 1"
      Height          =   375
      Index           =   0
      Left            =   6000
      TabIndex        =   2
      Top             =   720
      Width           =   2055
   End
   Begin VB.CommandButton cmdTerminateThread 
      Caption         =   "Terminate thread 1"
      Height          =   375
      Index           =   0
      Left            =   6000
      TabIndex        =   3
      Top             =   1200
      Width           =   2055
   End
   Begin VB.CommandButton cmdStartThread 
      Caption         =   "Start thread 1"
      Height          =   375
      Index           =   0
      Left            =   6000
      TabIndex        =   1
      Top             =   240
      Width           =   2055
   End
   Begin VB.Frame frThreadControl 
      Caption         =   "Thread 2 :"
      Height          =   1815
      Index           =   1
      Left            =   120
      TabIndex        =   11
      Top             =   2040
      Width           =   5775
      Begin VB.ComboBox cmbThreadPriority 
         Height          =   315
         Index           =   1
         ItemData        =   "frmTest.frx":0179
         Left            =   120
         List            =   "frmTest.frx":018C
         Style           =   2  'Dropdown-Liste
         TabIndex        =   13
         Top             =   600
         Width           =   2655
      End
      Begin VB.CheckBox chkEnabled 
         Caption         =   "Enabled"
         Height          =   255
         Index           =   1
         Left            =   3000
         TabIndex        =   12
         Top             =   600
         Value           =   1  'Aktiviert
         Width           =   2655
      End
      Begin VB.Label lblTID 
         Caption         =   "Thread ID :"
         Height          =   255
         Index           =   1
         Left            =   3000
         TabIndex        =   18
         Top             =   1080
         Width           =   2655
      End
      Begin VB.Label lblTH 
         Caption         =   "Thread handle :"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   17
         Top             =   1080
         Width           =   2655
      End
      Begin VB.Label lblPriority 
         Caption         =   "Thread priority :"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   16
         Top             =   360
         Width           =   2655
      End
      Begin VB.Label lblThreadHandle 
         Caption         =   "Start thread to see thread handle"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   15
         Top             =   1440
         Width           =   2655
      End
      Begin VB.Label lblThreadID 
         Caption         =   "Start thread to see thread ID"
         Height          =   255
         Index           =   1
         Left            =   3000
         TabIndex        =   14
         Top             =   1440
         Width           =   2655
      End
   End
   Begin VB.Frame frThreadControl 
      Caption         =   "Thread 1 :"
      Height          =   1815
      Index           =   0
      Left            =   120
      TabIndex        =   5
      Top             =   120
      Width           =   5775
      Begin VB.CheckBox chkEnabled 
         Caption         =   "Enabled"
         Height          =   255
         Index           =   0
         Left            =   3000
         TabIndex        =   4
         Top             =   600
         Value           =   1  'Aktiviert
         Width           =   2655
      End
      Begin VB.ComboBox cmbThreadPriority 
         Height          =   315
         Index           =   0
         ItemData        =   "frmTest.frx":01C5
         Left            =   120
         List            =   "frmTest.frx":01D8
         Style           =   2  'Dropdown-Liste
         TabIndex        =   0
         Top             =   600
         Width           =   2655
      End
      Begin VB.Label lblThreadID 

⌨️ 快捷键说明

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