Amir
Amir
CC#
Created by Amir on 10/17/2024 in #help
✅ Winforms not freeing memory when disposing of control
So I'm just supposed to leave it up to the GC and not worry about the memory management
23 replies
CC#
Created by Amir on 10/17/2024 in #help
✅ Winforms not freeing memory when disposing of control
void OnClick(object sender, EventArgs e)
{
Button newButton = new()
{
Text = "New Button",
BackColor = Color.White,
ForeColor = Color.Black,
Size = new Size(100, 50),
TextAlign = ContentAlignment.MiddleCenter
};

newButton.Click += (s, e) => NewButtonOnClick(newButton);

flowLayoutPanel.Controls.Add(newButton);
newButton.Show();
}
void OnClick(object sender, EventArgs e)
{
Button newButton = new()
{
Text = "New Button",
BackColor = Color.White,
ForeColor = Color.Black,
Size = new Size(100, 50),
TextAlign = ContentAlignment.MiddleCenter
};

newButton.Click += (s, e) => NewButtonOnClick(newButton);

flowLayoutPanel.Controls.Add(newButton);
newButton.Show();
}
23 replies
CC#
Created by Amir on 1/11/2024 in #help
MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1
thanks
9 replies
CC#
Created by Amir on 1/11/2024 in #help
MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1
ok
9 replies
CC#
Created by Amir on 1/11/2024 in #help
MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1
No
9 replies