Category "c++sharp"

How to send info to site about desktop resolution in Selenium?

I am developing an application and I need to send some info about the resolution of a browser's window and the resolution of a monitor. The resolution is curre

Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing

I had an Asp.Net core 2.2 project. Recently, I changed the version from .net core 2.2 to .net core 3.0 Preview 8. After this change I see this warning message

Is there any way to remove bindings from all bound elements on a form close event?

According to this document, the following code causes a memory leak in WPF: myDataBinding = new Binding("Children.Count"); myDataBinding.Source = myGrid; myDat

How to find a keyword in a visual studio project

I am looking at an old project one of my colleagues wrote in AngularJS in Visual Studio and as we all know, it's pretty difficult to understand code when you're

ServiceStack HasPermission in the context of the request

I am trying to harness the authentication and authorisation features of servicestack so that I don't need to pollute my service code with this, which should lea

How to do a background for a label will be without color?

I want to add a label to my form , and I want it without any color- I want just it's text to be visible, I don't find this option in the label's properties, can

Drawing getbounds rectangle or rectangleF?

I have a List with float coordinates and I'm trying to draw a rectangle around a line previously drawn. Graphics G = e.Graphics; Pen pen5 = new Pen(Color.D

System.ArgumentNullException: 'String reference not set to an instance of a String. Parameter name: s'

When i submit the registration form i get this error: System.ArgumentNullException: 'String reference not set to an instance of a String. Parameter name:

My SelectList based on an enum cannot update the database

I have a simple Html.DropDownList that is backed by a SelectList which, in turn, is backed by my enum. Enum Colors Red=1, Green, Blue I add an option label to

How to use jquery in ASP.​NET Core

I created a ASP.NET core template and wrote a jquery script. When I look at the page I see that jquery is loaded into the page, but the script doesn’t run

Using strings instead of enums?

Is it common place to use a string for comparison as opposed to an enum?

ServiceStack HasPermission in the context of the request

I am trying to harness the authentication and authorisation features of servicestack so that I don't need to pollute my service code with this, which should lea

How to create a sequence of integers in C#?

F# has sequences that allows to create sequences: seq { 0 .. 10 } Create sequence of numbers from 0 to 10. Is there something similar in C#?

Why ASP Net Core 2.2 do not release memory?

I'm testing ASP Net Core 2.2 using default project made from: Visual Studio > File > New > Project > ASP NET Core Web Application > Next > Cr

highlighting specific days in jQuery datepicker

I have looked through various posts to try and solve my problem such as: How to highlight some specific days with multiple colors in JQuery Datepick Although n

Using FolderBrowserDialog in WPF application [duplicate]

I have a WPF application that I need to have users access directories in. I have searched to the end of the world on how to integrate windows

Blazor Textfield Oninput User Typing Delay

How can I add a delay to an event (OnInput) in Blazor ?For example, if a user is typing in the text field and you want to wait until the user has finished typin

How to prevent TextBox auto scrolls when append text?

I have a multi-line TextBox with a vertical scrollbar that logs data from real-time processing. Currently, whenever a new line is added by textBox.AppendText(),

WCF client exception: Unrecognized message version

I hit this error today when deploying a WCF client to QA: System.ServiceModel.CommunicationException: Unrecognized message version. In Fiddler I noticed t

Nearest location from JSON column

We have a directory application and every directory has many branches and many location points (latitude, longitude) The branches location are stored in the dat