RichTextBox BUG or feature? 
Author Message
 RichTextBox BUG or feature?

Sorry, I forgot to mention that this is with VB 4.0 pro

Quote:

> 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



Mon, 28 Feb 2000 03:00:00 GMT  
 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



Mon, 28 Feb 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. DoCmd.Close (Bug or Feature?)

2. ACCESS 95/97 BUG/FEATURE, CAN YOU HELP ?

3. Word MailMerge - a bug or a feature

4. bug or feature with expression columns

5. CType(), Bug or Feature??

6. Bug or Feature?

7. SQL Query Feature/Bug ?

8. Windows bug or feature?

9. Free online bug report / feature enhancement tracking

10. VB6 IDE Bug/Feature?

11. VB5 SP3 bug or feature?

12. VB5 Enterprise install Bug/Feature???

 

 
Powered by phpBB® Forum Software