Open Simonaalina25 opened 2 years ago
What programming language/editor do you use? This happens in designer? Did you tried invalidate controls? All radio buttons must be in a container, so invalidate container after you change radio button selection.
@valimaties I'm sorry for the late response I'm creating an IDE in Visual Studio Community 2019 using C#. I tried to assign the check again in the Constructor and to refresh the whole form after initializing it (both with Refresh() and with Invalidate() ) and it's the same behaviour. The radio buttons are all in a MaterialCard, which I kept using throughout the whole application instead of the System.Windows.Form.Panel, so that means they are grouped.
I encountered a problem with some new forms. The radio buttons are not selected according to my selection in Constructor and pressing the buttons on the form (Ok/Cancel) is unresponsive until I move the form. If I tried to move it with a timer, meaning that every second the form changes it's location, but that doesn't work either until I move manually the form.
https://user-images.githubusercontent.com/25986589/138836834-552c53db-93a8-475c-946d-b424193e8cf6.mp4
If I click on Ok button before moving the form it won't do nothing, but if right after I move it, the form closes, meaning it took the OnClickEvent from the button.
If you need more information I'll happily provide it to the best of my abilities.