Below is my NLog configuration, I want to load log into existing RichTextBox called rtMessage in Form1, but NLog will create a new windows with log message loaded into the R
Here are three tips to help you load log in existing RichTextBox.
allowAccessoryFormCreation="False" in NLog.configRichTextBoxTarget.ReInitializeAllTextboxes(this); in Form_LoadPS:Follow this way, you neeed to config your RichTextBoxTarget in NLog.config, please refer RictTextBoxTarget.