10,357 questions with C#-related tags

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

C# prevent multiple instance of console application running

I got a code which prevent multiple instance of console application running. help me to understand the below code' [STAThread] static void Main() { using(Mutex mutex = new Mutex(false, "Global\\" + appGuid)) { if(!mutex.WaitOne(0,…

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,357 questions
asked 2021-01-06T19:13:26.393+00:00
Sudip Bhatt 2,271 Reputation points
accepted 2021-01-08T15:06:18.787+00:00
Sudip Bhatt 2,271 Reputation points
1 answer

Deprecation related to OrganizationServiceProxy class and Discovery Service

According to the below link, OrganizationServiceProxy class is deprecated. https://learn.microsoft.com/en-us/power-platform/important-changes-coming I have used the OrganizationServiceProxy class in the connector written in C# that has used the…

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,357 questions
asked 2020-12-16T11:15:59.257+00:00
MS CRM Developer 1 Reputation point
answered 2021-01-08T12:10:29.44+00:00
Julian Sharp 31 Reputation points MVP
2 answers One of the answers was accepted by the question author.

Only every third object is consumed in BlockingCollection<string>(ConcurrentQueue<string>)

Hi. I'm building a multi-threaded simulator and need to create and consume ID's in an orderly fashion. I am doing this in C# and Core 3.1 and it is a WPF application. Please note that I am just learning about multi-threading AND queues, so it is…

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,357 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,130 questions
asked 2021-01-07T20:32:50.747+00:00
Magnus Vinterhav 61 Reputation points
accepted 2021-01-07T21:54:35.05+00:00
Magnus Vinterhav 61 Reputation points
1 answer One of the answers was accepted by the question author.

IDE Buggy ! errors un-reported AND non-errors reported

for the last month and a half (two updates) my IDE has been driving me bonkers. it often reports 'errors' that are not errors. after wasting time trying to figure out what its problem is, I eventually kill the VS2019-IDE and launch it again to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,672 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,357 questions
asked 2021-01-04T18:33:22.857+00:00
Christ Kennedy 196 Reputation points
commented 2021-01-07T15:00:19.48+00:00
Michael Taylor 49,071 Reputation points
2 answers One of the answers was accepted by the question author.

Cannot find 'aapt.exe' - latest version of Visual Studio 2019 and Xamarin installed

Hello, I have the latest version of Visual Studio 2019 community edition installed. A couple of days ago I installed Xamarin and Android SDK by following the instructions given in this course material "Xamarin Tutorial - Hello World in 10…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,299 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,357 questions
asked 2021-01-06T12:34:04.043+00:00
Jouni Juntunen 141 Reputation points
accepted 2021-01-07T12:28:07.71+00:00
Jouni Juntunen 141 Reputation points
1 answer One of the answers was accepted by the question author.

C# version wise new features

Sorry to ask you Microsoft has any pages where they mention c# version wise all new feature till latest version 9? Thanks

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,357 questions
asked 2021-01-05T18:12:08.613+00:00
Sudip Bhatt 2,271 Reputation points
accepted 2021-01-07T06:42:06.203+00:00
Sudip Bhatt 2,271 Reputation points
1 answer

Can I catch the lost focus (deactivation) of a PowerPoint slideshow window due to a hyperlink click?

how to catch the lost focus (deactivation) of the current slideshow. In my slideshow a slide has a hyperlink. When the link is clicked, the default browser is opened to the respective page and, of course, my slideshow losses the focus. When the browser…

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,357 questions
PowerPoint Management
PowerPoint Management
PowerPoint: A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.Management: The act or process of organizing, handling, directing or controlling something.
222 questions
asked 2021-01-06T10:00:42.26+00:00
zhenhao gan 1 Reputation point
answered 2021-01-07T03:03:42.673+00:00
Timon Yang-MSFT 9,576 Reputation points
1 answer

[Bug] and [CRASH] App Crashes on startup on High Sierra. Runs fine on higher operating systems

I already raised this issue on the Xamarin.Forms github site and attached a repro project..... https://github.com/xamarin/Xamarin.Forms/issues/13071 But I've NOT had a reply. Supporting High Sierra is quite critical.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,299 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,357 questions
asked 2020-12-14T14:03:59.937+00:00
Dominique Louis 111 Reputation points
commented 2021-01-06T19:03:29.57+00:00
Rob Caplan - MSFT 5,422 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Casting data in a data table returns string rather than type inserted

I have a custom class that holds the value of a cell which is put into a data table using the following command: table.Rows.Add(error[i].GetValues()); GetValues() returns an array of a generic class: DataParcel<KeyType, DataType, ParentType>. …

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,357 questions
asked 2021-01-06T15:39:06.717+00:00
Matthew Busselberg 21 Reputation points
commented 2021-01-06T18:35:53.603+00:00
Matthew Busselberg 21 Reputation points
2 answers

Ignore JSON types

