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.
Create a custom control that automatically adds new properties to the another control when adding that custom control to the designer
I want to create a custom control like a picker in Winform. When I select a value of the picker, the other textboxes will be set to the corresponding value. For example, the picker is Product. After selecting a Product, ProductName and ProductPrice can be set into the specified textboxes.
How to achieve a top-to-bottom FlowLayoutPanel where invisible items don’t take up space
I have forms in my application that are variable length based on configuration in a database. These currently use TableLayoutPanels, and basically have a question followed by an answer like the below example:
Graphics.DrawString doesn’t update text in OnPaint in Windows Forms C#
Sorry if I ask something simple. I asked in Discord and IRC and for two days nobody has provied a solution.
How to pass value from form1 to user control, the user control is within the form2 (winforms c#)
**When I pass the value from Form1 to user control and display the value that I get from Form1, it displays null.My user control is contained within another form, Form2.
WinForms, open new form as top most
I have a simple WinForms application that I’m using to monitor a system. The Main form is connected to a SignalR hub, and opens a form when receiving a message:
C# Windows Form opened maximized on Windows11 of Microsoft Surface Go 4
I created a simple c# winform application that has specific size.