10,054 questions with C#-related tags

Sort by: Updated
1 answer

Localize a DatePicker on Android using .Net Maui

Hi , i'm working with .net Maui 8 , and i want to use datepicker. it display name of days, months in English or i want it in french. i refer to learn page https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/datepicker?view=net-maui-8.0 …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 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,054 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.
750 questions
asked 2024-03-18T12:19:47.7466667+00:00
Kaouthar GR AOUICHAOUI 20 Reputation points
answered 2024-03-19T07:24:34.49+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,096 Reputation points Microsoft Vendor
0 answers

Extracting Data from Excel Cells Derived from Complex Calculations Across Multiple Sheets

I'm encountering a challenge in extracting data from an Excel cell that derives its value from complex calculations spanning multiple sheets. The data source involves calculated fields from various tables, making the extraction process intricate. How can…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,372 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,054 questions
asked 2024-03-19T06:53:42.8133333+00:00
Nitesh Kumawat 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to use Split in listbox click

Hi All, I want to use split in listBox3_SelectedIndexChanged but still fail.In previuos thread cannot help in situation. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using…

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,054 questions
asked 2022-07-13T12:45:07.163+00:00
MiPakTeh 1,476 Reputation points
edited the question 2024-03-19T06:35:12.9966667+00:00
Jiale Xue - MSFT 21,441 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to bind a button's command inside a data template in winUI3

I am working on a project using WinUI3. You want to create navigation in the Main Window and modify the Header with DataTemplate. How do I do the <button command="{binding}" within the data template at this time? <NavigationView…

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.
705 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,054 questions
asked 2024-03-08T06:38:16.55+00:00
차준혁 40 Reputation points
accepted 2024-03-19T02:13:53.0933333+00:00
차준혁 40 Reputation points
1 answer

Save X509Certificate2 as P7B / PKCS#7

Hello I need to select a X509Certificate2 from a store and save it as PKCS#7 with P7B extension, the same format as we save with certmgr as p7b. I'm using .NET Framework 4.8 WinForms, anyone knows a working solution for that? 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,054 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,528 questions
asked 2024-03-16T20:53:16.83+00:00
Peter Volz 1,295 Reputation points
commented 2024-03-18T23:31:37.0866667+00:00
Peter Volz 1,295 Reputation points
0 answers

get a value of the row or item in ListView using a Button in Xaml

Currently I am able to get the value I have set the SelectedItem property to of the .Net Maui ListView by selecting an item in the ListView. However, I now have a button on every row of the listview that I would like to be able to click on and get a…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 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,054 questions
asked 2024-03-18T16:01:46.2766667+00:00
Tom Meier 0 Reputation points
edited a comment 2024-03-18T21:52:44.7766667+00:00
Tom Meier 0 Reputation points
1 answer

How do I enable the optional language extraction feature while calling the documentAnalysisClient and in the method AnalyzeDocumentAsync in SDK using C# with the 2023-07-31(GA) api version

How do I enable the optional language extraction feature while calling the documentAnalysisClient and in the method AnalyzeDocumentAsync in SDK using C# with the 2023-07-31(GA) api version

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,054 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,272 questions
asked 2024-03-13T09:17:03.15+00:00
answered 2024-03-18T21:52:34.38+00:00
VasaviLankipalle-MSFT 12,566 Reputation points
1 answer

System.IO.Ports only availble on windows, but im using windows - .NET6

So i'm trying to read arduino serial from c#, but it shows me the folowing exeption when i try to open the port: System.PlatformNotSupportedException: 'System.IO.Ports is currently only supported on Windows I am currently using windows 11. Also i tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 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,054 questions
asked 2024-03-17T16:58:29.7233333+00:00
Borda Ákos 0 Reputation points
commented 2024-03-18T18:16:53.5066667+00:00
David Lowndes 2,065 Reputation points MVP
2 answers

Ternary function - Type of expression cannot be determined.... conversion between <ActionResult> and Task<String>

I'm using an ternary expression in my code, LINQ Query statement as such: Type of conditional expression cannot be determined because there is no implicit conversion between…

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,054 questions
asked 2024-03-05T15:13:24.52+00:00
Cloud Developer 1 Reputation point
edited a comment 2024-03-18T16:36:55.74+00:00
Cloud Developer 1 Reputation point
1 answer

Як виправити Сообщение 102, уровень 15, состояние 1, строка 2 Incorrect syntax near '.'.

SELECT Student.FirstName, Student.LastName, Student.Surname,[Group].NameGroup Stat.NameStat FROM Student, Stat [Group] WHERE Student.StatID = Stat.ID AND Stat.NameStat = 'Жінка' AND Student.GroupID = [Group].ID AND [Group].NameGroup = 'IT-31'

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,054 questions
asked 2024-03-18T11:42:54.21+00:00
murka 0 Reputation points
commented 2024-03-18T12:37:18.7933333+00:00
murka 0 Reputation points
1 answer

How to troubleshoot registration errors particularly in the RegisterModel page and carefully review the server-side registration process to implement sweetalert pop up.

