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

null value resulting from MaterialTextBoxEdit in automatically generated designer code #185

Open
RandallOfLegend opened this issue Oct 19, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@RandallOfLegend
Copy link

RandallOfLegend commented Oct 19, 2024

Bug explanation

I am running a Material template project. On one particular MaterialForm I have a MaterialTextBoxEdit that is constantly problematic. on the"Initialize Component" section of the windows forms designer the first lines are...

private void InitializeComponent()
{
            ReaLTaiizor.Controls.MaterialTextBoxEdit TextBox_TermValue;

This triggers "TextBox_TermValue" to become null. I have only seen it on this particular MaterialTextBoxEdit , and there are several on the form. But I haven't been able to find a root cause why this one box out of 6 is having trouble.

Currently it's captured by a Visual Studio Warning (CS0649) which I have made an explicit error in my project so it won't build. Removing that first line of designer code fixes my null issue until I change something in the visual designer forcing a "windows forms designer" code regeneration.

I am going to make a stripped down version of my C# project to see if I can get minimum reproducible code.

Version

3.8.0.7

@RandallOfLegend RandallOfLegend added the bug Something isn't working label Oct 19, 2024
Copy link

We're grateful you made your first issue notification. You can be sure that a response will be made as soon as possible.

@Taiizor Taiizor added the good first issue Good for newcomers label Oct 19, 2024
@RandallOfLegend
Copy link
Author

RandallOfLegend commented Oct 19, 2024

I stripped the code down and worked out the problem, "Generate Member" was set to "False" for that Textbox. All other textboxes this was set to "True. So I am not sure if this really counts as a bug on your side. Certainly my fault, but generated some strange behavior.

Worth making a mental note that Generate Member is between "Font" and "Helper Text". So an erratic double click while trying to hit one of those two could toggle that property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants