10,364 questions with C#-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

How to enable a textbox and wait for criteria to be entered before delete operation in WPF

I am having trouble with deleting a record from my programme. I have a textbox which is disabled by default by the ReadOnly property which is bound to a boolean property of my ViewModel. The textbox permits the user to enter the ID as criteria for the…

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,686 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,684 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,869 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,364 questions
asked 2020-12-29T07:07:36.563+00:00
DPlug 41 Reputation points
commented 2020-12-30T21:54:23.83+00:00
DPlug 41 Reputation points
1 answer One of the answers was accepted by the question author.

understanding api

Hello everybody This is a very basic and stupid question, but I have been staring at this API for a while now, and I have been checking the dock, I want to get all the YUGIOH cards from a specific Set (https://db.ygoprodeck.com/api-guide/) but…

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,364 questions
asked 2020-12-30T11:41:06.69+00:00
Eduardo Gomez 3,416 Reputation points
accepted 2020-12-30T19:17:55.693+00:00
Eduardo Gomez 3,416 Reputation points
1 answer One of the answers was accepted by the question author.

C# endless list is filled and taken - concept with BlockingCollection<T> Class and xml messages

Hello, system.collections.concurrent.blockingcollection-1 I am looking for an example of C# WPF. The data XML is permanently added to and taken from a list. This is done asynchronously. Several messages XML can be added than taken. …

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,364 questions
asked 2020-12-23T08:39:07.03+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-12-30T16:40:57.437+00:00
Markus Freitag 3,786 Reputation points
1 answer One of the answers was accepted by the question author.

Increasing Size Problem When Handling WM_NCCALCSIZE

Hello, When I process the WM_NCCALCSIZE message, after minimizing and restoring the window, the window gains some size each time. I know it is caused by the function RestoreBoundsIfNecessary called in the WM_WINDOWPOSCHANGED message handler. And a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,443 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,364 questions
asked 2020-12-30T15:12:00.563+00:00
semih artan 41 Reputation points
commented 2020-12-30T15:55:40.73+00:00
semih artan 41 Reputation points
7 answers One of the answers was accepted by the question author.

C# insert List<List<object>> in datatable and then to sql

Background story: I want to get data from influxdb and copy this data to SQL table and I want to do this with a datatable. structure of the JSON file: public class Series { public string name { get; set; } public List<string> columns…

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,364 questions
asked 2020-12-29T18:53:49.2+00:00
Eric Bezemer 181 Reputation points
commented 2020-12-30T13:41:41.003+00:00
Eric Bezemer 181 Reputation points
2 answers

Use UTF8Encoding.GetBytes get some error

My netcore version is 2.0.0 I run it as a server,and I get a error when I write my log: Unable to translate Unicode character \uD83C at index 267 to specified code page. however it happen just only once,I find the uD83C mean the signal � first,I…

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,364 questions
asked 2020-12-25T08:54:56.233+00:00
济田 胡 1 Reputation point
commented 2020-12-30T13:06:23.303+00:00
Viorel 112.9K Reputation points
1 answer One of the answers was accepted by the question author.

C# lock - the opportunities

Hello, What is the difference. When do I need my own object? When can I just lock the object? The list? Is that enough if I am in the same application, and an object like a list of two or more functions could be changed? Can someone explain it…

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,364 questions
asked 2020-12-17T10:04:53.067+00:00
Markus Freitag 3,786 Reputation points
commented 2020-12-30T11:14:35.767+00:00
Cheong00 3,471 Reputation points
0 answers

additional logs are treated as error during build of C/C++/CSharp code

anything that prints on visual studio command line is treated as error (such has logs/warnings from integrated thirdpatry tool) how to make visual studio not treat that as error and ignore it to continue to build.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 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,364 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,557 questions
asked 2020-12-29T11:13:56.26+00:00
Mohan Reddy 1 Reputation point
commented 2020-12-30T09:33:36.18+00:00
Tianyu Sun-MSFT 27,801 Reputation points Microsoft Vendor
2 answers

SqlDataAdapter.Fill method is throws SqlException when the BUILTIN/Administrators language in Sql server is British English

Our c# application uses SqlDataAdapter to fetch data from the DB(from an rdlc file) to present in a report. For some reason the SqlDataAdapter.Fill method is throwing below SqlException when the BUILTIN/Administrators language is British English. When it…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,821 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,364 questions
asked 2020-12-30T02:06:40.067+00:00
Rajaiah 1 Reputation point
answered 2020-12-30T09:20:11.537+00:00
Alberto Poblacion 1,556 Reputation points
2 answers One of the answers was accepted by the question author.

Where to put the code?

I following the book "C# Tutorial" (https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/default-interface-methods-versions). Since the book doesn't mention where the code should be placed, I just paste the code on a new tab…

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,364 questions
asked 2020-12-30T06:12:48.657+00:00
Ben Tam 216 Reputation points
commented 2020-12-30T08:34:03.47+00:00
Ben Tam 216 Reputation points
2 answers One of the answers was accepted by the question author.

Count JSON's Result

Hi, I have below json code and I want to know how can I get the count of the json's result, something like: int total_found = data.Count; Here is the code I am currently using: var client = new HttpClient(); client.BaseAddress = new…

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,364 questions
asked 2020-12-29T16:29:54.557+00:00
Emirates Angels 66 Reputation points
accepted 2020-12-30T06:15:24.883+00:00
Emirates Angels 66 Reputation points
2 answers

NetworkStream.Read() from 2 threads?

so i am making a chatting program and stuff, and the user can create his own group to chat in with people, now, here is the thing, i have a different thread that listens any data from the server. but the thing is, i am worried because if the server…

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,364 questions
asked 2020-12-28T19:31:08.5+00:00
costin tudor 6 Reputation points
commented 2020-12-30T03:19:35.827+00:00
Timon Yang-MSFT 9,576 Reputation points
3 answers One of the answers was accepted by the question author.

Migrate to Microsoft JSON

Hi, I want to migrate all my newtonsoft json's to Microsoft's JSON. Can you helo with below sample and how to migrate it please? var client = new HttpClient(); client.BaseAddress = new Uri("https://www.mydomain.com/pin.php"); var content…

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,364 questions
asked 2020-12-29T08:58:51.617+00:00
Emirates Angels 66 Reputation points
answered 2020-12-29T16:31:21.75+00:00
Emirates Angels 66 Reputation points
1 answer

How to create a multi-factor authentication (MFA) app?

I want use multi-factor authentication for my apps. However, I don't want to use Microsoft Authenticator app. I want to create an app desktop instead of Microsoft Authenticator to use in the authentication step. So, do have any way for me do it? …

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,364 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,799 questions
asked 2020-12-29T02:57:11.957+00:00
Luc Duong 36 Reputation points
answered 2020-12-29T09:49:35.483+00:00
soumi-MSFT 11,721 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

In ASP.NET Application,I can't add a local webmethod to my project preferences

First, I create a default Web Service(ASMX).And It has a default webMethod.just like: public class WebService1 : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello…

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,364 questions
asked 2020-12-29T04:50:04.737+00:00
Kwrister 96 Reputation points
accepted 2020-12-29T05:44:02.4+00:00
Kwrister 96 Reputation points
1 answer

Error CS1061: 'Target' does not contain a definition for 'transform'

So in the Collector.cs class CS0161 is triggered at the first word "transform", but not the second. Error CS1061 'Target' does not contain a definition for 'transform' and no accessible extension method 'transform' accepting a first argument…

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,364 questions
asked 2020-12-27T22:45:30.09+00:00
Daniel 1 Reputation point
answered 2020-12-28T09:42:11.143+00:00
Daniel Zhang-MSFT 9,621 Reputation points
1 answer

Programmatically get the list of excel files by authenticating from SharePoint URL move that files to Local path in C#?

Authenticate the SharePoint URL with UserName, Password(Without using MFA) using c# code and Get the list of files from that SharePoint URL and move those files to the Local path of the computer?

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,364 questions
asked 2020-12-26T08:52:49.547+00:00
santhosh reddy 21 Reputation points
answered 2020-12-28T08:23:02.1+00:00
Timon Yang-MSFT 9,576 Reputation points
2 answers

Create Power Bi Dataset using c# code. Use Azure data explorer connection as data source to power bi dataset.

Our requirement is to create power bi dataset using c# programmatically while using azure data explorer connection as data source to it. Can someone please help with the sample code to make connection to azure data explorer while creating pbi dataset …

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
651 questions
Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
487 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,364 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,458 questions
asked 2020-12-09T10:04:15.16+00:00
Mohammed Kaleem 1 Reputation point
answered 2020-12-28T07:06:55.93+00:00
Uri Barash 176 Reputation points
1 answer

WebClient UploadProgressChanged called before sending any data and TotalBytesToSend is always -1

To summarize the problem, UploadProgressChanged is called several times, BytesSent goes up until it reached the file size but the file is not actually SENT during that time. The file is sent AFTER. Tried this with sendDataAsync, sendDataTaskAsync, and…

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,364 questions
asked 2020-12-23T10:53:41.347+00:00
Endasil 1 Reputation point
answered 2020-12-28T06:37:54.53+00:00
Timon Yang-MSFT 9,576 Reputation points
0 answers

How to keep original shape size using OpenCvSharp.ApproxPolyDP

I am using OpenCvSharp.ApproxPolyDP to reduce the number of points in a polygon. However, this algorithm changes the original shape of the shape and produces cut corners. Is it possible to optimize the number of points in a polygon and keep the original…

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,364 questions
asked 2020-12-27T19:43:29.25+00:00
Maksym Valuiko 1 Reputation point
commented 2020-12-28T03:06:56.16+00:00
Timon Yang-MSFT 9,576 Reputation points