Fix System.InvalidOperationException: Cross-thread operation not valid: Control 'volumeBar' accessed from a thread other than the thread it was created on. in User32.SendMessageW (IHandle hWnd, WM Msg, IntPtr wParam, IntPtr lParam) #5
SilverAudioPlayer.Form1.MusicStatusInterface_GetVolume() in D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.Winforms\Form1.cs:line 59;SilverAudioPlayer
System.InvalidOperationException: Cross-thread operation not valid: Control 'volumeBar' accessed from a thread other than the thread it was created on.
Version 1.0.0.2(1.0.0.2)
Stacktrace
Interop.User32.SendMessageW(IHandle hWnd, WM Msg, IntPtr wParam, IntPtr lParam);Interop
SilverAudioPlayer.Form1.MusicStatusInterface_GetVolume() in D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.Winforms\Form1.cs:line 59;SilverAudioPlayer
SilverAudioPlayer.CAD.CADMusicStatusInterface.CallbackMsgs(IntPtr wHwnd, Int32 wMsg, IntPtr wParam, IntPtr lParam) in D:\Users\USER\source\repos\SilverAudioPlayer\SilverAudioPlayer.CAD\Class1.cs:line 239;SilverAudioPlayer.CAD
Reason
System.InvalidOperationException: Cross-thread operation not valid: Control 'volumeBar' accessed from a thread other than the thread it was created on.
Link to App Center