Relative Content

Tag Archive for c#.netwinforms

Winforms custom user component returning errors when used after being packed as NuGet

I am trying to use a user control component I created and packed in NuGet and I get some errors. When I test the component in a test form within the same solution, by referencing the project, then it works correctly, when I pack it and install the NuGet package in a different solution and try to add it to a Windows Form project then I get this output:

Can’t recreate an object in .NET Winforms 4.8.1 C#

I’m trying to make a settings program for a project I’m working on, and I need a way to unload objects (specifically pictureboxes and labels). I probably will need the objects later, but I don’t want them constantly loaded in memory, because I want to make my program as lightweight as I can.

Can’t recreate an object in .NET Winforms 4.8.1 C#

I’m trying to make a settings program for a project I’m working on, and I need a way to unload objects (specifically pictureboxes and labels). I probably will need the objects later, but I don’t want them constantly loaded in memory, because I want to make my program as lightweight as I can.

Can’t null an object in .NET Winforms 4.8.1 C#

I’m trying to make a settings program for a project I’m working on, and I need a way to unload objects. I probably will need the objects later, but I don’t want them constantly loaded in memory, because I want to make my program as lightweight as I can.