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]: KryptonForm background colour #1370

Closed
PWagner1 opened this issue Mar 6, 2024 · 12 comments
Closed

[Bug]: KryptonForm background colour #1370

PWagner1 opened this issue Mar 6, 2024 · 12 comments
Labels
area:designer All issues related to the designer. area:toolkit All issues related to the toolkit components. bug Something isn't working regression Something was working in a previous release, but isn't working now.
Milestone

Comments

@PWagner1
Copy link
Contributor

PWagner1 commented Mar 6, 2024

As reported by @almendieta in #1300

[sic] ... After try Canary, now Krypton forms shows a steady black background, and some controls appear as a mosaic in one of them. Any idea about the reason?

Happens in current alpha too.

image

@PWagner1 PWagner1 added bug Something isn't working area:designer All issues related to the designer. area:toolkit All issues related to the toolkit components. labels Mar 6, 2024
@PWagner1
Copy link
Contributor Author

PWagner1 commented Mar 7, 2024

From #1300

image

image

@Smurf-IV Smurf-IV modified the milestones: Version 85, Version 90 Mar 17, 2024
@Smurf-IV Smurf-IV added the regression Something was working in a previous release, but isn't working now. label Mar 24, 2024
@Smurf-IV Smurf-IV self-assigned this Mar 24, 2024
@Smurf-IV
Copy link
Member

Hi @almendieta
I am not able to replicate this using the Code base from V80..

image

Win 10 22H2
VS 2022 17.9.4

@Smurf-IV
Copy link
Member

Smurf-IV commented Mar 24, 2024

@almendieta
Also Cannot replicate using the nuget package for V70.

  • Start new Winforms project - Set to net60
  • Add nuget package
  • Build to check
  • Change to use KryptonForm
  • Check Deisnger - Still okay
  • run - Still okay ??
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net6.0-windows</TargetFramework>
    <StartupObject>Sub Main</StartupObject>
    <UseWindowsForms>true</UseWindowsForms>
    <MyType>WindowsForms</MyType>
  </PropertyGroup>

  <ItemGroup>
    <Import Include="System.Data" />
    <Import Include="System.Drawing" />
    <Import Include="System.Windows.Forms" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Krypton.Toolkit" Version="70.22.11.312" />
  </ItemGroup>

  <ItemGroup>
    <Compile Update="My Project\Application.Designer.vb">

image

@Smurf-IV
Copy link
Member

When I do change the back colour then it is reflected in th designer and the app as expected:
image

@Smurf-IV Smurf-IV added the awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. label Mar 24, 2024
@Smurf-IV Smurf-IV removed their assignment Mar 24, 2024
@PWagner1
Copy link
Contributor Author

When I do change the back colour then it is reflected in th designer and the app as expected: image

@Smurf-IV Is BackColor in either VisualForm or KryptonForm assigned a default value, or is it just Color.Empty?

@PWagner1
Copy link
Contributor Author

PWagner1 commented Mar 24, 2024

@Smurf-IV Works correctly in the January 2024 canary build...

Bug starts with nightly build >= 45, from 14/02/2024. The build .44, from 13/02/2024 is ok.

@PWagner1
Copy link
Contributor Author

PWagner1 commented Mar 24, 2024

Something's not right here...

image

@Smurf-IV Smurf-IV modified the milestones: Version 85, Version 90 Mar 29, 2024
@Krypton-Suite Krypton-Suite deleted a comment from PWagner1 Mar 30, 2024
@Smurf-IV Smurf-IV self-assigned this Mar 30, 2024
@Smurf-IV Smurf-IV added under investigation This bug/issue is currently under investigation. and removed awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. labels Mar 30, 2024
@Smurf-IV
Copy link
Member

@Smurf-IV Works correctly in the January 2024 canary build...

Bug starts with nightly build >= 45, from 14/02/2024. The build .44, from 13/02/2024 is ok.

Reproed with build 45:

  • Just resize the form in the desinger:
    image

@Smurf-IV
Copy link
Member

@Wagnerp It's between these 2 commits....
image

@PWagner1
Copy link
Contributor Author

PWagner1 commented Mar 30, 2024

@Wagnerp It's between these 2 commits....

@Smurf-IV Have a look at this PR.

@Smurf-IV
Copy link
Member

Smurf-IV commented Mar 30, 2024

Yup..

It's this:
image
You've overridden the default, therefore no background painting is going to happen !

Will test and fix in a moment.

Edit: That was it !!

@PWagner1
Copy link
Contributor Author

Yup..

It's this: image You've overridden the default, therefore no background painting is going to happen !

Will test and fix in a moment.

Edit: That was it !!

Must have been something I forgot to remove when removing the other Acrylic stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:designer All issues related to the designer. area:toolkit All issues related to the toolkit components. bug Something isn't working regression Something was working in a previous release, but isn't working now.
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants