Click or drag to resize

RichTextBoxTargetReInitializeAllTextboxes Method (Form, LoggingConfiguration)

Attempts to attach existing targets that have yet no textboxes to controls that exist on specified form if appropriate

Namespace:  NLog.Windows.Forms
Assembly:  NLog.Windows.Forms (in NLog.Windows.Forms.dll) Version: 5.2.3+a6f5d4397ec11371a92ffd5b29f2da9844f01c95
Syntax
public static void ReInitializeAllTextboxes(
	Form form,
	LoggingConfiguration configuration
)

Parameters

form
Type: System.Windows.FormsForm
a Form to check for RichTextBoxes
configuration
Type: NLog.ConfigLoggingConfiguration
NLog's configuration. null is not allowed
Remarks
Setting AllowAccessoryFormCreation to true (default) actually causes target to always have a text box (after having InitializeTarget called), so such targets are not affected by this method.
See Also