Krypton-Suite / Standard-Toolkit

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

It is still not possible to create a KryptonStatusStrip on a form at design time. #35

Closed DavidWaite1962 closed 3 years ago

DavidWaite1962 commented 3 years ago

This happens within build .550.2011

Drag and drop a KryptonStatusStrip control onto a form or usercontrol

SystemNullReferenceException is returned within the OnRendererChanged event at System.Windows.Forms.Toolstrip.set_Renderer(ToolStripRenderer value)

A quick look at the source code for this control looks like it should be easy to identify & fix

PWagner1 commented 3 years ago

Hi @DavidWaite1962

Found the bug, it's trying to render ToolStripProgressBars into Krypton which don't exist. Should be easy to fix with a try/catch statement. Can @Smurf-IV or @tbolon help find a more permanent solution?

DavidWaite1962 commented 3 years ago

Hello Peter

Thanks I'd downloaded the source and was poking around too. That's exactly my current configuration too - think the code overrides Onrender if I recall correctly too.

Workaround noted and will be sorted shortly.

A fantastic product set even so. 15 years since I've actively developed due to job title going up the greasy pole but decided to embark on a little project to illustrate to my team what can be done . Wish it had been around in my earlier days :-) But then I go all the way back to punch tape and cards and FORTRAN too.

Thanks David

On Thu, 10 Dec 2020 at 07:32, Peter Wagner notifications@github.com wrote:

Hi @DavidWaite1962 https://github.com/DavidWaite1962

Found the bug, it's trying to render ToolStripProgressBars into Krypton which don't exist. Should be easy to fix with a try/catch statement. Can @Smurf-IV https://github.com/Smurf-IV or @tbolon https://github.com/tbolon help find a more permanent solution?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Krypton-Suite/Standard-Toolkit/issues/35#issuecomment-742308477, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASAXKGUNDO27RK723BZ7GJLSUB2PFANCNFSM4UPYJ4JA .

PWagner1 commented 3 years ago

This is fixed in build 2103