NLog control to an existing RichTextBox Windows Form

后端 未结 5 962
醉梦人生
醉梦人生 2021-01-13 01:21

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

5条回答
  •  执念已碎
    2021-01-13 01:46

    https://github.com/NLog/NLog.Windows.Forms/wiki/RichTextBoxTarget

    I have the similar problems to nlog into the windows.form. I used the NLog.Windows.Forms from the Nugget with the Nlog, and Nlog.config. I follow that given templatefrom the link and make it work without any manual initialisation. I provide part of the code into the Nlog.config. Hope it helps.

    
    
    
    
    

提交回复
热议问题