Bloc de Notas
Bloc de Notas
Bloc de Notas
Nuevo
documento.clear( )
Guardar como
Try
myStreamwriter = System.IO.File.AppendText(save.FileName)
myStreamwriter.Write(documento.Text)
myStreamwriter.Flush()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Nuevo
Salir
Me.close
Atrás
documento.Undo()
Adelante
documento.redo( )
Copiar
documento.Copy( )
Pegar
documento.paste( )
Cortar
documento.cut( )
Seleccionar todo
documento.SelectAll( )
Borrar
documento.Clear( )
Fuente
Color de fuente
Try
Dim dlg As New ColorDialog
dlg.Color = documento.ForeColor
If dlg.ShowDialog = System.Windows.Forms.DialogResult.OK Then
documento.ForeColor = dlg.Color
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Color de fondo
Try
Dim dlg As New ColorDialog
dlg.Color = documento.BackColor
If dlg.ShowDialog = System.Windows.Forms.DialogResult.OK Then
documento.BackColor = dlg.Color
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try