bluebutton.vb
来自「《ViSUAL BASIC》设计模式」· VB 代码 · 共 23 行
VB
23 行
Imports System
Imports System.ComponentModel
Imports System.Drawing
Imports System.WinForms
Public Class BlueButton
Inherits Button
Implements CommandHolder
private cmd as Command
public Sub New(txt as String, comd as Command)
MyBase.New()
Me.text = txt
cmd = comd
End Sub
public Function getCommand() as Command Implements CommandHolder.getCommand
return cmd
End Function
End Class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?