Save.Filter = "Text (*.txt)|*.txt|HTML(*.html*)|*.html|PHP(* .php*)|*.php*|All files(*.*)|*.*"
End Try
Codigo Button "Abrir"
Dim Open As New OpenFileDialog()
Dim myStreamReader As System.IO.StreamReader
Open.Filter = "Text [*.txt*]|*.txt|All Files [*,*]|*,*"
Open.CheckFileExists = True
Open.Title = "Abrir Archivo"
Open.ShowDialog(Me)
Try
Open.OpenFile()
myStreamReader = System.IO.File.OpenText(Open.FileName)
RichTextBox1.Text = myStreamReader.ReadToEnd()
Catch ex As Exception
End Try
Codigo Button "Salir"
End
Codigo button "Fuene de texto"
Try
Dim dlg As FontDialog = New FontDialog
dlg.Font = document.font
If dlg.showdialog = System.Windows.Forms.DialogResult.OK Then
document.Font = dlg.Font
End If
Catch ex As Exception: End Try
Color de fuente:
Try
Dim dlg As ColorDialog = New ColorDialog
dlg.Color = document.Forecolor
If dlg.ShowDialog = System.Windows.Forms.DialogResult.Ok Then
document.Forecolor = dlg.Color
End If
Catch ex As Exception
End Try
Codigo "Color de fondo":
Try
Dim dlg As ColorDialog = New ColorDialog
dlg.Color = document.BackColor
If dlg.ShowDialog = System.Windows.Forms.DialogResult.OK Then
document.BackColor = dlg.Color
End If
Catch ex As Exception
End Try