From 69cd0f6376188f308ca6566cb3ad3f0da75b0211 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 5 Sep 2020 02:21:15 +0100 Subject: [PATCH] Fixed: title not updating --- RyzStudio/Windows/Forms/ThreadControl.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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)