10,364 questions with C#-related tags

Sort by: Updated
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,364 questions
asked 2024-05-20T16:13:30.51+00:00
Tom Meier 140 Reputation points
commented 2024-05-21T22:27:23.9433333+00:00
Tom Meier 140 Reputation points
3 answers One of the answers was accepted by the question author.

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,306 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
898 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,364 questions
asked 2024-05-19T04:01:14.2433333+00:00
Emeka Okoye 66 Reputation points
accepted 2024-05-21T20:24:34.7833333+00:00
Emeka Okoye 66 Reputation points
0 answers

Custom fonts not working when uploading Maui Android project to Play Store

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,684 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,968 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,364 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 0 Reputation points
1 answer

Rendering issues with our .Net application post windows patch

Recently, we've encountered rendering issues with our .NET application following a Windows patch update for Windows 10 Version 22H2. Specifically, after applying the cumulative update for .NET Framework 3.5, 4.8, and 4.8.1, we've noticed intermittent…

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,364 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
asked 2024-05-16T16:21:59.7033333+00:00
SusanA 0 Reputation points
answered 2024-05-21T15:47:13.07+00:00
Michael Taylor 49,166 Reputation points
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,364 questions
asked 2024-05-17T17:14:13.93+00:00
Noah Aas 240 Reputation points
edited a comment 2024-05-21T14:58:40.1333333+00:00
Noah Aas 240 Reputation points
0 answers

How to exclude some libraries to be trimmed in .NET 8 for Android, not MAUI?

I've been migrating my app from Xamarin.Android to .NET 8 and I'm getting some issues since I don't have an option to exclude some libs that existed in Xamarin: But in .NET 8 for Android in Visual Studio 2022, there is nothing like that: I tried to add…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,300 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,452 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,364 questions
asked 2024-05-21T14:10:40.6733333+00:00
Federico Navarrete 616 Reputation points
3 answers One of the answers was accepted by the question author.

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,306 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,364 questions
asked 2024-05-19T14:52:29.7566667+00:00
Gani_tpt 1,706 Reputation points
accepted 2024-05-21T13:20:46.7966667+00:00
Gani_tpt 1,706 Reputation points
1 answer

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,364 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,557 questions
asked 2024-05-21T07:19:37.4966667+00:00
Hank 0 Reputation points
answered 2024-05-21T10:10:40.45+00:00
1 answer

Submitting EXE to Microsoft Store: Uninstall Policy 10.2.7

I've submitted an app-EXE to Microsoft Store. It was rejected. App review report says EXE does not comply with Security policy 10.2.7: Products need to clearly communicate how they can be removed. There is either no entry for your product in the Add or…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,684 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
886 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,364 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
975 questions
asked 2023-02-08T18:16:30.34+00:00
TamSoft 0 Reputation points
edited a comment 2024-05-21T09:43:07.54+00:00
Sai Jarugula 0 Reputation points
1 answer

manage Exchange Mailbox permission using C# windows application

hi folks, i would like to design a windows application which will do below. is it possible to develop using C# ? Connect to Exchange Online. Add/Remove mailbox fullaccess. Add/Remove SendAs or Sendonbehalf access. Set mailbox forwarding Thanks …

Microsoft Exchange Online
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 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,364 questions
asked 2024-05-17T12:23:46.4633333+00:00
Meher, Shankar (CORP) 0 Reputation points
commented 2024-05-21T09:39:34.01+00:00
Jiale Xue - MSFT 35,556 Reputation points Microsoft Vendor
1 answer

Adding tags to SharePoint file with Graph Service Client

Hiya, I'm currently working on a project where the goal is to automatically update SharePoint. Recently, I stumbled upon a problem with adding tags to an item. I have a multi choice property in SharePoint, but I can't seem update this with the graph api.…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,825 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,364 questions
asked 2024-04-15T12:55:23.17+00:00
ThibaultVerlinde-4578 120 Reputation points
commented 2024-05-21T09:36:24.5133333+00:00
ThibaultVerlinde-4578 120 Reputation points
1 answer One of the answers was accepted by the question author.

how to clear selected check box in gridview when click clear button

how to clear selected check box in gridview. when i click clear button, all paging selected check box should clear by default. How to do this..?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 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,364 questions
asked 2024-05-18T13:34:00.7266667+00:00
Gani_tpt 1,706 Reputation points
accepted 2024-05-21T09:17:57.6933333+00:00
Gani_tpt 1,706 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,833 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,452 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,364 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,968 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,364 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,968 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,364 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,364 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.
949 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,383 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,443 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,364 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
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.
689 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,364 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,306 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,364 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
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,364 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,603 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