10,362 questions with C#-related tags

Sort by: Updated
2 answers

REST interface, server

Hello, the request is ok. I have a request and would now like to create a test server (mock sever). To see if the interface works and I can develop with test data. All that is required is a defined response. What options do I have to achieve this? I…

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.
10,362 questions
asked 2024-05-17T17:14:13.93+00:00
Noah Aas 240 Reputation points
edited an answer 2024-05-21T08:51:23.01+00:00
Jiale Xue - MSFT 35,556 Reputation points Microsoft Vendor
0 answers

How to Disable/Enable Audio Hardware Acceleration in Windows 11?

Hi there, I would like to Disable/Enable Audio Hardware Acceleration programmatically in Windows 11. Is there any way to implement it? Thanks. Best regards, Hank

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.
10,362 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,556 questions
asked 2024-05-21T07:19:37.4966667+00:00
Hank 0 Reputation points
0 answers

How to Integrating Windows WebAuthn API with Custom Credential Provider in WPF C#

I've developed a Custom Credential Providers application that interacts with the Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() method for Authentication using Window Hello or External Fido2 Security Key. However, the CredentialUIBroker.exe…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,830 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,447 questions
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,686 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.
10,362 questions
asked 2024-05-20T12:24:14.5966667+00:00
Harshit Patidar 0 Reputation points
edited a comment 2024-05-21T06:46:46.19+00:00
Hongrui Yu-MSFT 175 Reputation points Microsoft Vendor
0 answers

Dropbox on .NET Maui

I am trying to get Dropbox to work in .net maui. I have it working fine in xamarin.ios, it open a browser and get them to login, then when the go back from the browser, the app is receives the redirect in appdelegate.cs to get the auth token and use it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,966 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.
10,362 questions
asked 2024-05-12T21:27:18.04+00:00
Phunction 206 Reputation points
commented 2024-05-21T05:52:52.6166667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,951 Reputation points Microsoft Vendor
0 answers

Android Emulator waiting for debugger to attach in .net maui app

I upgraded my .net maui app from .net 7 to .net 8 and updated my nuget packages. I built the output solution but deployment was not successful as I had received the error message:- Xaml XC002 erro: Binding could be compiled if x:datatype is specified…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,966 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.
10,362 questions
asked 2024-05-11T02:31:41.49+00:00
wire_jp 206 Reputation points
commented 2024-05-21T05:34:11.65+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,951 Reputation points Microsoft Vendor
7 answers

How to target .NET Framework 4.0 in VS 2022 on Windows 11?

Working on some old projects targeting .NET Framework 4.0. I used VS 2022 to open the solution and was told to install 4.0 targeting pack. I can't find the download link on the dotnet website, nor the installation option in Visual Studio Installer. …

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.
10,362 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,130 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
948 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,382 questions
asked 2022-09-05T07:41:23.313+00:00
Lee Feng 136 Reputation points
answered 2024-05-21T04:59:14.85+00:00
Ziya Ganjili 20 Reputation points
1 answer

How to Increase/Decrease mouse pointer moving speed on a WPF application surface?

Hi there, I have a simple WPF application where I need to control the mouse pointer speed. Suppose I run the application and as soon as my mouse pointer enter the application area, the mouse pointer speed should be increase and I want some more…

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,686 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,442 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.
10,362 questions
asked 2024-05-13T21:28:00.4833333+00:00
MERUN KUMAR MAITY 511 Reputation points
commented 2024-05-21T03:16:04.15+00:00
Hongrui Yu-MSFT 175 Reputation points Microsoft Vendor
2 answers

Why is the GetReservations method not running asynchronously?

I am having trouble getting the GetReservations method to run asynchronously in my ReservationListingViewModel class in C#. Can someone please help me understand what I'm doing wrong? And I am also having an issue with using _reservations as private…

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.
10,362 questions
asked 2024-05-20T16:13:30.51+00:00
Tom Meier 140 Reputation points
answered 2024-05-21T03:14:21.56+00:00
Jiale Xue - MSFT 35,556 Reputation points Microsoft Vendor
3 answers

Javascript Gridview checkbox alert message not working properly.

I am using javascript validation in gridview. I have selected checkboxes in the gridview. but, still it's throwing alert message unncessarily. where is the problem in the below code. kindly update asap if anyone identified the issues. or pls. provide…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,303 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.
10,362 questions
asked 2024-05-19T14:52:29.7566667+00:00
Gani_tpt 1,706 Reputation points
commented 2024-05-21T01:21:56.0266667+00:00
Gani_tpt 1,706 Reputation points
0 answers

Ignoring macro error messages while running app

I have the following error message in this screenshot below: I need to resolve this issue, so that users won't see that message when they run my app if I package and deploy it.

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
687 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.
10,362 questions
asked 2024-05-15T12:17:54.08+00:00
John 426 Reputation points
commented 2024-05-21T00:33:41.0133333+00:00
John 426 Reputation points
1 answer One of the answers was accepted by the question author.

