treeview - C# Cursor/ Caret Not display when Append text in Richtextbox -
I am new to programming, I am applying C # windows form, if you select tree node, Adds: Qs1: The carrot node for me has not been displayed after selecting. Q2: Create a display-like display, where the word beginning with // should be green (comment). Thanks if (treeView1.SelectedNode.Name == "node1") {this.richtextbox1. Selected text + = "My text for node 1" + Environment New Rich Textbox 1 Focus (); } And if (tree view 1. select node .name == "node 2") {this.richtextbox1.SelectedText + = "my text for node 2" + environment New Rich Textbox 1 Focus (); } You are asking two questions related to RichTextBox . The preferred form on stack overflow is that you will probably get more responses with more focused questions. It is being said: According to the documentation for the law: So you need to do this first. In addition, as a general rule, you should never modify the already existing or + = , because it will use any...