10,370 questions with C#-related tags

Sort by: Updated
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,447 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,370 questions
asked 2024-05-13T21:28:00.4833333+00:00
MERUN KUMAR MAITY 511 Reputation points
commented 2024-05-22T22:09:39.0733333+00:00
MERUN KUMAR MAITY 511 Reputation points
3 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,370 questions
asked 2024-05-17T17:14:13.93+00:00
Noah Aas 240 Reputation points
commented 2024-05-22T20:37:58.7066667+00:00
Bruce (SqlWork.com) 57,806 Reputation points
1 answer

How to create backend application using Asp.net C# Web API Core

How to create backend application using web api core application followed by standards using desing pattern, Depedency injection and solid principle I am new to web api core how to start following things JWT token authentical and authorization simple…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,235 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 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,370 questions
asked 2024-05-17T06:22:52.4166667+00:00
coder rock 196 Reputation points
commented 2024-05-22T20:06:20.3933333+00:00
AgaveJoe 26,166 Reputation points
4 answers

could not load file or assembly'Microsoft.data.sqlclient'

how to solve this error

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,687 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,879 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,370 questions
asked 2023-09-12T17:01:47.29+00:00
Niyati Savaliya 0 Reputation points
edited an answer 2024-05-22T16:14:52.2633333+00:00
Andreas G 0 Reputation points
3 answers

How to design patterns from scratch using C# asp.net MVC

I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 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,370 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 196 Reputation points
edited a comment 2024-05-22T15:22:16.89+00:00
Bruce (SqlWork.com) 57,806 Reputation points
0 answers

How to bring app to front, if already open?

How to bring the app to front, if already open? My app is Windows Form application c#

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,854 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,370 questions
asked 2024-05-22T13:25:34.1033333+00:00
Hussnain Fareed 0 Reputation points
commented 2024-05-22T13:59:42.7966667+00:00
Hui Liu-MSFT 41,146 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,370 questions
asked 2024-05-20T16:13:30.51+00:00
Tom Meier 140 Reputation points
commented 2024-05-22T13:49:02.1066667+00:00
Tom Meier 140 Reputation points
1 answer

How to access/Update Group Policy Objects using C sharp

Hi, We are referring below link to access group policies programmatically   using c sharp. https://learn.microsoft.com/en-us/previous-versions/windows/desktop/wmi_v2/class-library/gpo-class-microsoft-grouppolicy This is sample code which we have written…

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,370 questions
asked 2024-05-08T07:35:50.82+00:00
commented 2024-05-22T11:00:01.9566667+00:00
1 answer

VirtualizingStackPanel Scrollviewer height

I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…

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.
10,370 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
771 questions
asked 2024-05-22T06:12:58.1066667+00:00
shriram 80 Reputation points
edited a comment 2024-05-22T10:11:12.6066667+00:00
shriram 80 Reputation points
0 answers

Help with setting the background color when the MenuStrip dropdown menu is opened.

hello. I have organized my menu using MenuStrip. I have overridden the MenuStrip background and color with ToolStripProfessionalRenderer. I am using the MenuStrip with white text on a transparent background. When the dropdown menu is opened, the text of…

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,370 questions
asked 2024-05-22T09:00:16.8533333+00:00
Youngs 20 Reputation points
edited the question 2024-05-22T10:03:06.6566667+00:00
Youngs 20 Reputation points
2 answers

ToUpper and ToLower first char and first word

Hello, Going to convert the first letter of each word to upper and lower case, to upper is simple, but to lower? System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(---) And to convert the first word of string to upper and lower case, no…

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,370 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,601 questions
asked 2024-05-16T13:29:08.5166667+00:00
StewartBW 505 Reputation points
commented 2024-05-22T09:09:54.16+00:00
Jiachen Li-MSFT 27,241 Reputation points Microsoft Vendor
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,370 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,560 questions
asked 2024-05-21T07:19:37.4966667+00:00
Hank 0 Reputation points
commented 2024-05-22T09:02:29.0633333+00:00
Minxin Yu 10,361 Reputation points Microsoft Vendor
1 answer

Conditional compilation depending on the Framework

VC employment with Winforms, WPF and Asp.Net. All projects use the same dlls in C#. I am trying to go from .Net framework 4.8 to .Net 8 and I need to include some code in some dlls so that, at compile time, it detects whether 4.8 or .Net is being used…

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,370 questions
asked 2024-05-22T05:56:25.7866667+00:00
zequion 111 Reputation points
answered 2024-05-22T08:33:18.7933333+00:00
Jiale Xue - MSFT 35,716 Reputation points Microsoft Vendor
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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,970 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,370 questions
asked 2024-05-21T14:10:40.6733333+00:00
Federico Navarrete 616 Reputation points
edited the question 2024-05-22T08:21:05.9066667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,386 Reputation points Microsoft Vendor
1 answer

Extracting Qualtrics data to SSIS

Hi, trying to reach you if you are able to extract the data from Qualtrics to SSIS using C#, would be great if you can help me on the same. Thanks in advance.

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,370 questions
asked 2024-05-22T06:54:50.08+00:00
Sree 11 Reputation points
commented 2024-05-22T07:53:23.8466667+00:00
Sree 11 Reputation points
0 answers

How to use localized RESX in Blazor WASM?

Hi, all I want is standard "old way" usage of generated static properties of my RESX to localize texts based on CultureInfo and .culture.resx files. I've just figured out, that only difference from .NET Framework is that now in .NET 8 culture…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,235 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,370 questions
asked 2024-05-22T07:01:50.83+00:00
Rada Matěj 180 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,370 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
commented 2024-05-22T04:54:33.57+00:00
Duc Mai 0 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,687 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,970 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,370 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 0 Reputation points
commented 2024-05-22T02:58:41.25+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,951 Reputation points Microsoft Vendor
1 answer

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,970 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,370 questions
asked 2024-05-11T02:31:41.49+00:00
wire_jp 206 Reputation points
commented 2024-05-22T01:47:57.72+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,951 Reputation points Microsoft Vendor
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,307 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
900 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,370 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