Div <li> menu color not updating properly in ASP.NET master page c#

I am using menu control using <ul> and <li> tag. I am trying to apply some different color while menu selected. But, applying color not reflected in menu. (particularly white color for text in the menu) what will be the problem in the below…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,303 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.
10,362 questions
asked 2024-05-18T13:29:33.9266667+00:00
Gani_tpt 1,706 Reputation points
commented 2024-05-20T17:28:31.4333333+00:00
Gani_tpt 1,706 Reputation points
3 answers

How to make loader image show on every page when user click on any task

I have a webform application with master page, I want when user initiate any task in the website the loader image will show with modal screen untill the task is finished. below is my master page code. <script type="text/javascript"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,303 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
907 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.
10,362 questions
asked 2024-05-19T04:01:14.2433333+00:00
Emeka Okoye 46 Reputation points
answered 2024-05-20T17:11:16.9833333+00:00
Bruce (SqlWork.com) 57,646 Reputation points
1 answer One of the answers was accepted by the question author.

Rename mdb column

Hello I use Access Database Engine and OleDbReader to work with mdb and accdb files, need to rename a column: "ALTER TABLE xc RENAME Column old new LONG" Searched and found ADE might not support it, what if I add a new column and drop the old…

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.
10,362 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,602 questions
asked 2024-05-17T23:55:41.8966667+00:00
StewartBW 465 Reputation points
accepted 2024-05-20T14:59:02.35+00:00
StewartBW 465 Reputation points
0 answers

Interop.Excel always saving in default path even specifying the path manually for Office 365

Trying to create an Excel file using Office.Interop.dll (15.0.4795.1001).But it is taking the default file path instead of the path which set manually. if (extensionObj != null) { relativeExcelPath =…

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.
10,362 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,570 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,657 questions
asked 2024-05-20T11:08:56.84+00:00
Venkatachalam S1 0 Reputation points
1 answer

Error when uploading CSV files to Azure blob storage using ManagedIdentity with C# and GraphQLAPI. "Total size of resourceFiles is using 147% of available space after processing."

Hello All, I have created a console app using C# where I try to fetch the data from GraphQLAPI and store the data in csv files. post that it would be uploaded to the Azure blob storage using ManagedIdentity. This complete code work fine in my local VS…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,231 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,303 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,717 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.
10,362 questions
asked 2024-05-15T08:40:14.42+00:00
Siddhesh Chavan 0 Reputation points
commented 2024-05-20T10:49:02.6166667+00:00
ShaikMaheer-MSFT 38,126 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Unable to restore a deleted user with graph API

I am trying to restore a deleted user via graph API. I am following the documentation here: https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-restore?view=graph-rest-1.0&tabs=http I have created an azure application and add…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,817 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.
10,362 questions
asked 2024-05-20T07:01:27.64+00:00
Yasitha Pandithawatta 121 Reputation points
accepted 2024-05-20T09:42:24.3533333+00:00
Yasitha Pandithawatta 121 Reputation points
2 answers

Azure Functions - Logging not working correctly in local

I have a simple dotnet-isolated Azure function written in .Net 8 which has 1 Http trigger function. I have another custom database logger which is added to this function to enable database logging. When I am executing the function, none of the Microsoft…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,357 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.
10,362 questions
asked 2024-04-17T14:04:02.69+00:00
Singh, Rahul 1 Reputation point
answered 2024-05-20T08:46:18.9933333+00:00
Pinaki Ghatak 2,400 Reputation points Microsoft Employee
1 answer

how to read dxf file content text?

Hi every body I have a DXF file format that have drawing and text in it. I want to extract text from this file but I have no idea t odo that. can any one help me? 4-FUG-16802-AAR61-N_Sht_1.txt and dxf file(i change dxf extension to txt to upload it)

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.
10,362 questions
asked 2024-05-18T05:02:23.39+00:00
Farshad Valizade 381 Reputation points
commented 2024-05-20T08:19:03.3066667+00:00
Castorix31 82,031 Reputation points
0 answers

I want to update shared step in my testcase using C# program

I want to update shared steps in my testcase using C# program, I was able to get the shared steps reference with below code, but found that it is not updating the shared steps in tfs.. giving error "The ids and revisions collections must have the…

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.
10,362 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,000 questions
asked 2024-05-20T07:48:00.78+00:00
Amey Pimpley 21 Reputation points
0 answers

how to make an object from txt file ?

hi I want to read line by line this kind of file. and make object from each TEXT tag how can I do that? file contents: TEXT 8 GT_1 10 748.286 20 495.939 40 3.25000 1 EPPPSP1510AZZ01S8 41 1.02000 7 HTX1 0 TEXT 8 GT_1 10 804.000 20 495.939 …

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.
10,362 questions
asked 2024-05-20T05:48:17.8233333+00:00
Farshad Valizade 381 Reputation points
edited a comment 2024-05-20T07:20:25.8366667+00:00
Jiale Xue - MSFT 35,556 Reputation points Microsoft Vendor