Skip to content
Rolf Kristensen edited this page Jul 2, 2025 · 9 revisions

Logs text to Windows.Forms.Control.Text property control of specified Name.

Platforms Supported: All - Requires nuget-package NLog.Windows.Forms

Configuration Syntax

<targets>
  <target xsi:type="FormControl"
          name="String"
          layout="Layout"
          append="Boolean"
          reverseOrder="Boolean"
          controlName="String"
          formName="String" />
</targets>

Read more about using the Configuration File.

Parameters

General Options

  • name - Name of the target.

Layout Options

  • layout - Layout used to format log messages. Layout Required. Default: ${longdate}|${level:uppercase=true}|${logger}|${message:withexception=true}

Form Options

  • append - Indicates whether log text should be appended to the text of the control instead of overwriting it. Boolean Default: True

  • reverseOrder - Indicates whether log text should be appended or prepended. Boolean Default: False

  • controlName - Name of control to which NLog will log write log text. Required.

  • formName - Name of the Form on which the control is located.

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy