c# – Strange problem with textbox text location Visual Studio 2022
Visual Studio 2022 v17.10.3, Windows 11, C#, .NET 8, Winforms
Two screenshots will better explain the problem. I have TableLayoutPanel where each has been filled with a TextBox. In one section I have textboxes which are all identical except for Name and Location:
After running the program I get this:
The lower left text box ALWAYS is offset when running the program.
- Deleted the problem textbox and recreated in the designer (about 10 times).
- Deleted the problem textbox and copied one of its mates to the original cell.
- Moved the problem textbox to a different cell and created or copied a new text box to the problem cell.
- Set a breakpoint when the textbox is activated and looked at the properties of the textbox (more than 100 of them). They are identical to what is set in the designer.
- Prayed. Didn’t help but I felt a bit better.
I don’t fully expect an immediate solution; but what I am hoping for is some alternate ways to debug this issue. I’ve pretty much run out of ideas.
Thanks
Read more here: Source link
