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

📄 frmsaveas.frm

📁 一个完整的HTML编辑器
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSaveAs 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "Save As ..."
   ClientHeight    =   3465
   ClientLeft      =   45
   ClientTop       =   285
   ClientWidth     =   5910
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3465
   ScaleWidth      =   5910
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.ComboBox Co 
      Height          =   315
      Left            =   3120
      TabIndex        =   7
      Text            =   "HTML Files (*.html)"
      Top             =   2040
      Width           =   2655
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "Cancel"
      Height          =   375
      Left            =   4320
      TabIndex        =   6
      Top             =   3000
      Width           =   1455
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "OK"
      Height          =   375
      Left            =   2520
      TabIndex        =   5
      Top             =   3000
      Width           =   1455
   End
   Begin VB.TextBox txtSaveAS 
      Height          =   285
      Left            =   960
      TabIndex        =   3
      Top             =   2520
      Width           =   4815
   End
   Begin VB.DriveListBox drvDrive 
      Height          =   315
      Left            =   120
      TabIndex        =   2
      Top             =   120
      Width           =   2895
   End
   Begin VB.DirListBox DirDirectory 
      Height          =   1890
      Left            =   120
      TabIndex        =   1
      Top             =   480
      Width           =   2895
   End
   Begin VB.FileListBox filFileName 
      Height          =   1845
      Left            =   3120
      MultiSelect     =   2  'Extended
      TabIndex        =   0
      Top             =   120
      Width           =   2655
   End
   Begin VB.Label Label1 
      Caption         =   "Save As:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      TabIndex        =   4
      Top             =   2535
      Width           =   1335
   End
End
Attribute VB_Name = "frmSaveAs"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'########################################################################### '
'
' Casper HTML Editor,
' I have developed this just for fun and I of course used some
' of the codes out there. As far as I know you may use the code
' under GPL (General Public Licence), what you do with my code,
' the one I wrote is up to you. Funny think is you'll never know what
' is mine own code -:)
'
' Well anyway, I appreciate your time and if you have any suggestion on
' how to improve the editor, please contact me at : Vpekulas@Home.com
'
' Why Casper ? Casper Semiramis III was my dog (boxer).
'
' PS:
' I'll work on it some more, specialy on Syntax coloring (It's so damn slow!)
' and then on the snippets & Java library.
'
'########################################################################### '


Private Sub cmdCancel_Click()
Unload frmSaveAs
End Sub

Private Sub cmdOK_Click()
If txtSaveAS.Text = "" Then
MsgBox ("Please Enter The Name of The File")
Exit Sub
End If


'#################
'# Save The File #
'#################
Dim strFilename As String
Dim intFile As Integer
intFile = FreeFile
If Right(DirDirectory.Path, 1) = "\" Then
strFilename = filFileName.Path & txtSaveAS.Text
Else
strFilename = filFileName.Path & "\" & txtSaveAS.Text
End If
Open strFilename For Output As #intFile
Print #intFile, frmDocument.rtfText.Text
Close #intFile
Unload frmSaveAs
End Sub

Private Sub DirDirectory_Change()
On Error Resume Next
filFileName.Path = DirDirectory.Path
End Sub

Private Sub drvDrive_Change()
On Error Resume Next
DirDirectory.Path = drvDrive.Drive
End Sub

Private Sub filFileName_dblClick()
txtSaveAS.Text = filFileName
End Sub

Private Sub Form_Load()
Co.AddItem "HTML File  (*.html)"
Co.AddItem "HTM  File  (*.htm )"
Co.AddItem "All  Files (*.*   )"

End Sub

⌨️ 快捷键说明

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