11,805 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,805 questions
asked 2026-05-15T10:31:22.0333333+00:00
Anuran Gupta 0 Reputation points
commented 2026-05-15T15:05:47.68+00:00
Varsha Dundigalla(INFOSYS LIMITED) 4,945 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,805 questions
asked 2026-05-05T07:59:02.9266667+00:00
PThanh 0 Reputation points
commented 2026-05-15T13:06:13.44+00:00
PThanh 0 Reputation points
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,805 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,805 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,805 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,190 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,805 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,765 Reputation points Microsoft External Staff
2 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,805 questions
asked 2026-05-06T19:19:03.1366667+00:00
Jude Grey 0 Reputation points
commented 2026-05-12T07:21:37.16+00:00
Jack Dang (WICLOUD CORPORATION) 17,905 Reputation points Microsoft External Staff Moderator
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,805 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,805 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,190 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,805 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,805 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

Show me a usecase example code of asp.net, windows forms, unit tests and GoF

need practical code examples covering the following C# topics: ASP.NET Core MVC – a simple use case, e.g. a controller returning data to a view Windows Forms – a basic example, e.g. button click event or form validation Unit Tests – a simple test…

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,805 questions
asked 2026-04-29T22:15:42.5833333+00:00
Gurdeep Vaidya 0 Reputation points
commented 2026-05-05T06:59:53.98+00:00
Jack Dang (WICLOUD CORPORATION) 17,905 Reputation points Microsoft External Staff Moderator
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,805 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) 17,905 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,805 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) 26 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,805 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) 4,945 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,805 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
2 answers One of the answers was accepted by the question author.

SFTP file upload download issue.

Dear all, already i developed sftp file upload and download with Renchi and SSH.net. For the weak RSA key encryption our IT support blocked RSA key encryptions so winscp is another option to implement personally i feel little complicated WINSCP so any…

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,805 questions
asked 2026-04-21T06:26:30.1933333+00:00
Senthil kumar 315 Reputation points
edited a comment 2026-04-22T07:52:06.31+00:00
Senthil kumar 315 Reputation points
1 answer

How can I add a tab to file explorer from a c# program?

How can I add a tab to file explorer from a c# program?

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,805 questions
asked 2026-04-06T16:51:21.62+00:00
Robert Dukelow 0 Reputation points
commented 2026-04-21T08:10:21.0833333+00:00
Lizzy Dinh (WICLOUD CORPORATION) 445 Reputation points Microsoft External Staff Moderator
2 answers

Sending a power off packet to an Xbox Series Controller

Hi! I am makeing a C# pet project with which I want to power off my xbox controller on a certain trigger. I've discovered that I can use WriteFile to send data to  \.\XboxGIP handle from C# code. I've managed to send a Led command as per doc but I…

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,805 questions
asked 2026-04-10T10:12:44.4266667+00:00
magrega 56 Reputation points
commented 2026-04-20T06:48:44.4966667+00:00
Jack Dang (WICLOUD CORPORATION) 17,905 Reputation points Microsoft External Staff Moderator
2 answers

My Project is not creating an .exe file

My Project is not creating an .exe file in the Bin folder

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,805 questions
asked 2026-04-08T09:45:57.34+00:00
Rodney Matthews 5 Reputation points
commented 2026-04-15T03:29:22.73+00:00
Nancy Vo (WICLOUD CORPORATION) 4,190 Reputation points Microsoft External Staff Moderator