Fixed: title not updating

This commit is contained in:
Ray 2020-09-05 02:21:15 +01:00
parent cb39305541
commit 69cd0f6376
1 changed files with 14 additions and 0 deletions

View File

@ -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)