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 Form1 
   AutoRedraw      =   -1  'True
   Caption         =   "Открыватель"
   ClientHeight    =   5970
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9000
   LinkTopic       =   "Form1"
   ScaleHeight     =   5970
   ScaleWidth      =   9000
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command3 
      Caption         =   "Шрифт"
      Height          =   375
      Left            =   5040
      TabIndex        =   3
      Top             =   5400
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Открыть"
      Height          =   495
      Left            =   6360
      TabIndex        =   2
      Top             =   5280
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Выход"
      Height          =   495
      Left            =   7800
      TabIndex        =   1
      Top             =   5280
      Width           =   1095
   End
   Begin RichTextLib.RichTextBox RichTextBox1 
      Height          =   4935
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   9015
      _ExtentX        =   15901
      _ExtentY        =   8705
      _Version        =   393217
      ReadOnly        =   -1  'True
      ScrollBars      =   3
      AutoVerbMenu    =   -1  'True
      TextRTF         =   $"Открыватель.frx":0000
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MSComDlg.CommonDialog Dlg1 
      Left            =   480
      Top             =   5160
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      DialogTitle     =   "Открыть файл"
      Flags           =   2
      FontBold        =   -1  'True
      FontItalic      =   -1  'True
      FontSize        =   10
      FontStrikeThru  =   -1  'True
      FontUnderLine   =   -1  'True
      Max             =   24
      Min             =   8
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
End
End Sub

Private Sub Command2_Click()
Dlg1.ShowOpen
 RichTextBox1.LoadFile Dlg1.FileName
 
End Sub

Private Sub Command3_Click()
Dlg1.ShowFont
RichTextBox1.Font.Name = Dlg1.FontName
RichTextBox1.Font.Bold = Dlg1.FontBold
RichTextBox1.Font.Italic = Dlg1.FontItalic
RichTextBox1.Font.Size = Dlg1.FontSize
RichTextBox1.Font.Underline = Dlg1.FontUnderline
RichTextBox1.Font.Strikethrough = Dlg1.FontStrikethru

End Sub

Private Sub Form_Resize()
If ScaleHeight > 1200 Then
RichTextBox1.Height = ScaleHeight - 1200
End If
RichTextBox1.Width = ScaleWidth - 120
Command1.Left = ScaleWidth - 1300
Command2.Left = ScaleWidth - 2600
Command1.Top = ScaleHeight - 700
Command2.Top = ScaleHeight - 700
Command3.Left = ScaleWidth - 3900
Command3.Top = ScaleHeight - 700

End Sub

Private Sub RichTextBox1_Change()

End Sub

Private Sub RichTextBox1_KeyDown(KeyCode As Integer, Shift As Integer)

End Sub
