我的文本框有问题。我正在尝试制作一个像备忘录这样的小程序。当您在文本框中写入内容时,它会保存它以供下次再次打开它。但问题是当您再次打开程序时,旧文本会突出显示。那么我如何删除它呢?
Public Class Form1
Private Sub
Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
My.Settings.memo = TextBox1.Text My.Settings.Save()
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
TextBox1.Text = My.Settings.memo + Environment.NewLine
End Sub
End Class