Category "c++sharp"

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

Net Core API: Purpose of ProducesResponseType

I want to understand the purpose of ProducesResponseType. Microsoft defines as a filter that specifies the type of the value and status code returned by the act

Unexpected character encountered while parsing value: . Path '', line 1, position 1

I've created an out of the box .NET Core 2.2 solution and run it. As in: Create Project, selecting ASP.NET Core Web Application. Select API as the project tem

Cyclic transfer of Object

I'm trying to model blood flow. As simple as it gets I am trying to have an event (TimerTick) trigger the transfer of a resource object from unit A to unit B, B

Need help populating an ASP.net gridview using JSON datasource in c#

I have to create a gridview that is automatically populated with JSON. I have created the JSON folder, it works fully, i can save data to it no problem. The i

Blazor server app still authorized even after altering cookies

I have tested a sample Blazor server application that uses standard ASP.NET Core Identity and I logged in successfully. But even after I tried to alter the cook

C# -EWS - Setting custom properties on Exchange service for Outlook email

I would like to save a boolean property on an email. If user clicked on my addin button, i'd like to mark selected email as treated. Using UserProperties of Mai

How to scale a Bezier Curves t value while keeping its initial and final derivatives the same?

there are a lot of answers for scaling a bezier curve's position, but i want to scale its t value. I have found a solution for this, but the problem is once i s

Verifying Qb notification signature in C#

I am trying to verify signature , I received from QB notification but always failing. Below is my function I made public static bool ValidateRequest(Dictionary

Blazor Server cookie authentication with custom AuthenticationScheme

I'm trying to build custom cookie authentication in my Blazor Server app. It works as long as I use the DefaultAuthenticateScheme like this: builder.Services.Ad

What will happen to custom controls and Renderers in .net maui?

In my Current Xamarin.Forms projects I have created many Renderers for different requirements. Now in September maui is coming and we have to migrate our projec

Access Unity Log Stacktrace when highlighting a Log?

When I select any item from the console Log, is there any way to get access to the information is displaying? I'm interested in accessing the information as a s

Set 'Local Group Policy Editor' settings from code

Some things are set through the Local Group Policy Editor. Is there a way to set them in code? If not, is there a way through the command line (and therefore I

Fast update Android notification

I write simple audio player for Android. I wrote basic functional and now I want create notification for control audio player. I use Android classes Service and

Select ListViewItem when child element has focus UWP

I'm writing a Universal Windows App and I have a ListView where the ListViewItems contain a TextBox and a Button. When I click in the text box I would like that

AWS Annotations Framework Input Parameters for C#

I'm having trouble getting a Lambda function written using the AWS Annotations Framework to accept input parameters. This is the article I'm using: https://aws.

Obtaining access to Graph API without user interaction

I'm new to graph API. I'm creating an app that can access user email using Graph API. I've been using the device token method which is used here. The above code