Krypton-Suite / Standard-Toolkit

An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET 8 - 9
BSD 3-Clause "New" or "Revised" License
420 stars 63 forks source link

[Bug]: `ThemeManager` needs to be CrossThread aware #213

Open Smurf-IV opened 3 years ago

Smurf-IV commented 3 years ago

image

Smurf-IV commented 3 years ago

An Exception is also thrown when a dialog is created on a different thread than the original application, and a designer has a KryptonManager assignment which is very hard to catch.

Smurf-IV commented 3 years ago

doing the following does not solve it because it sends a message to the other forms that are on other threads

        private void cmbThemeSelect_SelectedIndexChanged(object sender, EventArgs e)
        {
            void Me() => ThemeManager.SetTheme(cmbThemeSelect.Text, kryptonManager1);
            if (Created)
            {
                BeginInvoke((MethodInvoker)Me);
            }
        }
giduac commented 5 months ago

@Wagnerp,

Please assign to me. Thank you.

PWagner1 commented 5 months ago

@giduac Done

giduac commented 5 months ago

Hi @Wagnerp ,

This can be moved to V100, ty..