diff --git a/RyzStudio/Windows/Forms/ThreadControl.cs b/RyzStudio/Windows/Forms/ThreadControl.cs index c7ef544..7c92cb8 100644 --- a/RyzStudio/Windows/Forms/ThreadControl.cs +++ b/RyzStudio/Windows/Forms/ThreadControl.cs @@ -508,6 +508,20 @@ namespace RyzStudio.Windows.Forms } } + public static void SetText(ThemedForms.TextBox control, string text) + { + if (control.InvokeRequired) + { + control.Invoke(new MethodInvoker(() => { + control.InnerTextBox.Text = text; + })); + } + else + { + control.InnerTextBox.Text = text; + } + } + public static void SetTopMost(Form control, bool value) { if (control.InvokeRequired)