Category "c++sharp"

Unable to resolve service for type ApplicationContext

I have my ApplicationContext as following :- You can see i am deriving ApplicationContext from ChildContext (child class) that in the end derives from `Identit

C# Winform LiveCharts does not know how to plot

I'm trying to draw a graph with some arrays. I got 4 arrays (Time,Temprature,Speed,Water). I want to add Time array on AxisX. The others are going to be on Axis

Get raw sql string in Sql Kata

I am using SqlKata purely to build sql queries in C#. I am wanting to take the output of my built up Query, get the raw (compiled) sql string, and execute it ag

How do I show a list of group members that belong to a group in blazor?

Below is my groupmember Class namespace MMSProjectShared { public class GroupMember { [Key] public int MemberId { get; set; } p

The same volume can not be used as both the source and destination

I'm creating split archives using the following code: string filename = "FileName.pdf"; using (ZipFile zip = new ZipFile()) { zip.UseZip64WhenSaving = Zip6

Unicode to Arabic Win1256

I have Unicodes in my Database which were encoded from Arabic and I need some source code to convert it to actual Arabic. I have tried a lot of codes but not wo

DataGridView ScrollBars are not working after Thread

I'm setting a dataTable as data source of a datagridview. I do this on a new thread (I don't want my UI blocked while is loading data). My dilema is: the scroll

Create Visual Studio plugin to launch window form application inside visual studio(not standalone)

I have a window based tool which is currently working. I need to add this tool as a plugin/extension in visual studio. So that if user has visual studio install

There are more columns in the INSERT statement than values specified in the VALUES clause [closed]

I want to save new record in SQL table. one of this table field is "username" that I want to add record by using session and other fields are

How to set the form resolution for each screen in C#?

I made a project in C# Form with FormBorderStyle=FormBorderStyle.None Resolution = 1920 x 1080. But, this project is set for 1080p only and takes it offscreen a

Make string comparison case-insensitive for .net winforms application [duplicate]

Need to have string comparison case insensitive for .net winforms application. It is not a problem when strings are compared in my code, but I

.net Windows forms Property Grid

I have a .NET windows forms property grid which is tied to the collection of entities public class Entity { public string A { get; set; } public string B { get

SheetChange event is not getting changes of active excel cell when performing another function

I am coding simple application having one window form using c# in visual studio, app exe will be opened by excel VBA macro and the application will read the val

How to load an application to systemtray using Avalonia

How can I load an Avalonia application to the systemtray and set the menu items?

Formula to make the ends of the arms of a spiral galaxy less dense

I want to make a spiral galaxy in Unity 3D using C# ( i use a derived logarithmic spiral ). I want to set the end of the arms less dense than the middle, but mi

The Name DoEditButtonChecked does not exist in the current context C#

Very new to all this. Was working on my game in unity and got an error. I tried restarting unity, I tried asking for help in other places, and got no response.

Programmatically creating WPF/ASP.net CRUD UI from Database

I have a requirement to build forms directly from a specific dataset format. I've gone one step of being able to create the database from the dataset using F#.

How to do error handling with EasyNetQ / RabbitMQ

I'm using RabbitMQ in C# with the EasyNetQ library. I'm using a pub/sub pattern here. I still have a few issues that I hope anyone can help me with: When there

New line character from c# to cshtml

I am making a webpage... the controller is written in C# and the webpage is in cshtml. In the c# file, I am constructing strings to be put into the table on the

Force MVC CookieAuthentication to timeout prematurely, then setup combination of sliding and absolute expiration

I am maintaining a website that using cookie authentication in a ASP.NET MVC5 application. When the application went live the cookie time out is set to a very l