C
C#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;
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
GitHub
Audio-Player-1.0/Form1.Designer.cs at master ยท Jordan-Belfort-88/Au...
Contribute to Jordan-Belfort-88/Audio-Player-1.0 development by creating an account on GitHub.
T
Tvde1โ€ข395d ago
Commit often when it works, so you can undo your changes when it stops working ๐Ÿ˜ฌ
JB
Jordan Belfortโ€ข395d ago
I don't have many good practices, and wasn't expecting something like this at all I was replacing buttons before and had some errors that I was able to solve, but now... I was able to solve everything with the designer but still I can't open the Design tab Tell me how in the earth could this happen:
private void InitializeComponent()
{
InitializeComponent(Grabar3);
}

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent(FontAwesome.Sharp.IconButton grabar3)
private void InitializeComponent()
{
InitializeComponent(Grabar3);
}

#region Windows Form Designer generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent(FontAwesome.Sharp.IconButton grabar3)
That was the problem How could this FontAwesome.Sharp.IconButton grabar3 end up there and
private void InitializeComponent()
{
InitializeComponent(Grabar3);
}
private void InitializeComponent()
{
InitializeComponent(Grabar3);
}
from where did this came from
A
Accordโ€ข394d ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
Assert.Raises<> in xUnitI'm trying to create tests for certain events. However it seems that xUnit assumes that I use EventHโ” I have an API function and I want to know what exception it can throw. How can I do that?This is not said in the documentationAmbiguity between 2 things idk how to fixGot an error message all of a sudden saying this when everything was working perfect before so i undโ” Problem populating DatagridI'm trying to populate a datagrid where certain columns are populated with information that is read โ” Avisynth script maker thingIm trying to make a script that creates AVS files for every file in a Directory based on a template.โ” How to work with Hwnd in c#I want to open programs using Process.Start but all those programs have empty MainWindowHandle and Mโ” VS For Mac Code CoverageHas anyone figured out how to show which lines are covered after running unit tests in VS For Mac?โœ… Run code in main thread after Task.Run completed?Hello, I have a long running void function that I execute in a separate thread by calling `Task.Run(โ” methodHello, If I create a method, does the method know about things in the Main method? Or am I supposed โ” Project structure1. In my Solution there should be only 1 Project right? Unless its a big App 2. I started using foโ” how to use EF6 in library with no dependancy injection and no startup.csI used EF core power tools to generate DB Context and reverse engineer the models. now I get an erroโ” HeadFirst Design PatternSo I started with this Book today. First problem starts with the Duck Project: and when he tests hโœ… EqualityComparerHello, anyone know of this code work ? --> `EqualityComparer<ICollection<myclass>> .Default.Equalsโ” error attaching script (unity)this error appears when trying to attach the script, does anyone know how to solve it?โ” i have an app that runs well on my pc but not on other pcsi have an app that runs well on my pc but on when i zip it and bring it to another pc the ui is all yield???```cs public IEnumerable<int> A() { for (int i = 0; i <= 10; i += 2) yield return i; } C# Data Table issuehttps://pastebin.com/DSHwSh0M based on this program, I need to set the values of the `Old PS A11Y Sโ” Microsoft Graph SDK - Serializing objectsHello, I am currently working with Microsoft Graph API to work with the Planner. My goal is to backu