C#C
C#โ€ข3y ago
Jordan Belfort

Unsupported statement value type: Microsoft.DotNet.DesignTools.Client.CodeDom.CodeBodyTextStatement

https://github.com/Jordan-Belfort-88/Audio-Player-1.0/blob/master/Audio%20Player/Form1.Designer.cs
I was replacing the buttons with new ones, went from the Design tab to the main code, changed some names then went to the designer and changed some functions there too. Something really weird happened, some buttons were OK, but a few had errors everywhere, even that I copy paste everything. Now I can't open the Design tab to check the buttons because that WEIRD error that I couldn't find anywhere.
Another weird thing is that these lines have Error CS1061 and the other buttons like this one were OK with it:
Stop2.IconChar = FontAwesome.Sharp.IconChar.Stop;
            Stop2.IconColor = SystemColors.ControlDark;
            Stop2.IconFont = FontAwesome.Sharp.IconFont.Auto;
            Stop2.IconSize = 20;

I tried C + Z to delete all the changes but couldn't help. Cleaning the solution neither. It compiles and the program opens like the image attached. (I didn't deleted the Record buttons because I was doing the changes)
Any help would be appreaciated a lot
image.png
GitHub
Contribute to Jordan-Belfort-88/Audio-Player-1.0 development by creating an account on GitHub.
Was this page helpful?