Category "c++sharp"

C# ConfuserEX Not working with embedded .dlls

I'm using Costura.Fody which allows users to embed dependencies as resources. In my case its embedding a .dll to my .exe... The problem is when I try to use Con

How to disable scrolling of comboBox from keys arrow Up\Down when it closed?

The arrow keys should scroll only pictureBox (placed in panel). It works fine. But it also scroll through comboBox items though it is closed (droppedUp). How to

External Provider Login .NET

I had follow this tutorial for setup External Login https://code-maze.com/external-identity-provider-aspnet-core-identity/, after when I want to test login with

Rotated Rectangle in EMGUCV over contours

Can somebody help me out please. I want to draw a rotated rectangel over my contours. i have found an Opencv code for python, but I need it for c# Emgucv. Can s

What value should I return in catch?

I just implemented a Try catch in my code, the error is because I have to return something in the catch, I can't understand is "what should I return?" 'Company

How to get the value of date cell datagridview into the datetimepicker?

First thing go to datagridview event MouseClick, and write the code below: DateTime dateValueOftheCell = DateTime.Parse(dataGridView1.CurrentRow.Cells[4].Value.

Tasks are getting cancelled, but it's not clear why and how

I'm working on a large monolith web application running on ASP.NET framework and added a feature. I've build some abstraction in order to run several tasks in p

C# MVC Route to different Controller map

I have 2 routes. 1e route for normal pages. 2e route for my json response controller (api with session auth) public static void RegisterRoutes(RouteCollection r

Rotate around multiple axis of a GameObject

I am creating a measure app for iOS using Unity. I was able to measure distance between 2 points and show it in a GameObject. This is what I have achieved so fa

How to guarantee a unique id without using GUID?

My multi-threaded program for invoice management's invoice class: public class Invoice { [BsonId] public ObjectId Id { get; set; } p

How to use a usercontrol from another project in the same solution

I have 2 projets in a visual studio solution: Text Adventure Game Text Adventure Maker The project "Text adventure Maker" have a userControl. I want to use this

Any idea why private property and variable behave differently in FileHelpers?

To simplify the case, let say I have the following class public class TestFileHelpersClass { [FieldOrder(1), FieldFixedLength(20), FieldTrim(Tri

How to set the ContentPage Title StringFormat through boolean binding and DataTriggers in Xamarin.Forms

I have created a "Mobile App (Xamarin.Forms)" project in VS 2019: and then I chose the "Flyout" option: I modified two of the auto-generated classes: ItemDeta

Try to do methods C#

I can try to do method for change length of array. But newArray not visible in main... What can i do for? I am a begginer and need some help internal class

Azure Function RabbitMq trigger stops receiving messages

I have Azure Function with RabbitMq trigger and it stops receiving any messages after certain time. The function is deployed in Azure. When I stop and then star

Multiple micro service or console application that read from a single table

I need to read millions of records from a sqlserver table through a microservice that does block reads in parallel. each instantiated microservice performs the

Add property to all responses in asp.net core

I have an API with multiple endpoints. I'd like to add a property to all endpoint responses, without adding it to each endpoint response model individually. Ex:

How do I make inheritance work from component class?

Im trying to access Ids from a component class in an If statement but I get the error saying that it does not exist in the current context (CS0103). Here is my

C# Cannot implicitly convert type 'string' to 'int'

I get Error when try to set value for (a.Hinta ) to (HintaTextB.Text) in third code block. public bool saveAutoIntoDatabase(Auto newAuto) { bool

What is the difference between using AsyncOperation and not using AsyncOperation to show progress in UnityWebRequest?

I wrote a script that simply downloads a text file using UnityWebRequest. (I set the text size to 50 MB to see meaningful progress.) private IEnumerator GetRequ