
RichTextBox BUG or feature?
Hello,
On a form I drop a CommandButton and a RichTextBox. When I click the
button this code executes:
Private Sub Command1_Click()
RichTextBox1.Text = "Hello world!"
End Sub
If I type something in the RichTextBox and then click the button, the
text changes to "Hello world!". Fine. Now, If I type something else in
the RichTextBox and then click the button, the text remains unchanged.
If I want to see, and I want to see, "Hello world!" I must put two
assignments. So, something like this will do the job:
Private Sub Command1_Click()
RichTextBox1.Text = "Hello world!"
End Sub
Why? Is this a feature or a BUG?
Jacques