11,288 questions with C#-related tags

Sort by: Updated
0 answers

Updating ListView in .NET MAUI After Modifying an Item

How can a ListView be updated when an item in the bound ObservableCollection is modified while using the MVVM .NET Community Toolkit? The ListView's ItemsSource property is bound to an ObservableCollection, and the ViewModel inherits from the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,916 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-11T22:52:31.6833333+00:00
Tom Meier 260 Reputation points
3 answers

SSIS - package working only when there is breakpoint

I have a SSIS package which contains different sequence container, the problem is when I execute the whole package, it executes first 2-3 containers then gets Index out of bound error in next container (In a script task inside a data flow task). But…

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,643 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2021-09-03T14:21:23.33+00:00
SUNGHOON Kritesh 1 Reputation point
commented 2025-02-11T22:17:14.7433333+00:00
Jeff Ballard 0 Reputation points
1 answer

How to extend execution of background task in WinUI 3 (analog of ExtendedExecutionSession in UWP)?

My application has a background task that performs a cleanup of unnecessary or unused system files selected by the user. However, this task takes more than 30 seconds to complete, which exceeds the standard time limit. Question: Is there any way to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,100 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
823 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,734 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-10T11:59:45.8866667+00:00
answered 2025-02-11T18:58:41.5266667+00:00
Jonathan Pereira Castillo 13,820 Reputation points Microsoft Vendor
1 answer

How is it possible to implement a complete semblance of a console (online compiler) in win fomrs?

Good time! Faced such a task as implementing code execution as in a console application in C # (with classes, methods, the ability to read data, etc.). Everything went super until I started testing my application. The problem is that I can execute code…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,922 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-11T14:53:37.4833333+00:00
Efrem 20 Reputation points
answered 2025-02-11T18:52:18.09+00:00
Jonathan Pereira Castillo 13,820 Reputation points Microsoft Vendor
2 answers

How to open notepad on remote computer

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Diagnostics; using…

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,713 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-11T08:11:09.79+00:00
MIPAKTEH_1 545 Reputation points
answered 2025-02-11T16:34:37.6366667+00:00
Bruce (SqlWork.com) 71,266 Reputation points
1 answer One of the answers was accepted by the question author.

Date converter, looking for good and easy way

Hello, I need to display a date in a different format. How can I achieve this easily? How do I go about it? Thanks for tips in advance. The algorithm Variant 1 //Month: 1=January, 2=February, 9=September, …, A=October, B=November //Day: standard…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-05T15:49:20.82+00:00
Noah Aas 605 Reputation points
accepted 2025-02-11T14:17:49.0933333+00:00
Noah Aas 605 Reputation points
0 answers

How to set a time limit for speech recognition in ACS?

I want to set a limit to the time a caller has to describe their problem after StartRecognizing has started. I tried to implement this using CancellationToken, but it didn't work, and CancelAllMediaOperations doesn't seem to be effective either. Here is…

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
996 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-01-16T11:37:36.75+00:00
Nikolaj Wojke 0 Reputation points
commented 2025-02-11T12:53:51.1866667+00:00
Nikolaj Wojke 0 Reputation points
2 answers

Creating a Leaderboard with Stored Procedures in an API Application

How can a leaderboard be implemented for an application that uses an API, including creating the necessary stored procedures? I am new to this technology but have some understanding of data access using ADO.NET. What steps can be taken to achieve this?

Azure Database for PostgreSQL
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
373 questions
asked 2025-02-08T19:15:28.0833333+00:00
Suraj Wakure 0 Reputation points
commented 2025-02-11T11:42:41.7066667+00:00
Mahesh Kurva 2,670 Reputation points Microsoft Vendor
1 answer

