✅ WinForms - Parameter is not valid?
for whatever reason, my custom control 'SimonButton' breaks in the OnPaint method
13 Replies
Note sure if it will solve the error you're seeing, but from the docs:
Notes to Inheritors
When overriding OnPaint(PaintEventArgs) in a derived class, be sure to call the base class's OnPaint(PaintEventArgs) method so that registered delegates receive the event.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
i verified the validity of the actual path
it is correct and does lead to a file
and i am aware that is what he means so i will try it
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
wow
it worked
epic
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
i used a debugger
i verified the validity of the statement
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
and the error message wasnt real to me at all 💀
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
no line or indication that i should call base
but its solved now