Skip to main content

All Questions

Tagged with
0 votes
0 answers
27 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
22 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
33 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
32 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
60 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
107 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
0 votes
0 answers
31 views

How do I monitor when a file icon on the Desktop is moved in C#?

I want to detect when a file icon on the Desktop is moved to a different position. (My goal is to counteract a Windows 11 bug where renamed icons move themselves.) I wrote a C# script which uses a ...
Stevoisiak's user avatar
  • 25.8k
0 votes
1 answer
71 views

How to change the Windows Cursor on net maui?

Well, I'm trying to find a way to make the Windows cursor invisible or change its appearance, but CoreWindow is null. var window = App.Current.MainPage.GetParentWindow().Handler.PlatformView as ...
marcos sos's user avatar
0 votes
0 answers
67 views

Cornered Transparency on Panel and image issue

So i have this roundedPanel Component working very good. The corners are smooth as they should be, but that lasts till i set an image as background: above looks as it should but if i add an image to ...
BuLsONc4's user avatar
0 votes
0 answers
19 views

How to check the View Templets item in the UI of TransferProjectStandards via user32.dll

in Revit i am trying to select the checkbox next to 'View Templates' in a ListBox of the TransferProjectStandards Dialog. I was able to implement the 'Check None' functionality, but I couldn't figure ...
Hans101's user avatar
-1 votes
0 answers
56 views

Changing Taskbar (Shell_TrayWnd) Color to Transparent

I found a way to change color to fully transparent, by researching structure of DesktopWindowXamlSource of Taskbar (Shell_TrayWnd). DekstopWindowXamlSource structure: I'm curious is it possible to ...
Jacob Mordon's user avatar
-1 votes
1 answer
76 views

Why doesn't Canvas.SetLeft and .SetTop work in this WPF code? [closed]

I have dynamically create images added to a canvas and later need to move them. But this code does not do the job: int slotCount = _cardSlots.Count; for (int i = 0; i < slotCount; i++) { ...
D.Man's user avatar
  • 185
-1 votes
0 answers
19 views

Unity: Recording specific application window at high frame rate

I'm writing a VR thing, that needs to record a specific application window at a very high frame rate, like every frame of the monitor... i cant find anything that does that currently im using ...
user26034200's user avatar
-3 votes
0 answers
41 views

Will this hog the IO(HDD)?

I have some code. // files = (1000's of files in folder xxx); for (string f in files){ string contents = File.ReadAllText(f); // do some work with the contents which is <2kb, make results ...
Ranald Fong's user avatar

15 30 50 per page
1
2 3 4 5
1156