RichTextBox

I just would like to know if I have a ContextmenuStrip in a frame and I click the menu I would like to populate some text to a RichTextBox. Can someone which method would I use or is there any way of doing this via a event

Thanks



Answer this question

RichTextBox

  • computerbill

    Thanks..
  • KevinRansom

    Hi,
    add an item to your ContextMenuStrip and double click on it (in the designer) to create an onclick event for the item. To populate the RichTextBox you have several ways of doing it, for example, you have the property Text that sets all the text and the method AppendText that adds some text to the component. There are still some other ways but these do what you want.

    richTextBox.Text = "Hello";
    richTextBox.AppendText("Testing 123");


  • RichTextBox