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

📄 frmmain.frm

📁 用vb写的一个小程序。希望喜欢。 LHBSEAMAN·163。COM
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form frmMain 
   Caption         =   "WebCoder"
   ClientHeight    =   6705
   ClientLeft      =   2940
   ClientTop       =   2415
   ClientWidth     =   9045
   Icon            =   "frmMain.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   6705
   ScaleWidth      =   9045
   Begin RichTextLib.RichTextBox Text1 
      Height          =   4335
      Left            =   120
      TabIndex        =   5
      Top             =   480
      Width           =   6015
      _ExtentX        =   10610
      _ExtentY        =   7646
      _Version        =   393217
      Enabled         =   -1  'True
      ScrollBars      =   3
      TextRTF         =   $"frmMain.frx":030A
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Courier New"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.CommandButton Command1 
      Caption         =   "About"
      Height          =   375
      Index           =   3
      Left            =   7440
      TabIndex        =   4
      Top             =   0
      Width           =   1575
   End
   Begin VB.ComboBox Combo1 
      Height          =   315
      ItemData        =   "frmMain.frx":03ED
      Left            =   5160
      List            =   "frmMain.frx":0403
      Sorted          =   -1  'True
      TabIndex        =   3
      Text            =   "HTML"
      Top             =   0
      Width           =   2175
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Decode"
      Height          =   375
      Index           =   2
      Left            =   3360
      TabIndex        =   2
      Top             =   0
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Encode"
      Height          =   375
      Index           =   1
      Left            =   1680
      TabIndex        =   1
      Top             =   0
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Load File"
      Height          =   375
      Index           =   0
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   1575
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   3600
      Top             =   1920
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Compare Binary
Option Explicit
Private strAbout        As String

Private Sub Command1_Click(Index As Integer)
  On Error GoTo tagErr
  Select Case Index
    Case 0
      CommonDialog1.ShowOpen
      Text1.Text = fcnGetFile(CommonDialog1.FileName)
    Case 1
      Me.MousePointer = vbHourglass
      Text1.Text = fcnEncode(Combo1.Text, Text1.Text)
      Me.MousePointer = vbArrow
    Case 2
      Me.MousePointer = vbHourglass
      Text1.Text = fcnDecode(Combo1.Text, Text1.Text)
      Me.MousePointer = vbArrow
    Case 3
      MsgBox strAbout, vbInformation, APPTITLE
  End Select

tagExit:
  Exit Sub

tagErr:
  MsgBox "Something went wrong." & vbNewLine & Err.Description, vbOKOnly, APPTITLE
  Resume tagExit
End Sub

Private Sub Form_Load()
  subInitDB
  subRefreshDB
  strAbout = Replace("WebCoder: ENCODES and DECODES text data.**<< Send your comments >>**This project includes:*- Database creation from code.*- Native CSV loading.*- String / Array replace.*- Large file handling.*- Editable (en)coding table.*- Absolutely NO error handling. :-(**To change the Encoding / Decoding,*simply edit the .MDB file in the apllication folder.*You will need to change the combobox list value* to show new coding types.**NOTE: Althought the functions I wrote to read the table*will try to avoid coding / decoding conflicts,*you may need to create a decoding type _and_ an* encoding type.**Support for unicode ISO (long ISO hex) is planned.**<< BAMBI@CRACKDEALER.COM >>", "*", vbNewLine)
  Text1.Text = strAbout
  Text1.RightMargin = 65535
End Sub

Private Sub Form_Resize()
  With Text1
    .Left = 0
    .Top = Command1(0).Top + Command1(0).Height
    .Width = Me.ScaleWidth
    .Height = Me.ScaleHeight - .Top
  End With
End Sub

⌨️ 快捷键说明

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