10,417 questions with C#-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

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,691 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,455 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,417 questions
asked 2024-05-13T21:28:00.4833333+00:00
MERUN KUMAR MAITY 531 Reputation points
accepted 2024-05-25T14:34:14.33+00:00
MERUN KUMAR MAITY 531 Reputation points
2 answers One of the answers was accepted by the question author.

How to maintain ajax text box calander control value after save button clicked

I am using asp.net text box control for date picking..for that, i am using ajax calander extender. Here, is facing issue that, date control values will be clearing after save button clicked...here I want to maintain the date values till I manually…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,417 questions
asked 2024-05-18T04:24:53.3166667+00:00
Gani_tpt 1,806 Reputation points
accepted 2024-05-25T08:44:29.8533333+00:00
Gani_tpt 1,806 Reputation points
1 answer One of the answers was accepted by the question author.

Open Word Document in .Net

I'm trying to convert a C# Framework 4,.8 application to .Net 8. If I include the line: dynamic MyWordApplication = new Microsoft.Office.Interop.Word.Application(); An error occurs: {"Could not load file or assembly 'office, Version=15.0.0.0,…

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,417 questions
asked 2024-05-24T02:04:11.6966667+00:00
zequion 171 Reputation points
accepted 2024-05-25T05:45:55.14+00:00
zequion 171 Reputation points
3 answers

DataGridView RowCount vs Rows.Count

Hello, RowCount: Gets or sets the number of rows displayed in the DataGridView Rows.Count: Returns the number of rows What does it mean, when they can have different values? The only condition I can imagine is if a row is invisible, then RowCount does…

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,417 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,612 questions
asked 2024-05-24T14:28:36.5866667+00:00
StewartBW 565 Reputation points
commented 2024-05-24T22:47:53.43+00:00
StewartBW 565 Reputation points
2 answers

EF Core doesn't recognize many-to-many relationship

I have a many-to-many relationship, altough EF Core seems not to recognize it. The relationship exists between JobOffer and JobOfferTag. JobOffer inherits from BaseJobOffer. BaseJobOffer.cs public class BaseJobOffer { [Required] …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
706 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,417 questions
asked 2024-05-23T15:23:05.96+00:00
iKingNinja 60 Reputation points
answered 2024-05-24T07:21:04.53+00:00
Hongrui Yu-MSFT 420 Reputation points Microsoft Vendor
2 answers

framework realated question

what is frame in framework for .net applicatons like .net framework 3.5 and what it indicates for frames

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
706 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,945 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,417 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.
309 questions
asked 2024-05-10T16:37:37.01+00:00
Siddangoud Bharamagoudar 61 Reputation points
commented 2024-05-24T07:17:27.83+00:00
Lan Huang-MSFT 26,761 Reputation points Microsoft Vendor
0 answers

Performance Discrepancy Between Templated Control and Direct Implementation

I encountered a performance issue while working on a project where I utilized two identical buttons with all properties set the same. The only difference was in the content: one button utilized a PathIcon inside a Viewbox, while the other utilized a…

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.
735 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,417 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.
773 questions
asked 2024-05-24T05:00:57.4466667+00:00
Muthu S 20 Reputation points
commented 2024-05-24T06:24:29.9+00:00
Xiaopo Yang - MSFT 11,661 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.
3,011 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,417 questions
asked 2024-05-12T21:27:18.04+00:00
Phunction 206 Reputation points
commented 2024-05-24T03:18:49.1266667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,186 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

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,417 questions
asked 2024-05-17T17:14:13.93+00:00
Noah Aas 260 Reputation points
accepted 2024-05-23T17:12:21.92+00:00
Noah Aas 260 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,253 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,803 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,417 questions
asked 2024-05-15T08:40:14.42+00:00
Siddhesh Chavan 0 Reputation points
commented 2024-05-23T16:50:15.2666667+00:00
ShaikMaheer-MSFT 38,291 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

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,858 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,417 questions
asked 2024-05-22T13:25:34.1033333+00:00
Hussnain Fareed 20 Reputation points
edited a comment 2024-05-23T14:05:09.5666667+00:00
KOZ6.0 5,375 Reputation points
1 answer

Get Sql instances in .Net

How can I retrieve a DataTable from Sql Server instances in .Net? In the .Net Framework it was done this way: SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance; DataTable table = instance.GetDataSources(); string…

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,417 questions
asked 2024-05-23T09:46:11.3966667+00:00
zequion 171 Reputation points
edited an answer 2024-05-23T13:53:57.8266667+00:00
Hui Liu-MSFT 44,631 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,417 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,571 questions
asked 2024-05-21T07:19:37.4966667+00:00
Hank 0 Reputation points
commented 2024-05-23T13:30:04.0133333+00:00
Castorix31 82,206 Reputation points
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,417 questions
asked 2024-05-20T16:13:30.51+00:00
Tom Meier 140 Reputation points
commented 2024-05-23T09:34:21.6166667+00:00
Jiale Xue - MSFT 38,021 Reputation points Microsoft Vendor
1 answer

Microsoft Visual Studio Community 2022 (64-bit) - Version 17.9.7

I am using C# from the above. For a simple one file console app, I get a compile error saying "ProgA (namespace) already contains a Program class." It does not - there is just 1 file with a single definition internal class Program put there…

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,417 questions
asked 2024-05-23T03:26:02.4566667+00:00
PeeJay48 0 Reputation points
commented 2024-05-23T08:39:04.26+00:00
Jiale Xue - MSFT 38,021 Reputation points Microsoft Vendor
1 answer

Execute external javascript embedded in inline html from .net Maui windows desktop application

0 I have an Html code embedded in C# .net MAUI windows desktop application. The Html references to external javascript files but this code doesn't work in .net MAUI solution for windows desktop app. any possible leads to this problem? The .js files are…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,011 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,417 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,489 questions
asked 2023-12-12T11:23:39.7333333+00:00
Leon Rodrigues 0 Reputation points
commented 2024-05-23T03:04:15.73+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,186 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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,417 questions
asked 2024-05-22T05:56:25.7866667+00:00
zequion 171 Reputation points
accepted 2024-05-22T23:06:19.9166667+00:00
zequion 171 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,480 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,722 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,945 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,417 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,480 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,417 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 216 Reputation points
edited a comment 2024-05-22T15:22:16.89+00:00
Bruce (SqlWork.com) 58,206 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,417 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,612 questions
asked 2024-05-16T13:29:08.5166667+00:00
StewartBW 565 Reputation points
commented 2024-05-22T09:09:54.16+00:00
Jiachen Li-MSFT 27,406 Reputation points Microsoft Vendor