Taiizor / ReaLTaiizor

ReaLTaiizor is a .NET WinForms control library that offers a wide range of components and is user-friendly and design-focused.
https://www.vegalya.com
MIT License
1.66k stars 276 forks source link

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

Open RandallOfLegend opened 1 month ago

RandallOfLegend commented 1 month ago

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

github-actions[bot] commented 1 month ago

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

RandallOfLegend commented 1 month ago

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.