How to Detect Stylus Pen Sides (Pen Tip vs. Eraser) in WPF (C#)

Hello, I’m developing a WPF application in C# that interacts with a stylus pen on a Windows device. I need to detect which side of the stylus is being used—whether it’s the pen tip or the eraser side. Could someone guide me on how to achieve this…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,824 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-06T04:36:22.5+00:00
Manjunath PM 0 Reputation points
edited a comment 2025-02-11T09:48:19.9733333+00:00
Manjunath PM 0 Reputation points
1 answer

Need assistance on creating Microsoft forms dynamically with questions and prefilled answers using c# MVC web app and generate form links

Hello, We have a requirement to create Microsoft forms specific to users with questions like textbox, dropdown, dropdown (multiselect) etc., and prepopulate or pre-fill the answers related to user specific data into the questions and then share the form…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,068 questions
asked 2025-02-04T07:30:22.0566667+00:00
Vamshi Konatham 0 Reputation points
commented 2025-02-11T03:58:54.7033333+00:00
Bhargavi Naragani 575 Reputation points Microsoft Vendor
0 answers

Marshalling Error for WinUI 3 Application

Hello. So I've been creating a WinUI 3 app C# in visual studio. For loading the list of installed fonts, I had to install Microsoft.Graphics.Win2D NuGet package. For that, it required me to update the NuGet packages of "WindowsAppSDK" and…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
823 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,704 questions
asked 2025-02-06T17:52:05.8566667+00:00
Hemanth B 886 Reputation points
commented 2025-02-11T01:54:09.5266667+00:00
Roy Li - MSFT 33,926 Reputation points Microsoft Vendor
1 answer

How do I use resource files in a WinUI project

I'm trying to use the resource system in VS, but when I try to access a resource, it can't find it. Here's my setup... I have a WinUI project with a library DemoApp GfxToolkit In the GfxToolkit library project I have a resources file…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
823 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-06T03:09:25.4+00:00
Gavin Williams 761 Reputation points
commented 2025-02-11T01:53:32.06+00:00
Roy Li - MSFT 33,926 Reputation points Microsoft Vendor
1 answer

XC0009 Error: No Property, BindableProperty, or Event Found for Border Class in .NET MAUI

I am encountering an XC0009 error while working with .NET MAUI and would appreciate any assistance in resolving this issue. Screenshot 1: Screenshot 2: In Screenshot 1, while writing the 'Shadow' property for the "Border" class, the Build +…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,916 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-10T12:40:14.9566667+00:00
Soumyadip Majumder 80 Reputation points
answered 2025-02-11T01:48:09.3866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,701 Reputation points Microsoft Vendor
0 answers

Real-time Transcription in ACS Group video calls

have been working on implementing the Azure Communication Services (ACS) real-time transcription feature and followed the steps outlined in the:…

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
996 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-01-10T05:09:32.3066667+00:00
Madushika Shiromani 0 Reputation points
commented 2025-02-10T11:02:43.1166667+00:00
Suresh Chikkam 0 Reputation points Microsoft Vendor
1 answer

Error loading file or assembly 'Interop.AcroPDFLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the specified file

Error Message: Could not load file or assembly 'Interop.AcroPDFLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Stack Trace…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-07T16:11:50.19+00:00
Usuario Datawake 0 Reputation points
commented 2025-02-10T09:32:40.9066667+00:00
Jiale Xue - MSFT 48,871 Reputation points Microsoft Vendor
1 answer

How to Save a WPF DataGrid Back to Database after Editing

Hi, I am wondering if theirs a way to save a updated Line from WPF DataGrid back to Database . I don't Know the best way to do this without going back to WinForms Apps. I would like to use WPF, any help would be appreciated.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,824 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-01-22T21:17:16.64+00:00
Luke A'Court 0 Reputation points
commented 2025-02-10T08:12:24.7733333+00:00
Hongrui Yu-MSFT 4,360 Reputation points Microsoft Vendor
1 answer

UWP C# app: Trouble doing drag and drop from home folder

I am working on a UWP app. I have implemented an event handler such that if you drag a PDF file onto our main page, we begin to process that document. This appears to work fine, so I'm pretty sure we are setting things up reasonably. The exception? …

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-07T16:25:00.2166667+00:00
Fiederer, Jens JF 20 Reputation points
commented 2025-02-10T07:45:40.0633333+00:00
Roy Li - MSFT 33,926 Reputation points Microsoft Vendor
5 answers

.Net 5.0 - Method not found "System.Object.System.Runtime.InteropService.Marshal.GetActiveObject(Stem.String)

Hi While working with .Net 4.8, the following code works as expected: var tcObject = Marshal.GetActiveObject(toolFullName); ```But after moving my project to .Net 5.0, I'm getting the following error meager: "Method not found…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2022-11-03T00:59:47.267+00:00
Nadeem Bader 21 Reputation points
edited the question 2025-02-10T07:00:13.1333333+00:00
TP 102.7K Reputation points
2 answers

How to Enable/Disable Windows Notification using C#?

Hi everyone, I want to enable/disable System > Notifications. I hope to enable or disable this option without restarting the computer. Change this not work. …

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,704 questions
asked 2025-02-06T06:02:51.7433333+00:00
崇億 張 0 Reputation points
commented 2025-02-10T06:41:15.7233333+00:00
Jiachen Li-MSFT 33,451 Reputation points Microsoft Vendor
1 answer

Get Default Display Settings stored in registry

Documentation for ChangeDisplaySettings says passing null DevMode and 0 flag will revert the monitor to the default setting stored in the registry settings. How to check what the current default setting stored in the registry is before the call?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,100 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,288 questions
asked 2025-02-04T19:05:09.29+00:00
Dave Cotton 41 Reputation points
commented 2025-02-10T01:38:12.8366667+00:00
Jiale Xue - MSFT 48,871 Reputation points Microsoft Vendor