11,823 questions with Developer technologies | C# tags

Sort by: Updated
1 answer

C# win form sending a message on telegram to a pr. channel exception error

Sending a message to a private channel on Telegram, not sure why I get exception message when running code. I attached 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,823 questions
asked 2026-10-22T02:27:00.1833333+00:00
Gennady Gurin 206 Reputation points
edited a comment 2026-10-25T01:22:46.79+00:00
Gennady Gurin 206 Reputation points
0 answers

error after visual studio update

error The designer could not be shown for this file because none of the classes within it can be designed when update visual studio to Version 17.14.0

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,823 questions
asked 2025-05-25T15:50:25.1533333+00:00
Mahmoud Alkannass 0 Reputation points
commented 2026-10-22T13:15:55.8+00:00
JuliaMarvin 23,480 Reputation points Volunteer Moderator
1 answer

Explain syntax items

The following code items are used inVBA: &, "", "~$" are hard to find simple explanations or clear examples. Can you help explain there use.

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,823 questions
asked 2026-10-14T23:28:34.1133333+00:00
Coates, Donald 5 Reputation points
commented 2026-10-22T02:18:52.13+00:00
Harry Nguyen (WICLOUD CORPORATION) 425 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

How to use SQL Data Reader

I'd like to perform a select that returns 3 rows, each row with a code, and then use a sql data reader in C#. Do you have a snippet that does that? Im not sure how to submit my code example without this app blowing up on me! I'm using VS 2022, and a…

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,823 questions
asked 2026-10-17T00:52:51.2433333+00:00
Corey Fleig 595 Reputation points
accepted 2026-10-20T18:13:53.34+00:00
Corey Fleig 595 Reputation points
0 answers

Missing photos Description in Photos after Graph Request

My App is a C# .NET App For many years, I have been retrieving a list of photos stored in a published OneDrive folder for my Photo Dia app via Graph Request. The request URL: https://graph.microsoft.com/beta/me/drive/items/IDItemFolder/children 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,823 questions
asked 2025-08-07T09:25:06.5333333+00:00
P. Karsten 0 Reputation points
2 answers One of the answers was accepted by the question author.

Memory issue due to Hash set

Hi, Further to handle with Hash Set, I got memory issue below It must be due to the big set used. Here are the codes.

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,823 questions
asked 2026-10-07T04:31:40.68+00:00
Jonathan 480 Reputation points
accepted 2026-10-09T02:48:28.8066667+00:00
Jonathan 480 Reputation points
3 answers One of the answers was accepted by the question author.

Issue to Hash set

Hi, To the codes similar to the following, can I put the conditions and also to extract a substring from one given text file?

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,823 questions
asked 2026-10-02T09:18:04.3833333+00:00
Jonathan 480 Reputation points
accepted 2026-10-09T02:47:11.5+00:00
Jonathan 480 Reputation points
1 answer One of the answers was accepted by the question author.

C# windows Form Project, in laptop touch screen form shrinks and moves when reloads

I have Windows Form Project targeting old net framework 4.8, In my project I have to reload a form on certain conditions, so on my PC computer everything working normally but when testing on laptop touch screen the form shrinks and moves when…

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,823 questions
asked 2026-10-02T22:05:35.2333333+00:00
Gennady Gurin 206 Reputation points
commented 2026-10-08T15:31:07.6866667+00:00
Gennady Gurin 206 Reputation points
2 answers One of the answers was accepted by the question author.

Compare the similarity of 2 given addresses

Hi, The way below is good to compare the similarity of 2 given addresses? We expect to achieve that while 80% of the words (in the different position) are appearing well within both strings. Possible to achieve that? Or any other better to do that?

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,823 questions
asked 2026-09-29T03:59:32.17+00:00
Jonathan 480 Reputation points
accepted 2026-10-08T06:22:29.53+00:00
Jonathan 480 Reputation points
3 answers

C# SCROLLINFO not working on Chrome window

I am attempting to retrieve scroll information from the window handle, but I keep getting a value of 0. I am pursuing this approach because my goal is to capture a complete scrolling screenshot of the window. The intention is to enable automatic…

Windows development | Windows API - Win32
Developer technologies | .NET | Other
Developer technologies | .NET | Other

Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.

4,182 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,823 questions
asked 2023-08-13T10:53:38.2166667+00:00
Ankur Tripathi 1 Reputation point
edited an answer 2026-09-21T21:04:11.46+00:00
JuliaMarvin 23,480 Reputation points Volunteer Moderator
2 answers

How to get monthly order count by status in a Blazor Server application?

Hello, I am working on a Blazor Server application and need to find the number of monthly orders that are either completed or continue based on their status. I have a query that works for a specific year and status, but I need to refactor it to accept…

Developer technologies | .NET | Entity Framework Core
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,823 questions
asked 2024-01-16T12:46:42.32+00:00
Cenk 1,051 Reputation points
commented 2026-09-19T05:23:37.7933333+00:00
JuliaMarvin 23,480 Reputation points Volunteer Moderator
2 answers

