11,812 questions with Developer technologies | C# tags

Sort by: Updated
3 answers

WinForms DataGridView: Prevent Enter from moving to the next row and move focus to another column in the same row

I'm using a WinForms DataGridView for entering sales invoice items. Suppose my grid looks like this: RowQtyNet Rate15...------------------------15...26...3*(new empty row)*If I edit Row 2 and change the quantity from 6 to 12, then press Enter, 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,812 questions
asked 2026-08-06T23:21:03.6266667+00:00
Shahmeer .R 0 Reputation points
answered 2026-08-07T04:44:48.85+00:00
Senthil kumar 1,730 Reputation points
1 answer

I would like to prevent the "Be careful! Your document may contain personal information that cannot be removed by the Document Inspector." dialog from being displayed when saving a document.

I am trying to create a program to remove property information from a Word document in order to ensure that no personal or client information is left behind. I am using C# code with Microsoft.Office.Interop.Word to initiate Word, and I execute…

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,812 questions
asked 2023-10-19T12:10:26.97+00:00
AndAge 0 Reputation points
answered 2026-08-06T11:43:10.16+00:00
ADDY ad 0 Reputation points
3 answers One of the answers was accepted by the question author.

Linq Query efficiency

Hello, Any ideas on how to make the below more efficient? It is taking too long. The lstAllCombs has 150,000 records. List<SpecLevel> lstRankRangeSumRankPartition = lstAllCombs .GroupBy(p => (p.RankRange0Count, p.RankRange1Count,…

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,812 questions
asked 2026-07-24T08:19:38.8233333+00:00
Naji Afache 60 Reputation points
accepted 2026-08-03T23:26:15.71+00:00
Naji Afache 60 Reputation points
4 answers

JSON file parsing

consider having different section in the JSON file , how to handle that problem { "connectionString":{ }, "SMTP":{ } }

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,812 questions
asked 2026-07-23T10:53:30.4466667+00:00
Venkatesh H 0 Reputation points
commented 2026-07-31T02:56:24.2333333+00:00
Nancy Vo (WICLOUD CORPORATION) 7,985 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

How to read the HTTP Body in an IIS Managed Module without breaking an ASP.NET Core Azure Web App?

I am trying to intercept and read incoming HTTP traffic using a custom managed .NET module (IHttpModule) on a Windows-based Azure Web App. I am able to successfully fetch the context.Request and context.Response parameters, headers, and metadata.…

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,812 questions
asked 2026-07-09T15:37:38.7866667+00:00
Shemesh, Tchelet 35 Reputation points
commented 2026-07-29T03:02:20.25+00:00
Tom Tran (WICLOUD CORPORATION) 5,625 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

how to update version in apk maui application automatically?

Hi, i'm using .net maui 8 for Android , and i publish my application in a remote server and when i update my application automatically by comparing version in update.json file. I can't update version in my app. how to do that?

Developer technologies | .NET | .NET Multi-platform App UI
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,812 questions
asked 2025-01-07T15:42:13.4966667+00:00
Graja Kaouthar 20 Reputation points
commented 2026-07-28T16:57:43.45+00:00
shahzad ali 0 Reputation points
2 answers One of the answers was accepted by the question author.

Comparing List<T>

Hello everyone and thanks for the help in advance. I have a WebApi application that accepts a List<tblResults> where the model for tblResults looks like: public class tblResults { public int Record_ID { get; set; } public int Description { get;…

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,812 questions
asked 2026-07-17T16:50:17.87+00:00
Kmcnet 1,421 Reputation points
commented 2026-07-24T02:31:18.9433333+00:00
Nancy Vo (WICLOUD CORPORATION) 7,985 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

Best ASP.NET approach + modern hybrid mobile tech for content/tool sites like CitizenPass.ca?

I run a portfolio of Canadian-focused content and web tool sites (similar in concept to CitizenPass.ca and CitizenApp.ca — bilingual EN/FR informational platforms with quiz/practice-test style tools, content pages, and a companion mobile app). I'm…

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,812 questions
asked 2026-07-09T17:16:43.7733333+00:00
Youness Haji 40 Reputation points
commented 2026-07-14T02:32:53.6766667+00:00
Nancy Vo (WICLOUD CORPORATION) 7,985 Reputation points Microsoft External Staff Moderator
2 answers

How do I read a text file in C# and convert its contents to Morse code?

I'm building a C# console application in Visual Studio. I want to read text from a .txt file and convert each character to Morse code. What's the best way to organize the character mapping? Should I use a Dictionary<char, string>? A sample…

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,812 questions
asked 2026-07-04T11:42:42.1666667+00:00
Mac son 0 Reputation points
commented 2026-07-13T02:43:11.16+00:00
Nancy Vo (WICLOUD CORPORATION) 7,985 Reputation points Microsoft External Staff Moderator
3 answers

HttpWebRequest timeout not working

The following code: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(sRequest); // Create(sQuery); request.Credentials = CredentialCache.DefaultCredentials; request.Timeout = 10000; …

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
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,812 questions
Developer technologies | ASP.NET Core | Other
asked 2021-11-10T15:21:18.593+00:00
Boyd Mills 0 Reputation points
answered 2026-07-02T14:55:17.8566667+00:00
Bruce (SqlWork.com) 84,856 Reputation points
1 answer

how can i set the path for Dependencies in xxx.deps.json?

Hello, I have a number of DLLs (C# projects) that are loaded by a third-party EXE. Each of these DLLs has a .deps.json file listing its dependencies. The individual DLLs cannot be located in the same directory. If all the dependencies of a DLL are…

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,812 questions
asked 2026-06-22T21:05:07.5466667+00:00
Rosenbohm, Mario 40 Reputation points
commented 2026-06-30T06:30:28.39+00:00
Nancy Vo (WICLOUD CORPORATION) 7,985 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

How do you read an SMS and MMS message using .NET MAUI (on Android only)?

I'd like to read an SMS and/or MMS message on an Android device only, but from within my .NET MAUI app. Specifically, I want to save any received (MMS) picture that has been texted to me plus any associated (SMS) text. Is this possible with .NET MAUI…

Developer technologies | .NET | .NET Multi-platform App UI
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,812 questions
asked 2024-06-19T23:12:35.5966667+00:00
Gene Magpayo 20 Reputation points
answered 2026-06-25T14:36:23.23+00:00
2 answers One of the answers was accepted by the question author.

Script not Working for large data in C#

The arrayGroup below will be containing almost 190,000 int arrays. so filtering them to retrieve groups of arrays in the array group that have two or more common digits is taking forever. I am using the linq expression below, any ideas to make this more…

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,812 questions
asked 2026-06-17T22:46:52.22+00:00
Naji Afache 60 Reputation points
commented 2026-06-23T02:27:11.0566667+00:00
Nancy Vo (WICLOUD CORPORATION) 7,985 Reputation points Microsoft External Staff Moderator
2 answers

learning to code

how do i learn c# skills online using step by step instructions and what software will i need to install on my pc?

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,812 questions
asked 2026-06-13T11:57:10.0366667+00:00
Kieran Patel 0 Reputation points
commented 2026-06-22T02:37:58.6+00:00
Nancy Vo (WICLOUD CORPORATION) 7,985 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Mongo DB - update server to a new version

Hi, 1.I'm using Maui app in version 9, in VS 2026 , last update. 2.I'm using Mongo: with this app as follow: Server: version 7.0.3. Client (compass): version 1.42.2 There is vulnerability in server version, please see , and use Google Translate to…

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,812 questions
asked 2025-12-31T08:58:55.19+00:00
Dani_S 5,581 Reputation points
answered 2026-06-18T07:34:21.2433333+00:00
Jack Dang (WICLOUD CORPORATION) 18,975 Reputation points Microsoft External Staff Moderator
2 answers

upload file to one drive

How to upload file to one drive from dot net core 10 web app

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,812 questions
asked 2026-06-10T03:15:50.18+00:00
hirenkumar patel 0 Reputation points
commented 2026-06-18T02:11:55.6933333+00:00
Danny Nguyen (WICLOUD CORPORATION) 8,020 Reputation points Microsoft External Staff Moderator
2 answers

Fabric Semantic Model - Add member to Role through API

Hi all, I am trying to develop a C# integration with Microsoft Fabric to generate semantic models programmatically (https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model). So far, I was able to create the semantic…

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,812 questions
asked 2025-10-03T20:36:00.5133333+00:00
Perez Lemme, Ignacio 0 Reputation points
commented 2026-06-14T02:52:19.1133333+00:00
BALAJI VENKATASUBRAMANIYAR 0 Reputation points
5 answers One of the answers was accepted by the question author.

Enhance the way of linear search

Hi, To C# linear search below any advice to apply the following way on the above?

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,812 questions
asked 2026-05-31T04:50:50.82+00:00
Jonathan 300 Reputation points
edited a comment 2026-06-12T07:06:29.5866667+00:00
Nancy Vo (WICLOUD CORPORATION) 7,985 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Question about JSON (De)Serialization using System.Text.Json.

This is a Q about JSON (De)Serialization using System.Text.Json. There are three classes involved, abbreviated here: internal class FolderState { /// <summary> /// Stack elemens /// </summary> /// …

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,812 questions
asked 2026-06-04T19:56:26.8533333+00:00
WoodManEXP 80 Reputation points
commented 2026-06-08T03:10:24.99+00:00
Jay Pham (WICLOUD CORPORATION) 3,905 Reputation points Microsoft External Staff Moderator
6 answers

Blazor - Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

Hi, I have an issue with a Blazor page. Sometimes I receive the following error message on the browser's console view: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 This is strange, because this error message…

Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor

A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.

1,702 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,812 questions
asked 2022-03-29T14:57:37.95+00:00
Gábor Varga 36 Reputation points
recommended 2026-06-05T14:01:00.5733333+00:00
JuliaMarvin 20,910 Reputation points Volunteer Moderator