Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: KryptonTableLayoutPanel throwing exception when a form is minimized #774

Closed
ZXBITLES opened this issue Jul 6, 2022 · 8 comments
Closed
Labels
bug Something isn't working fixed This issue has been fixed.
Milestone

Comments

@ZXBITLES
Copy link

ZXBITLES commented Jul 6, 2022

Describe the bug
KryptonTableLayoutPanel throwing exception when a form is minimized

To Reproduce
Add KryptonTableLayoutPanel to a form and minimize it in runtime.

Expected behavior
No Exception should ne thrown.

Solution
KryptonTableLayoutPanel.cs must be modified like this:
private void BackGroundPanel_Refreshed()
{
if (_backGroundPanel.Height == 0 || _backGroundPanel.Width == 0) return;
_bm = new Bitmap(_backGroundPanel.Width, _backGroundPanel.Height, PixelFormat.Format32bppRgb);
_backGroundPanel.DrawToBitmap(_bm,
new Rectangle(0, 0, _backGroundPanel.Width, _backGroundPanel.Height));
BackgroundImage = _bm;
}

@ZXBITLES ZXBITLES added the bug Something isn't working label Jul 6, 2022
@PWagner1 PWagner1 self-assigned this Jul 6, 2022
@PWagner1 PWagner1 added the under investigation This bug/issue is currently under investigation. label Jul 6, 2022
@PWagner1 PWagner1 added this to the Version 7 milestone Jul 6, 2022
PWagner1 added a commit that referenced this issue Jul 6, 2022
@PWagner1 PWagner1 added awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. and removed under investigation This bug/issue is currently under investigation. labels Jul 6, 2022
@PWagner1
Copy link
Contributor

PWagner1 commented Jul 6, 2022

Please retry using nightly build >= .188

@ZXBITLES
Copy link
Author

ZXBITLES commented Jul 6, 2022

Thanks!

@PWagner1
Copy link
Contributor

PWagner1 commented Jul 7, 2022

@ZXBITLES Is this working now?

@ZXBITLES
Copy link
Author

ZXBITLES commented Jul 7, 2022

Sorry. I tried branch "alfa", but it has no changes. Have no idea where is "nightly" branch. :)

@PWagner1
Copy link
Contributor

PWagner1 commented Jul 7, 2022

The changes were made in this branch

@ZXBITLES
Copy link
Author

ZXBITLES commented Jul 7, 2022

Thanks. Will check it on weekend.

PWagner1 added a commit that referenced this issue Jul 13, 2022
@PWagner1
Copy link
Contributor

@ZXBITLES Can I close this now?

@ZXBITLES
Copy link
Author

Yeah! Thanks!

@Smurf-IV Smurf-IV added fixed This issue has been fixed. and removed awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. labels Jul 18, 2022
@PWagner1 PWagner1 removed their assignment Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed This issue has been fixed.
Projects
None yet
Development

No branches or pull requests

3 participants