what is the difference between constructor and properties

i mean in case we should declare a field as private is it better to declare a public property or using constructor? why? and if NO what is the usage of property? thank you very much :)

Developer technologies | .NET | Other
Developer technologies | .NET | Other

Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.

4,182 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,823 questions
asked 2023-02-04T08:18:06.5933333+00:00
mohammad hoseini 0 Reputation points
edited a comment 2026-09-16T20:22:33.5566667+00:00
Umair Ahmed 0 Reputation points
1 answer One of the answers was accepted by the question author.

Code issue to check the file correctly

Hi, On VS, I used the code like to validate one text file like https://1drv.ms/t/c/17ec75244bac022f/IQAv8sYzgXglT6bKMX4jK8FkAbKw3lgfAxDf9rlJNLMgDR0?e=gXMrqB it is wrong now as it does show the above message even if all lines are having CR LF. How 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,823 questions
asked 2026-09-10T09:25:14.9366667+00:00
Jonathan 480 Reputation points
accepted 2026-09-10T14:25:46.74+00:00
Jonathan 480 Reputation points
3 answers One of the answers was accepted by the question author.

conformance to ECMA-334 or ISO/IEC 23270

Does Microsoft’s C# compiler within Visual Studio Community conform to the standards described in ECMA-334 and/or ISO/IEC 23270?

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,823 questions
asked 2026-09-08T23:33:22.7833333+00:00
Jo Rumpus 25 Reputation points
answered 2026-09-10T02:15:52.1633333+00:00
Bruce (SqlWork.com) 85,696 Reputation points
0 answers

How to deploy outlook template after insert data and use data info in subject and body

hi All... I have some question here. 1 have text box, drop down, check box and a button. Data Input TxtBox Data Input : Animal Drop down Input : Veterinar Dept Button check box on : send email Button to insert data When I click Button and check on, data…

Microsoft 365 and Office | Development | Office JavaScript API
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,823 questions
Developer technologies | ASP.NET Core | Other
asked 2023-03-03T04:53:45.5+00:00
y.ari 0 Reputation points
1 answer One of the answers was accepted by the question author.

Request: Settings option to revert cw snippet shortcut

Why change the cw snippet to Tab + Tab? Having to hit Tab twice instead of just hitting Enter completely kills years of muscle memory for Console.WriteLine(). It feels incredibly clunky and frustrating to use now. Please let us toggle this back to 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,823 questions
asked 2026-09-04T07:06:56.8+00:00
Hacker Ruzlan 20 Reputation points
commented 2026-09-04T13:43:58.02+00:00
Hacker Ruzlan 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to solve System.NullReferenceException?

Hello, I want to Insert data into a MySQL table through a WCF service. My app is a WPF application. I can insert through Mysql and through WCFtestClient, but when I try to insert data from WPF app I get this error. How to check in details to see what is…

Developer technologies | Windows Presentation Foundation
Developer technologies | .NET | Other
Developer technologies | .NET | Other

Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.

4,182 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,823 questions
asked 2023-07-03T20:59:51.5733333+00:00
B M-A 361 Reputation points
answered 2026-09-02T20:30:31.99+00:00
Ronil Fernandes 0 Reputation points
5 answers

Security issues if I use a encrypted value as a Query string that I send to users and then decrypt the value and validate on link click?

I'm working on a project where we will need to send out links to a large number users and each is assigned a unique combination of numbers and letters to identify them in our system. My task it to come up with a way we can use just the link we send them…

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,823 questions
asked 2026-08-19T18:49:18.9966667+00:00
Jerry 121 Reputation points
commented 2026-09-01T15:22:11.95+00:00
Mariem Moalla 76 Reputation points MVP
3 answers

Creating a new List<int>() throws a NullReferenceException.

The following code throw a NullReferenceException on the hightlighted line: using IS0AUTTSTContext db = GetDbContext(); List<TestRun> list = db.TestRuns.Where(t => t.ID > 0 && t.Definition!.Application!.Deleted == false).ToList(); …

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,823 questions
asked 2026-08-18T15:37:47.1+00:00
Mark Curtis 5 Reputation points
answered 2026-09-01T04:29:35.83+00:00
Shewale, Mahendra 0 Reputation points
3 answers One of the answers was accepted by the question author.

How to dynamically assign property names for XmlOnlyMediaFormatter

I have been given an ASP.NET project to handle. It has been released and has worked fine. I am not an ASP.NET developer but doing what I can. The issue: The project is a webservice among other things. The solution (VS 2019) has 6 projects. One is 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,823 questions
asked 2026-08-26T15:38:37.4566667+00:00
Darryl Hoar 221 Reputation points
commented 2026-08-28T15:28:56.3+00:00
moeen 0 Reputation points