Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
bairog's user avatar
  • 3,271
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 ...
MrHu's user avatar
  • 23
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 ...
PragadeeshRaj V's user avatar
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, ...
Fisnik Limani's user avatar
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 ...
mohamed Abdelghany's user avatar
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 ...
scale123's user avatar
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 ...
karen's user avatar
  • 1
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 ...
DeveshM's user avatar
  • 476
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 ...
Josh Brunton's user avatar
-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 ...
pls help me's user avatar
-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 ...
Shionigami's user avatar
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 ...
Ranald Fong's user avatar
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 ...
TheLethalCoder's user avatar
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 ...
Toto's user avatar
  • 903
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 ...
ispiro's user avatar
  • 27.4k

15 30 50 per page
1
2 3 4 5
1157