I can not register with this code. I am encountering registration errors despite the notification popping up but i would get is error message and can't register, how to address issues with the server-side registration process or with how the form data is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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,054 questions
asked 2024-03-18T07:09:55.7933333+00:00
MiKhel Navarra 20 Reputation points
edited an answer 2024-03-18T12:27:07.67+00:00
AgaveJoe 25,841 Reputation points
0 answers

How to use Microsoft Azure DeviceClient with MQTT in .Net Framework 4.6.1

For a legacy WinForms application (.NET Frm. 4.6.1), I need to use Azure IOT device client to send events. When trying to create an instance like below with MQTT type, It throws "Operation is not supported on this platform." error. DeviceClient…

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
373 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 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,054 questions
asked 2024-03-17T14:01:38.5733333+00:00
dheeraj awale 1 Reputation point
commented 2024-03-18T11:35:17.42+00:00
AshokPeddakotla-MSFT 25,691 Reputation points
1 answer One of the answers was accepted by the question author.

Empty element in XML throws error while deserialization

I was trying to de-serialize XML elements to an object. In that XML file, there is an empty element like below <enddate/>. It throws incorrect XML file error. I tried options like Isnullable, get set method etc. See below Still not able to fix…

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,054 questions
asked 2024-03-18T07:42:45.8966667+00:00
Maheswaran Monoharan 45 Reputation points
accepted 2024-03-18T10:40:49.42+00:00
Maheswaran Monoharan 45 Reputation points
1 answer

System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0

I have a WebApplication with framework v4.7.2. The newtonsoft dll which was exist in 10.0.0.0 version. now I want to upgrade it to 13.0.1. But it not worked. I tried removing all the Newtonsoft json and re-installing it but no luck. Please help me. I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 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,054 questions
asked 2024-02-22T14:05:33.5333333+00:00
Rajesh Bargode 0 Reputation points
commented 2024-03-18T09:56:55.8733333+00:00
Rajesh Bargode 0 Reputation points
1 answer

NET MAUI V8.0 App - Issues with XAML page and await client.GetObjectAsync() for AWS S3 bucket

Hello, I am working on a NET MAUI V8 App that uses AWS S3 for file access. However, I am experiencing weird behavior when executing the following line of code: using (GetObjectResponse response = await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 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,054 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.
750 questions
asked 2024-03-14T22:47:23.2366667+00:00
Riffy 276 Reputation points
answered 2024-03-18T06:33:58.2966667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,071 Reputation points Microsoft Vendor
4 answers

Why are Backspace, Enter, Navigation keys not working while editing any file in Visual Studio?

I am using Visual Studio Extensions, while creating a new solution through extension for the first time, we are only able to type alphabets. Backspace, Enter, Navigation keys are not working while editing any file. But when we force close the solution,…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,482 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,054 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
165 questions
asked 2023-02-23T04:57:49.38+00:00
Apurva Kamshetty 25 Reputation points
edited a comment 2024-03-18T05:17:29.9233333+00:00
DangDKhanh-2637 941 Reputation points
5 answers

Reload the page to restore functionality, Blazor Server .NET 8

I am here to complain about the famous error: Could not reconnect to the server. Reload the page to restore functionality. I develop Apps using .NET 8 and Blazor Server My customers use the App on mobile phone but if they turned off the screen for while…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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,343 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,054 questions
asked 2024-03-10T19:51:17.2366667+00:00
Waleed 1 Reputation point
commented 2024-03-17T15:41:25.2366667+00:00
Bruce (SqlWork.com) 53,251 Reputation points
1 answer

How to link and use Azure Communication Services with Azure Cognitive Services (Text-to-speech) in C#?

Hi, we're using Azure Communication Services (ACS) to send Emails, SMS text messages and make Voice phone calls (Robo calls). Everything is outbound communication.  For Voice, we want to use the Text-to-speech (TTS) feature of Azure Cognitive Services.…

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,054 questions
asked 2023-07-25T10:20:32.3866667+00:00
Pieterjan Verspille 10 Reputation points
commented 2024-03-17T15:18:41.59+00:00
Félix Mondelo 1 Reputation point
7 answers

How to save all the updates in a datagrid (set of comboboxes) MVVM back to the database in WPF C#?

I have similar issue as @Mesh Ka working on the filtering between comboboxes. https://learn.microsoft.com/en-us/answers/questions/1481853/filtering-a-combobox-in-a-datagrid-based-on-anothe Thanks for the solution! The challenge I have is to save all the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 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,638 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,054 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.
750 questions
asked 2024-02-22T18:34:30.8433333+00:00
Yvon 0 Reputation points
edited a comment 2024-03-17T06:45:36.31+00:00
Peter Fleischer (former MVP) 19,056 Reputation points
0 answers

How to fix the SMTP address has no mailboxes associated with it error in .net dll

We are using a .net dll to read an outlook emails using exchnager url and the version. It was working fine untill couple of days ago then I started to get failed to extract mail id from outlook - the stmp address has no mailboxes with it. Ther version is…

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,000 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 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,054 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
500 questions
asked 2024-03-11T14:43:46.6466667+00:00
Lakshmi0766 0 Reputation points
commented 2024-03-17T03:41:28.8666667+00:00
Jayce Yang-MSFT 711 Reputation points Microsoft Vendor