10,656 questions with C#-related tags

Sort by: Updated
0 answers

Fixing CS1525 error with bitboards and returning ulongs

I am building a chess engine and need to use bitboards. I wrote a function that gets the Bitboards, but now I am getting a CS1525 compiler error with the ref statements. Can anyone suggest a workaround? I am still learning about C#. Thank you for any…

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,656 questions
asked 2024-07-28T09:15:53.79+00:00
Peggun 0 Reputation points
1 answer

Can't get the name of directories sorted by name

Hello experts, I need to get the name of directories sorted by name, just like what is shown in the Windows explorer. 3 folders are in a path, Windows show them in the below order: 0_35_33 7_07_10 18_16_40 But Directory.GetDirectories and…

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,656 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,670 questions
asked 2024-07-27T23:03:39.8733333+00:00
StewartBW 925 Reputation points
commented 2024-07-28T09:04:18.22+00:00
Castorix31 83,206 Reputation points
0 answers

How to fix error CS0246 (AxMSInkAuTLib) missing

After copying all of the Winforms from 1 project to another, I was not able to compile the 2nd project. Getting error CS0246 for AxMSInkAutLib.AxInkPicture (see below for the detailed error description). I think I am missing a Reference, but am unable to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,874 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,889 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,656 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,998 questions
asked 2024-07-28T01:33:46.62+00:00
Giacomo Raucci 321 Reputation points
edited a comment 2024-07-28T06:16:28.9333333+00:00
RLWA32 43,381 Reputation points
1 answer

Mysterious XAML “The name "X" does not exist in the namespace” error won't go away

I'm working on a XAML/C# project. I have a custom abstract class derived from `System.Windows.Controls.UserControl`: `PageBase`. Visual Studio 2022 keeps telling me it can't find `PageBase` in the namespace. The…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 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,656 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.
791 questions
asked 2024-07-28T01:51:58.1333333+00:00
Will Pittenger 281 Reputation points
answered 2024-07-28T02:24:41.22+00:00
Michael Taylor 51,426 Reputation points
3 answers One of the answers was accepted by the question author.

How to display and hide drop down lists based on condition drop down list ?

I work on blazor server side I have drop down list condition have 3 option server and database and owner . every option from these three options have one drop down list only so server have drop down list database have drop down list owner have drop down…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,405 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,500 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,656 questions
asked 2023-03-29T18:05:28.51+00:00
Ahmed Salah Abed Elaziz 390 Reputation points
answered 2024-07-28T01:24:31.73+00:00
Jin Kim 0 Reputation points
2 answers

Pagination not working properly in ASP.NET Core 2.1 app

Hi guys, I had implemented pagination using IPagedList with model which was successful for my ads classifieds website. This time I needed to apply with ViewModel as several models needed in this view and used StaticPagedList as it wasn't working with…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,405 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 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,656 questions
asked 2024-07-27T15:06:16.6233333+00:00
Farid GN 1 Reputation point
answered 2024-07-28T00:57:37.21+00:00
SurferOnWww 2,491 Reputation points
1 answer

Having trouble with retrieving device path using SetUpApi and Hidsdi

I'm currently having an issue with my code that detects HID devices with a specific VID and PID for joy-cons. I'm using SetUpApi and Hidsdi that I platform invoked, but the device path is only showing as question marks. Can someone assist in finding a…

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,524 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,656 questions
asked 2024-07-27T21:14:24.1833333+00:00
CakeDev 0 Reputation points
edited an answer 2024-07-28T00:41:05.1433333+00:00
Castorix31 83,206 Reputation points
0 answers

Troubleshooting Issues with .NET Project Packages

I am encountering errors with all my packages in my .NET project, even after trying to restore NuGet and clearing the cache. Can anyone provide guidance on troubleshooting and resolving this issue? Thank you.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,405 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,656 questions
asked 2024-07-27T08:45:53.02+00:00
merna elzyat 0 Reputation points
commented 2024-07-27T09:58:07.76+00:00
merna elzyat 0 Reputation points
0 answers

Cpanel email redirect

I am getting this error message too. Our company uses outlook 2010 configured as exchange.  Complete error message is "Allow this website to configure *** Email address is removed for privacy *** server settings? …

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,656 questions
asked 2024-07-27T08:00:18.9166667+00:00
Emmanuel Daniel Soyi 0 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,651 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 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,889 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.
13,366 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,656 questions
asked 2023-09-12T17:01:47.29+00:00
Niyati Savaliya 0 Reputation points
commented 2024-07-27T06:36:37.1666667+00:00
John Dyson 0 Reputation points
1 answer One of the answers was accepted by the question author.

Error inside Try that does not trigger catch

