Questions tagged [winforms]
WinForms is the informal name given to Windows Forms, a GUI class library in the Microsoft .NET Framework and Mono. Questions in this tag should also be tagged with the target framework ([.net] or [mono]) and should ordinarily be tagged with a programming language tag.
winforms
99,211
questions
0
votes
0
answers
17
views
TCP Client NetworkStream ReadAsync Hanging
I am trying to implement TCP communication in a Windows Form App. The user clicks a button and a command is sent successfully, but I am having trouble getting the result of the command back using ...
0
votes
0
answers
17
views
Calling python "concurrent.futures" multiprocessing from C# opens multiple winform instances of the application
pythonnet by Python.Runtime 3.0.3 (Installed the winform application in Visual Studio 2022)
adfuller_test.py (This is my python script file)
I am calling python code from a winform application which ...
0
votes
0
answers
23
views
C4642 Warning in C++ CLR Library (DLL) with Winform (.Netcore8)
I am getting this warning in my C++ CLR DLL with Winform in .NetCore 8
warning C4642: 'IHandle': could not import the constraints for generic parameter 'THandle'
warning C4642: 'HandleRef': could not ...
1
vote
1
answer
44
views
Internal Class Public members
I had been asked an interesting question around why internal class members were declared public, not internal in my PR.
internal class ProductFamily
{
public int Id { get; set; }
public ...
0
votes
1
answer
32
views
Prevent variables of same type replicate values
i have this code, that's replicating without any reason, my issue is when I try to change values in 'NewRow' its automatically gets copied to 'CurRow', I want to create copies of 'CurRow' and each row ...
1
vote
1
answer
20
views
How to add Serilog logging to a SignalR client?
Currently my hub builder looks like this:
hub = new HubConnectionBuilder()
.WithUrl(Constants.HubsUrl + "/MainHub", options =>
{
options.Headers.Add(Constants.HeaderToken, ...
2
votes
1
answer
82
views
How do I write and call an event between classes for Winforms?
I am attempting to write a Winforms application that interfaces with an SQLite server for a class. One requirement is for users to be able to make an account, so I need to remove the login control and ...
0
votes
2
answers
105
views
Can't update data source with DataAdapter
I am experimenting with DataSets and DataAdapters in Visual Studio. So, I have a toy table (teacher) in MySQL with two columns: id (PK) and AM (int(11)). In a WinForm, a textbox is bound to AM:
string ...
1
vote
1
answer
76
views
Getting error in DrawString (C# WinForms)
I´m working on a WinFormsProject, everything works, but when I need to print the invoice, this exception shows up
System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics....
0
votes
0
answers
42
views
Rotate an object around a fixed point calculated from mouse click position
My model keeps jumping around my monitor screen after these steps:
Select a point.
Rotate.
Select another point.
I wonder if there is anything wrong with my transformations.
Here is how it looks:
...
0
votes
1
answer
67
views
WinForms DateTimePicker and Linux Wine
I came across a legacy project that has WinForms and a DateTimePicker with a CheckBox (dateTimePicker1.ShowCheckBox = true). It works fine under Windows, but under Linux (Debian) with Wine (version 8),...
-2
votes
0
answers
25
views
Socket is null. Please check if the challenge has been accepted correctly [closed]
why does this show 'Socket is null. Please check if the challenge has been accepted correctly.' after clicking the tic tac toe buttons even though the player accepted the challenge?
my project is ...
-1
votes
0
answers
8
views
How to get active object of revit application in windows application
I have to craete revit application for ifc export but withou creating pluddin or addin.I have to craete deskstop application . how can i do this?
do not open revit how can run in windows application ,...
0
votes
0
answers
29
views
Deserialization from CodeDOM format is not supported in .NET Core applications. [XAF Winforms]
I recently upgraded my .Net Framework XAF Winforms application.Net8 with 24.1.3
As follows
public static void DoPrintReport(DevExpress.ExpressApp.View view, IReportDataV2 reportData, ...
1
vote
1
answer
44
views
How to create a control in windows forms that will display and play animated gif?
I tried this code but it's showing the last frame. and if i set the frame delay to 1000 then it's waiting one second before showing anything and then show the last frame. it's not playing all the ...