leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
437 stars 132 forks source link

TextBox Issue #324

Closed RedDot-3ND7355 closed 8 months ago

RedDot-3ND7355 commented 2 years ago

When closing a child form that has a or more textboxes. (That is filled- non empty) The process hangs. And then forced to close the app via taskmanager.

The mainthread is probably locked due to this.

The solution I had to resort to was to empty the text fields and then close the child form.

orapps44 commented 2 years ago

Hi,

Does it happens when using MaterialTextBox or MaterialTextBox2 control ? If you are using MaterialTextBox I suggest you to replace it by MaterialTextBox2 control.

RedDot-3ND7355 commented 2 years ago

Yes, I'll try switching the controls to MaterialTextBox2 instead. I'll give you an update if it fixes it! :)

valimaties commented 2 years ago

@RedDot-3ND7355 , this issue can be closed?

byungmeo commented 2 years ago

@orapps44 i think Password attribute is problem https://github.com/IgnaceMaes/MaterialSkin/issues/272

MartinErdely commented 1 year ago

The issue is caused if the Password attribute is true and the control contains text when form gets closed. Can be resolved by clearing textbox text on form close event.

RedDot-3ND7355 commented 8 months ago

Password attribute was indeed the issue!