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: 6.0.2+01ddbab0988c46f3d07855baad19b639e7f74ec1
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