340,351 questions
0
votes
0
answers
22
views
After focusing WebBrower's scrollbar, keyboard hot keys stop working
I have form with a WebBrowser component & a few buttons that can be activated via F1, F2, F3, F4 keys. Form's KeyPreview set to True.
Here is the KeyUp event handler for the form:
Private Sub ...
0
votes
0
answers
25
views
Revit 2026 API - document.Create.NewDetailCurve(view, spline) return null while Element is created
So I've been using the Revit 2026 API ( and .NET ) to make QoL stuff in an addIn.
I wanted to create some Bezier Curves (HermitSplines) and store the newly created element for later use.
Here is the ...
0
votes
1
answer
92
views
Why is this request failing?
I have an API that gets POST and GET requests from a worker and handles it just fine.
But if I send a request (POST or GET), it throw the errors:
HttpRequestException: An error occurred while sending ...
1
vote
0
answers
70
views
iOS: Can a third-party app access a wired FTDI USB-serial optical probe? (Works on Android)
Can a third-party iPhone app use a generic FTDI USB-serial optical coupler?
I'm building a cross-platform (.NET iOS / C#) app that reads smart meters via a wired optical head. The head uses an FTDI ...
0
votes
0
answers
121
views
Why does the handle count in C# Windows/WPF application keep increasing while idle? [closed]
We have a Windows / WPF application targeting .NET 4.7.2 on Windows 11 OR Windows Server 2019 where the handle count keeps increasing, even when the application has just launched and is idle.
On page ...
0
votes
1
answer
138
views
How to auto-generate a .cs file from a JSON file at design time in VS Code without a manual build?
I have a permissions.json file at the module root that serves as the single source of truth for permission constants. I want a Permissions.g.cs file to be regenerated automatically the moment I save ...
0
votes
0
answers
63
views
Unable to Enable/Install .Net Framework 3.5 [closed]
I've been able to install other versions of the .Net framework but not 3.5. It says I have .Net framework 3.5 installed in program files under the enable/disable windows features. but I am unable to ...
Advice
0
votes
1
replies
128
views
How to clear cache in reactjs 18.3.1( frontend) - .NET 10 (C# - Backend)?
I am updating my language settings through a C# Controller in .NET 10 which is for my back-end and my frontend is made with React 18.3.1. Furthermore, the web app is a hybrid app in which we want to ...
1
vote
2
answers
204
views
How to show an Exception's stack trace docked when the Exception is caught?
Currently, while stepping through, every time an exception is thrown and caught, I get a small dialog in which I need to scroll both horizontally and vertically to see the stack trace, which is not ...
Best practices
4
votes
6
replies
354
views
In C# 14 how to sort an array in reverse order?
What is the most idiomatic way to sort an array in reverse order in C# 14? Arrays now have methods from the MemoryExtensions class.
For example, given the following array:
int[] arr = [3, 1, 2, 5, 9];
...
0
votes
0
answers
71
views
How can I place a circular (curved/round) stair in Smart 3D (S3D) using a custom command in C# & .NET?
How can I place a circular (curved/round) stair in Hexagon Smart 3D using a custom command in C#?
I can create a straight stair in Hexagon Smart 3D using:
Stair stair = new Stair(system, part, top, ...
-2
votes
0
answers
200
views
Async/await locking where await Task.Run does not in ASP.NET MVC application
I have an ASP.NET MVC application on .NET 4.7.1. This is a POST method on a System.Web.Mvc.Controller. If I call DoSomething2 directly, the application locks up on the next use of async in the nested ...
Best practices
0
votes
4
replies
108
views
Best approach for Docker health checks in .NET containers without curl/wget?
have a .NET application running in Docker and need to configure container health checks.
Currently I see a few options:
Option 1
Install curl in the runtime image.
Use Docker HEALTHCHECK with a ...
Best practices
0
votes
3
replies
155
views
How can I create a responsive office floor layout planner using HTML, CSS, and JavaScript?
I am building a web application for an interior design company that allows users to visualize office workstation layouts. The goal is to create a responsive floor plan where users can drag and drop ...
0
votes
0
answers
74
views
.NET MAUI Windows Switch (ToggleSwitch) shows white background for disabled OFF state and hover OFF state
I am working with .NET MAUI on Windows (WinUI) and using the default Switch, which maps to ToggleSwitch.
I am trying to achieve consistent styling for different switch states, but I am facing issues ...