Category "c++sharp"

OpenIdConnectProtocolValidator - nonce error

I'm using OpenIdConnect authentication on my azure website (azure active directory, c#, MVC) and I'm randomly getting this error IDX10311: requireNonce is t

Improve performance of per-pixel image multiplication with mask and thresholding

I am looking for suggestions to make this algorithm run faster. Using C# and EmguCV (a managed wrapper over OpenCV), I am processing images in real-time, adjust

Add panels dynamically to form

I'm trying to add panels to a form according to the ids quantity that is received. At running, the panels are added to the form, but only the first one has the

Blazor WebAssembly Hosted on IIS - only API is working

I have a project where I have developed a solution with Blazor WebAssembly Hosted model. I have a Server Project, a Client project and a Shared project (but I r

Unity Can I use yield return new WaitUntil(() => GameObject.Find("xx")) in IEnumerator Start()?

I want to stop the Code in my Script until it finds a GameObject and then continue. I tried it in my Start Method with the following Code : yield return new

Change timer at runtime c#

Iv'e created a timer using dispatcher time : time = new DispatcherTimer(); time.Interval = new TimeSpan(0, 0, 0, 0, 80); and I use it for the speed of an ob

Using Application Insights with Unit Tests?

I have an MVC web app, and I'm using Simple Injector for DI. Almost all my code is covered by unit tests. However, now that I've added some telemetry calls in

Serilog logging to Azure eventhub stopped working after moving project to .Net Core 5

I have a .Net Core 3.1 project that uses Serilog and posts messages to Azure Eventhub. The problems started when we moved it to .Net 5. Here's how it's configur

How to limit angles in (-180,180) range just like Unity3D inspector

I want to get rotation of Camera gameobject attached to Char gameobject EDIT: Char rotation, pos, scale is 0,0,0 I have following code: (Script is on the Ch

My tabControl1 wont show its DrawImage after I added custom backcolor to my tabControl1

I am not really sure where I am going wrong but before I added my custom backcolor to my tabControl1 everything worked fine, I saw the X on other tabs and the +

The tests are not shown in specflow + nunit3 with Visual Studio 2017

I'm starting with BDD and spec-flow in C# and Visual Studio. I was following a tutorial at https://www.toolsqa.com/specflow/set-up-specflow/ to set up a project

Unable to set item datetime (as PT_SYSTIME) using PropertyAccessor in Outlook VSTO

Setting a datetime column in Outlook to a c# DateTime value with the following code documentItem.PropertyAccessor.SetProperty( "http://schemas.microsoft.co

Focus a child Control of a User Control when a combination of keys is pressed

I have a Form that contains a Panel where I placed a UserControl. I want that when the Ctrl+F Keys combination is pressed, a TextBox Control, child of my UserCo

How do I get a Unity Scroll Rect to scroll to the bottom after the content's Rect Transform is updated by a Content Size Fitter?

I have a vertical scroll view that I want to add content to dynamically. In order to do this I've attached a Content Size Fitter component and a Vertical Layout

C# GUI Design for Mac Retina Displays

I'm using Avalonia UI to create an application that is available for both Windows as well as macOS, and have come across the issue that, when using a macOS devi

Domain Name Regex Including IDN Characters c#

I want my domain name to not contain more than one consecutive (.), '/' or any other special characters. But it can contain IDN Characters such as Á, 

Do not add to list if it is null c#

I am trying to create a list from anonymous function. I want the list to be created if request model properties are not null. Currently, it is adding null to th

Transparent background image for Form - Smooth edge shape for the Form

When I tried from with transparent background, it's not completely transparent. I tried two code blocks for this issue. First i tried like this code: public F

Xamarin forms set Picker SelectedItem

I am working with a xamarin Forms. I am using Picker for DropDownList. How can I set selectedItem to Picker? My code <Picker x:Name="VendorName" Title="Se

There is no "MouseButtons" information in "MOUSEMOVE" of 'winapi'

I'm trying to implement LBUTTONDOWN->MOUSEMOVE->WM_LBUTTONUP using winapi in outfocus. But the "MouseButtons" information doesn't come. I want to simulat