I have a function that searches for a text in a PDF viewer using the "DevExpress.Xpf.PdfViewer.PdfViewerControl" control. The variable "MyTextSearchParameter" and "ViewerControl" is not null, but the first time I run 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,656 questions
asked 2024-07-26T02:43:48.8966667+00:00
zequion 291 Reputation points
accepted 2024-07-27T03:06:39.6466667+00:00
zequion 291 Reputation points
2 answers

ReadAsStringAsync and ReadAsByteArrayAsync without Cancellationtoken

I use the latest version of VS and C# in a .Net 8 project. I have a function that retrieves the content of a remote file using HttpContent.ReadAsByteArrayAsync() and HttpContent.ReadAsStringAsync(); I can't use the CancellationToken parameter because…

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,656 questions
asked 2024-07-25T00:28:16.9133333+00:00
zequion 291 Reputation points
commented 2024-07-27T03:01:14.01+00:00
zequion 291 Reputation points
3 answers

Play an audio stream in client browse

I'm trying to send my soundcard audio to a HTTP stream with NAaudio so any browser on the LAN can open this one. Like an LAN Radiostation or something and use the default audio player from the browser. My sound is recorded with bytes, send, but 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,656 questions
asked 2024-07-20T11:24:10.01+00:00
donovan 21 Reputation points
commented 2024-07-26T19:24:01.3766667+00:00
donovan 21 Reputation points
6 answers One of the answers was accepted by the question author.

How Do I Package and install a Released compiled version version of my .Net Framework?

This might be a simple question. I searched online and there was a lot of information that seemed to be just a distraction. How Do I Package and install a Released compiled version version of my .Net Framework? Do I just need to pass along the compiled…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 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,656 questions
asked 2024-07-17T16:04:37.3133333+00:00
William Thompson 120 Reputation points
commented 2024-07-26T18:48:50.47+00:00
William Thompson 120 Reputation points
1 answer

Experiencing memory issues when connecting to Exchange Online Management using C#

I am experiencing memory issues when connecting to Exchange Online Management using C#. The process involves executing commands such as Get-User, Get-DistributionGroupMember, Add-DistributionGroupMember, and Remove-DistributionGroupMember. After each…

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,656 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,332 questions
asked 2024-07-26T03:59:40.6233333+00:00
Vishali Gupta 0 Reputation points
commented 2024-07-26T17:19:32.6966667+00:00
Vishali Gupta 0 Reputation points
1 answer

Why my app is malware?

Hi, I'm a Mac developer and I'm currently trying to submit my first Windows app to the Microsoft Store. The submission is rejected with the message: "10.2.3.1 Security - Malware", but there's no information about which part of the app is…

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,656 questions
asked 2024-07-26T14:01:56.8533333+00:00
Grzegorz 0 Reputation points
commented 2024-07-26T15:42:49.46+00:00
Grzegorz 0 Reputation points
0 answers

How to get the length of text found with CurrentCulture?

Suppose I have a text "MaxGroßenIsHere". CurrentCulture is set to "de-DE" in my app. German has the character ß, which can often be written as ss, especially in computers. Therefore,…

Universal Windows Platform (UWP)
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,524 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,656 questions
asked 2024-07-26T11:23:17.18+00:00
Heiko 1,216 Reputation points
commented 2024-07-26T15:26:17.7966667+00:00
Heiko 1,216 Reputation points
0 answers

Integration of Full Trust Process into WinUI Project

Hi, I have a question, how to integrate Full Trust Process for launching (For example, process, which changes registry entry TaskbarAl) into application like this: https://github.com/YakubMordon/Taskbar-Customizer?

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.
5,102 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.
752 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,656 questions
asked 2024-07-26T11:19:39.9366667+00:00
Jacob Mordon 65 Reputation points
edited the question 2024-07-26T12:14:05.41+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
1 answer

How to fix half downloads?

hi there, i was downloading file of 27 GB. after downloading 25 GB it got interrupted and when i am trying to resume, the same message is coming -"that due to tech issue can't be downloaded". On reaching to last moment, it got error. My…

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,656 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,808 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,998 questions
asked 2024-07-25T19:34:23.7566667+00:00
Riley Sharma 0 Reputation points
answered 2024-07-26T07:32:57.3066667+00:00
Neuvi Jiang 765 Reputation points Microsoft Vendor
0 answers

Using Xamarin.Google.UserMessagingPlatform with MAUI for presenting a GDPR consent message

I am trying to present a GDPR consent message in a MAUI app using the Xamarin.Google.UserMessagingPlatform NuGet package. I'm targeting Android 34 on .NET 8. I have used both this: https://stackoverflow.com/a/71299843/7360423 and this:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,233 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,656 questions
asked 2024-07-25T08:45:20.6933333+00:00
Costas Athan 46 Reputation points
commented 2024-07-26T06:49:15.36+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 39,396 Reputation points Microsoft Vendor