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,…
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…
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…
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…
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…
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
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…
[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.
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>. …
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…
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.
[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?
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…
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: …
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++ 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…
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…
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?
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…
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…