Hi, I am using MySQL at backend and I have problems with two fields when using System.Text.Json The fields are mobile which has a value for example = 026547388 and is_admin which has 0 or 1 (representing true or false in MySQL) When I use the…

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,357 questions
asked 2021-01-03T18:22:42.4+00:00
jrahma 111 Reputation points
answered 2021-01-06T10:00:27.857+00:00
Viorel 112.9K Reputation points
1 answer One of the answers was accepted by the question author.

The name 'parantheses' does not exist in the current context

New to c# and doing a little project for calculating compound interest. I have no clue how to fix this though.

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,357 questions
asked 2021-01-06T01:06:46.827+00:00
Maday Reyes 21 Reputation points
accepted 2021-01-06T01:53:01.123+00:00
Maday Reyes 21 Reputation points
2 answers One of the answers was accepted by the question author.

[SerialPort] How can I auto detect SerialPort parameters if I know SerialPort name?

Known: Port Name. Unknown: Baud Rate Parity; Data Bits; Stop Bits. Is it possible to auto detect SerialPort parameters in case if they may be differ from the default?

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,357 questions
asked 2021-01-05T16:03:51.467+00:00
Ivan Halbur 21 Reputation points
answered 2021-01-05T17:16:38.537+00:00
Castorix31 81,941 Reputation points
1 answer

Xamarin.Forms to add Body using Http GET verb

As I have tried to send data in HTTP GET verb from Postman Here is the screenshot which I am trying to achieve<Br> Postman As data is received using the above process sending with the JSON Body. I have also sent the Bearer Token in the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,299 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,357 questions
asked 2021-01-05T15:21:02.947+00:00
Akshay Dixit 21 Reputation points
answered 2021-01-05T15:49:13.507+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
1 answer

HTTPS download and Upload

Hello, We are trying to implement HTTPS protocol for getting a file from a device and putting a file on a device. We are currently using .net framework 4.5 and it is a WPF application. We need to use the below two cipher suites on TLS: …

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,685 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,357 questions
asked 2020-12-17T06:20:09.127+00:00
S Abijith 346 Reputation points
commented 2021-01-05T09:36:38.663+00:00
Timon Yang-MSFT 9,576 Reputation points
3 answers

c# Pause listening to COM port

Hello, I am trying to write a Windows form program to listen to a COM port and intercept the data stream. I have managed this, but I would now like to add the option to pause the listening. I am using the CLOSE() option, but his then also makes my…

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,357 questions
asked 2020-12-16T09:17:44.857+00:00
Gerald Oakham 101 Reputation points
answered 2021-01-05T05:54:16.127+00:00
Timon Yang-MSFT 9,576 Reputation points
0 answers

C++ Retrieves HBITMAP, function passes to C#.DOTNET, Bitmap.FromHBitmap fails at runtime with "generic error in GDI+"

I'm using a DLL written in C++ to make some WinAPI calls that retrieve an HBITMAP value. Then a C# Windows Forms program retrieves the HBITMAP via p/invoke, as IntPtr. Both the DLL and the DotNET app referencing it are being built as x86 on a system…

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,357 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,553 questions
asked 2021-01-04T18:28:49.167+00:00
Andrew Painter 1 Reputation point
commented 2021-01-04T20:10:30.287+00:00
Andrew Painter 1 Reputation point
2 answers One of the answers was accepted by the question author.

Connect to third party websocket service with SignalR

Can I use the SignalR library to connect to a third party websocket service to pull data? I plan to use it in both a command line and an ASP.NET core application if that matters. Is there a code example available? All examples are about ASP.NET…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,439 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,227 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,357 questions
asked 2021-01-03T17:58:53.153+00:00
stef-k 21 Reputation points
accepted 2021-01-04T16:24:23.527+00:00
stef-k 21 Reputation points
3 answers

what exactly is happening during automatic file downloads

When icloud, dropbox, onedrive, etc. sync files to/from the cloud, are they using microsofts automatic file downloads feature? If so, is there an underlying windows api that I can use to control this functionality?

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,357 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,144 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,553 questions
asked 2021-01-01T19:47:45.747+00:00
Allen 1 Reputation point
answered 2021-01-04T14:19:25.193+00:00
Allen 1 Reputation point
1 answer

Azure form recogniser- REST api- Input format not accepted

Hello all I am using Azure form recogniser to extract data from PDF. I have created a custom model using FOTT. I am able to analyse a new form by sending request using PostMan tool only if I send PDF file in request body, as binary. My application is…

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,357 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,431 questions
asked 2021-01-01T12:29:50.027+00:00
Neha Srivastava 1 Reputation point
commented 2021-01-04T11:53:38.657+00:00
Neha Srivastava 1 Reputation point
0 answers

VS Extension as nuget package

We are currently using VS extensions to create CUDA PTX files while developing in VS. The CUDA code is placed in the solution as a single file with the cu-extension. The extension hooks in into the save routine and any time the developer saves the CUDA…

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,357 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,428 questions
asked 2020-12-19T19:18:37.073+00:00
Martin Sedlmair 46 Reputation points
commented 2021-01-04T11:11:57.02+00:00
Martin Sedlmair 46 Reputation points