11,797 questions with Developer technologies | C# tags

Sort by: Updated
2 answers

TCP Listener on Localhost causes application to crash Start() without any exception being thrown

I have a use case where I am creating a TCP listener on Localhost with a specific portnumber. However , in x86 , the app crashes when I try to start the listener (i.e., listener.Start()). There is no exception being thrown and I have determined that the…

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-15T10:31:22.0333333+00:00
Anuran Gupta 0 Reputation points
commented 2026-05-22T07:40:17.7033333+00:00
Varsha Dundigalla(INFOSYS LIMITED) 5,025 Reputation points Microsoft External Staff
2 answers

How to attestation for verify pc security boot,... by using TPM Azure Attestation in C# Project

1.My project uses C# along with nuget: ,,,,,,,,,,,,,,,,,,,,,,,,,,,

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-05T07:59:02.9266667+00:00
PThanh 0 Reputation points
commented 2026-05-22T02:28:25.5266667+00:00
Nancy Vo (WICLOUD CORPORATION) 4,520 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

How can I set my OneDrive as a Trusted Location

I am creating a VSTO Template for Microsoft Word using Visual Studio 2019. I have created a GitHub repository https://github.com/MikeWilliams-UK/Word-VSTO-Template to share generic code. I have documented my journey in getting this working in the…

Microsoft 365 and Office | Development | Other
Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2021-07-14T10:07:23.843+00:00
Mike Williams 241 Reputation points
commented 2026-05-20T15:37:24.7833333+00:00
Garry Cross 0 Reputation points
5 answers

Hur man löser denna uppgift i C# för årskurs 1.

Hur man löser denna uppgift i C# för årskurs 1. jag vill designa ett fönster som innehåller två stycken textboxar. I dem ska du kunna skriva in två heltal. Skapa också två etiketter(labels). När man trycker på en knapp så ska datorn sedan kontrollera om…

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-20T06:52:43.9033333+00:00
Keven Day 0 Reputation points
commented 2026-05-20T08:35:10.6366667+00:00
Varsha Dundigalla(INFOSYS LIMITED) 5,025 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

how to get the min value of IEnumerable?

what I want to do is to make the Y begin from 0 and I get the min value and then - min value but I get - value. which is not right.

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-19T04:19:29.0633333+00:00
mc 7,106 Reputation points
commented 2026-05-20T07:45:14.12+00:00
Varsha Dundigalla(INFOSYS LIMITED) 5,025 Reputation points Microsoft External Staff
3 answers

Incorrect Math Result

