All Questions
17,344
questions
0
votes
0
answers
19
views
How to securely store and retrieve sensitive data in a .NET Standard 2.0 cross-platform (Windows+Linux) library
I have .NET Framework 4.7.2 library to store and retrieve sensitive data (like tokens for our desktop apps communication) with help of CredentialManagement package on Windows. Now I need to make this ...
2
votes
1
answer
43
views
After moving a file to another location, and then creating a file with the same name in the original location, the creation time is incorrect
My code:
//Move the file to another location
File.Move(@"D:\Test.log", @"D:\LogHistory\" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".log");
//Create the ...
0
votes
0
answers
13
views
How to install prerequisite during installation
I have already created an installer for my application using the Microsoft Visual Studio 2022 Installer Project. The installer installs my application and automatically launches the setup for any ...
0
votes
0
answers
11
views
How to Bring a Desktop Application to the Foreground from a Web Application via a Tray App [duplicate]
I have a web application that needs to trigger actions in a desktop application (not under my control). This desktop application provides an integration API, but only for other desktop applications, ...
0
votes
1
answer
55
views
How can I synchronize an online SQL Server database with another offline database in Winforms on .NET Core?
I need to sync a large local SQL Server database to a server database and vice versa. The structure of these two databases is exactly the same. We need to sync data when the user is logged in, or when ...
0
votes
0
answers
51
views
Is there a more efficient way to display live camera images in a C# desktop application [duplicate]
I am trying to display the images from a LUCID camera in a C# desktop application. The camera comes with a SDK and the image acquisition takes between 20-35ms per image. The problem is that I have ...
0
votes
0
answers
92
views
Error while getting Disk's ATA Information in C#
I was making a C++ Console Application to get Disk's ATA Information but I was getting Error Code 1 in DeviceIoControl so I tried it in C#.
ATAFeaturesForm.cs
using System;
using System.IO;
using ...
0
votes
0
answers
16
views
Dynagraph library for a C# .NET option
Is there any way I can create a dynagraph on C# and .NET for a Windows application? I have tried to search ready library but I didn't found any one? And if this is not available then any idea how can ...
0
votes
1
answer
62
views
Getting Windows user's name in "Firstname Lastname" format when user is part of a group
I'm trying to get the name of the currently logged in Windows user in the format "John Doe". I'm not sure if there's an accepted term for this, but think, the name you see when you bring up ...
-2
votes
0
answers
29
views
Is it possible for a windows desktop application to have user's OS credentials to log into the application?
The windows desktop application will not have a login screen. Instead, once the user is signed in to the PC, the user will be automatically signed in to the application. This will also need a Single ...
-1
votes
0
answers
36
views
Problem building Windows Service project using CLI (C#)
I want to build a Windows Service project using CLI (dotnet or msbuild) to be able to make continuous delivery of a new project.
No problem to build a Windows Application, but, if I use dotnet build ...
2
votes
1
answer
38
views
Can Client use the same Socket object to reconnect to remote after disconnect
Maybe the simple answer is no, a new socket object must be created each time... but my situation is.
Client creates socket and uses ConnectAsync to connect to remote server
ConnectAsync Completed ...
0
votes
0
answers
25
views
Force Word interop to use multiple instances of Word at once
I've found myself with a bit of an odd problem and I can't seem to work out what may be causing it. We have a system which has a process inside of it to convert files to PDF format. To do this we are ...
0
votes
0
answers
74
views
How to display a snackbar/toast on Windows in a MAUI app?
I am trying to display a snackbar or a toast in a MAUI app on Windows. For that I am using the Maui Community Toolkit. Everything works fine on mobile, but on Windows nothing happens even though it is ...
2
votes
0
answers
109
views
Should I implement a C# destructor (aka finalizer) to unsubscribe from a system event? [duplicate]
Answer to "duplicate" - while a weak event may be the best solution here. The question is very different.
In this answer we are told to (almost) never write a destructor by someone who ...