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

📄 module1.bas

📁 很多的vb经典源代码
💻 BAS
字号:
Attribute VB_Name = "Module1"
Option Explicit
Public color As Integer


Public Sub ShowNum(source As PictureBox, Target As PictureBox, Digit As Integer, color As Integer, position As Integer)
    If position <> 3 Or position < 6 Then
      Target.PaintPicture source.Picture, (position - 1) * 13 + 4, 4, 13, 23, 13 * (Digit), 23 * (color - 1), 13, 23, vbSrcCopy
    '  Target.Refresh
    End If
    '注释:由于在图形数字中排列第一位的是数字0,故此处不再减1
End Sub

Public Sub ShowMaoHao(source As PictureBox, Target As PictureBox, color As Integer)
    Target.PaintPicture source.Picture, (3 - 1) * 13 + 4, 4, 13, 23, 0, 23 * (color - 1), 13, 23, vbSrcCopy
    Target.PaintPicture source.Picture, (6 - 1) * 13 + 4, 4, 13, 23, 0, 23 * (color - 1), 13, 23, vbSrcCopy
End Sub

⌨️ 快捷键说明

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