99,344 questions
0
votes
1
answer
44
views
How to get results from an async Javascript script using C# and Microsoft WebView2 control?
I have the following Javascript script:
async function getIPAddress() {
var thisFuncName = arguments.callee.toString().match(/function ([^\(]+)/)[1];
var retValue = {
'Result': true,
...
0
votes
0
answers
39
views
Security Exception - The application attempted to perform an operation not allowed by the security policy problem [closed]
I have a winforms application written in c#. At one point it calculates the size of some folders on the disk. This worked until the last windows update was installed. Now when the size is calculated I ...
0
votes
0
answers
18
views
System Windows Form Method 'ControlPaint.DrawReversibleFrame' seems to have a bug after latest 2024H2 update on multi-monitor setup
In a charting software I have been using for 10+ years without change, after recent windows 11 update (2024H2 cumulative update from April 2025), I noticed that chart zoom selections on the bottom ...
0
votes
2
answers
58
views
Form Closing Management [closed]
I have a small application with multiple forms (Form1..Form5).
Form1 is the main one.
Every time I go from Form1 to another Form I do it with the command (Foe ex. from Form1 to Form2):
private void ...
-3
votes
0
answers
74
views
Why editing one SQL row by a C# child form won't be noticed by its parent Form? [closed]
Editor: Microsoft Visual Studio
Database: Microsoft SQL Server
Programming language: C#
Framework: C# .Net Framework 4.7.2
SQL:
I have a Database called "DB_Clinic".
It has a table called ...
0
votes
1
answer
82
views
WinForms are being distorted using CefSharp
I have an WinForms application in C# which is working fine. I am trying to integrate the CEF with it. As soon as I initialize the CEFSettings, all my forms get distorted. I'm new to WinForms and can't ...
0
votes
0
answers
100
views
+50
how to draw 3d arc cube with irregular figure?
I want to draw a 3d figure which with an arc and/or irregular path.
I can draw a 3d cube and rotate it. I know how to draw 3D objects that are composed of straight lines like a cube but I do not know ...
0
votes
1
answer
55
views
How to use controllers from a library project in .NET 9 self-hosted Kestrel Windows Forms app?
I have made a .NET 9 self-hosted Kestrel Windows Forms app with controller(s) located in the same assembly:
It works well:
Here is the main Windows Form's start-up and shutdown code:
private ...
0
votes
1
answer
53
views
The look of a kiosk application broken after migration from Windows 8 embedded to Windows 10
This application worked fine under Windows 8.1 Embedded. Now, we are testing whether it can be migrated to Windows 10 as-is, but the visual appearance of the text on some but not all buttons has ...
2
votes
0
answers
83
views
Custom WinForms ComboBox Flickers in Windows 11
I work on a Visual Studio extension.
I have been testing the extension on version 17.13 of Visual Studio with .NET Framework version 4.8
I have a custom WinForms ComboBox which I repaint by ...
1
vote
1
answer
68
views
Self-hosting (using Kestrel) Web API restful service in .NET 9 Windows Forms app
I've spent quite some time looking on Internet for the subject sample projects/tutorials but I've not found any.
I have a working app implementing a .NET Framework 4.x self-hosted OWIN Winforms App ...
0
votes
0
answers
38
views
Acceptbutton on Windows.Forms.Panel object
Building a application in winforms with alot of pure powershell functions inside its code. As for now around 6k lines. And i wanted to make the login-logic a more modern touch so i changed the default
...
2
votes
1
answer
61
views
Got a System.Management.Managementexception: 'Invalid Query' error while trying to get COM port descriptors in Visual Studio 2022
Using Visual-Studio 2022 Community on Windows 10, following a tutorial in C# in which a 'Windows Forms App(.NET Framework)' project lists all COM ports, and their descriptions, as would be seen/found ...
-1
votes
0
answers
30
views
"The process cannot access the file because it is being used by another process" error when using Picture Boxes in Windows Forms [duplicate]
I am writing a program that should move images from one folder to another. If I click on viewFolder1Button in Form1 I display imagesUserControl1 that displays all images in a specific folder. Then, in ...
0
votes
0
answers
12
views
WinForms: Bug when using ComboBox in ContextMenuStrip with ToolStripControlHost [duplicate]
Summary:
If you create a ComboBox, put in inside a ToolStripControlHost, and then add the latter to the Items collection of a ContextMenuStrip - then clicking on a ComboBox item which hangs below the ...