What is wrong with this? It produces the correct result sometimes. The for loop works correctly 100% of the time. good.png bad.png static void Main(string[] args) { List<int> numbers = new List<int>() { 1, 2,…

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-06T19:19:03.1366667+00:00
Jude Grey 0 Reputation points
commented 2026-05-19T18:01:28.34+00:00
Jude Grey 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to reduce JPEG file size after compressing images using C# System.Drawing in .NET 6?

I am building a web application on Azure App Service using .NET 6 and the System.Drawing.Common library. I need to upload and compress multiple JPEG images that users submit via a form. Currently, I am using the Image.Save() method with Encoder.Quality…

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-11T05:37:43.6833333+00:00
Shakeel khan 25 Reputation points
edited the question 2026-05-19T07:45:14.21+00:00
Alexandra Tanasescu 0 Reputation points Moderator
1 answer

Azure durable functions are not invoked when used with Q trigger using managed identity

Working with managed identity with durable functions and is working fine. Once we add the Q trigger function with the same storage account using managed identity then the things are not working. Issue is the durable functions are not getting invoked and…

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

6,464 questions
Azure Managed Applications
Azure Managed Applications

An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.

217 questions
Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2024-07-31T09:41:02.9333333+00:00
Anuraj Rajagopal 0 Reputation points
answered 2026-05-18T19:30:12.16+00:00
Amira Bedhiafi 41,641 Reputation points MVP Volunteer Moderator
1 answer

New outlook (2024) drag drop problem

Hello, I have an application where a user drops a mail (from outlook 365) and I make a copy of the mail) for archive purpose. All is working perfectly but I have seen a message telling me that there will be a new outlook in 2024 (that I can try) and it…

Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2023-12-07T12:23:59.95+00:00
Marc Al 206 Reputation points
answered 2026-05-14T10:58:46.8733333+00:00
Wolfgang Knauf 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to update Sharepoint list item hyperlink column

I'm trying to update hyperlink column with the following request PATCH https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/fields Content-Type application/json Request body: { "OriginalImageLink": { …

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2021-11-30T08:03:33.697+00:00
Macháček Martin 306 Reputation points
accepted 2026-05-14T10:02:49.1533333+00:00
Macháček Martin 306 Reputation points
2 answers One of the answers was accepted by the question author.

How can I create a Datagrid with a nested Datagrid with multiple row in WPF and C#?

I have 2 classes, the first one is Wire class and the second is Subwire Class. A Wire can have 1 to many Subwires so the nested datagrid of Subwire can have multiple rows for 1 Wire Row. The datagrid shouyld show the Wire and when we click on an expander…

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-12T18:15:14.1066667+00:00
NicoCord 21 Reputation points
commented 2026-05-14T04:19:47.97+00:00
Nancy Vo (WICLOUD CORPORATION) 4,520 Reputation points Microsoft External Staff Moderator
2 answers

How to let VirtualFileDataObject include empty folders

Hi, I’m creating a WPF app to drag virtual files out to explorer, using source code from https://dlaa.me/blog/post/9923072   I need my drag-out files to include some empty folders, but how can I do that.   Or can I detect the target path where I drop…

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-12T09:38:18.7466667+00:00
Mad Tom 5 Reputation points
commented 2026-05-12T13:39:55.17+00:00
Gade Harika (INFOSYS LIMITED) 2,850 Reputation points Microsoft External Staff
3 answers One of the answers was accepted by the question author.

where to start if I want to learn C#

where should I start if I want to learn C#, I have no previous C# knowledge, but have a lot of experience in C++

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-08T19:34:41.1633333+00:00
Vladislav Velimirovic 60 Reputation points
accepted 2026-05-11T13:44:16.2033333+00:00
Vladislav Velimirovic 60 Reputation points
2 answers

Null entry

How to write a code that can help with an entry null

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-03T07:35:51.94+00:00
ING Docteur Bazile "Pouchon" 0 Reputation points
commented 2026-05-07T02:26:21.66+00:00
Nancy Vo (WICLOUD CORPORATION) 4,520 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Some codes are not well called (or run)

Hi, Running against the file below https://1drv.ms/u/c/17ec75244bac022f/IQDksn7oBvAGSqa3I9pz8_dKAapU4-FWHovxVRFlkwrT5Tg?e=QdVOsH the codes like if (cnt32 == 38 || cnt32 == 41 || cnt32 == 42) …

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-05-04T08:08:15.31+00:00
Scott Huang 3,511 Reputation points
edited a comment 2026-05-06T09:10:36.68+00:00
Scott Huang 3,511 Reputation points
3 answers One of the answers was accepted by the question author.

Resolve issue ") expected"

Hi, I got the above error at the end of the last line below. Any reason?

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-04-30T08:35:17.46+00:00
Scott Huang 3,511 Reputation points
accepted 2026-05-05T08:38:12.3666667+00:00
Scott Huang 3,511 Reputation points
2 answers

Using standard PayPal buy now buttons - need an extra step to obtain a User Id

My asp.net site has a product page.aspx with the standard Buy now button code from Paypal. I capture the email address of the sender from the page that has a asp.net form. On button click, the data is saved in database and they then see a PayPal button…

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-04-23T16:47:22.29+00:00
Matt Lee 40 Reputation points
commented 2026-04-29T07:21:03.6033333+00:00
Jack Dang (WICLOUD CORPORATION) 18,390 Reputation points Microsoft External Staff Moderator
0 answers

does mage.exe support certificates with open key ECC?

I have tried to sign a clickonce manifest using mage.exe with a digicert certificate with the sha256RSA algorithm and an ECC open key, but got an error "Only certificates using RSA encryption are valid for signing ClickOnce manifests.". Does…

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2022-08-28T19:58:39.42+00:00
Илья Тонкошкур 6 Reputation points
commented 2026-04-27T20:49:21.2866667+00:00
Nathan Phillip Brink (binki) 41 Reputation points
2 answers

getting build issues after adding existed WCF service to the dotnet core project

I have added the WCF service reference to my dotnet core project and included dependency packages servicemodel.premitive, http ,security . But i am getting lot of build error like <clientbase>.

Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2026-04-16T05:04:53.7066667+00:00
Gopisetty, Saraswathi 0 Reputation points
commented 2026-04-23T13:00:26.88+00:00
Varsha Dundigalla(INFOSYS LIMITED) 5,025 Reputation points Microsoft External Staff
1 answer

How can I prevent the DataGridView header column from being highlighted when a row is selected

I am using Visual Studio 17.5.4 and building a Windows Forms app with a DataGridView as a list of items to select then populate the form fields.  All this works but I have a nagging problem to overcome.  When you select a row from the grid, it will…

Developer technologies | Windows Forms
Developer technologies | C#
Developer technologies | 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.

11,797 questions
asked 2023-04-24T13:29:00.0566667+00:00
Pat Hanks 141 Reputation points
commented 2026-04-22T21:00:03.1633333+00:00
Art Chadbourne 0 Reputation points