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.4+61769f974f2d827eeb9ad49a6ae7d02f62cfdccc
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