How to clear the drawn rectangle in the mouse down event?
I tried to make Rectangle.Empty but it’s not working. it does nothing to the drawn rectangle. the drawn rectangle is stay and i want it to be deleted to start drawing a new rectangle.
Windows Form process has exited with unexpected exit code
From a Windows application developed in .Net framework 4.8, clicking on a button is trying to launch another Windows application that is in a different project (to maintain legacy behavior).
Can’t place a ship part next to another part
I started working on a project in C# using Windows Forms, making a sea battle game.
C# Move Controls Randomly
How can I move a Windows Forms control randomly?
By that I mean the control should move in all directions, different ankles.
How to retrieve strings from a localised string resource?
I have been trying to localise my stings by putting them int a resw file, but I cannot work out how to access them.
Winforms – How do I unload non visible controls in a scrollable window?
I’m learning c# & winforms and I have an issue on the app I’m making.
This C# code causes a System.OutOfMemoryException: ‘Out of memory.’ I fail to see why and where the error is
When I run this code, I get
c# This code gives me me System.OutOfMemoryException: ‘Out of memory.’ I fail to see why and where the error is
When i run this code i get System.OutOfMemoryException: ‘Out of memory.’ when it tries to load a new form. This is the error i get An unhandled exception of type ‘System.OutOfMemoryException’ occurred in System.Drawing.dll
Looking for advice as to how I should access objects declared in my main Program.cs from a user control in Visual Studio (Using C# and WinForms)?
I have a user control named General_Inputs
and i am attempting to access three different objects called OBJ_CurrentEngine
, OBJ_CurrentGearBox
and OBJ_CurrentChassis
which are declared and initialized in my Program.cs
after the user control is created and therefore i cannot pass these in as parameters.
Tasks.WhenAll(tasks) is not catching any exception
I am new to C# and Windows Forms.