Category "c++sharp"

How Can I add keys in Registry Editor whe the app is installed?

I need to add a key cause I need that my application starts at the same time as windows, this is what've done so far. [RunInstaller(true)] public partial class

How do I save outlook Mailitem as sent mail

I have created an Outlook mail item and want to save it in a folder as a sent mail. I was able to set sender mail using mail.SentOnBehalfofName. How do I add Da

How to loop though and change background color of each item in a list [closed]

I'm trying to change the Console.BackgroundColor for each item in a list, and am wondering how I would go about doing so. public static List&l

message shows undefined when ajax post in ASP.net

Hi I'm Fairly new at coding and in asp.net and had an error occurred to me please help me if you can. This is my script when I run the code given below using an

Pie Chart is not viewing in the HTML reports after converting from .trx with tool TRXER

I have converted the .trx file to HTML reports but pie chart is not showing on html reports. I have Chrome 79+ version. I created html reports after using this

ASP.NET Core Web API - Cannot instantiate implementation type 'System.Net.Http.IHttpClientFactory' for service type

I am trying to use Dependency Injection to register service in ASP.NET Core-6 Web API. I got this interface: public interface IHttpClientService { Task<T

Cannot reference Umbraco generated model

I have an Umbraco 8 site using Models builder and I cannot seem to reference a generated model, as suggested is possible by Umbraco [documentation][1]. My model

MSBuild on NET 5 Core projects produces different bin/x64 and bin/Debug folder structures

I am having an awful time understanding how MSBuild works with NET Core project files (csproj) on Windows 11. I have 71 NET Core C# project files (executables,

Turn `ReloadOnChange` off in config source for WebApplicationFactory

This is both a question and an answer. I've fixed my problem, but it seems a bit wrong. My original problem is running my asp.net core integration tests in a b

Unable to Write json variable c# getting an error

I get an error when I try to serialize or update a json file. I just want to update the value of "balance" inside a json file and I got the idea here... I can't

form.show doesn't show all the content on the form like forms.showdialog

I am currently developing a GUI that helps users pick a test to run for a DUT. The program controls a bunch of lab equipment via visa com drivers and logs the d

Hangfire RecurringJob "does not contain a method with signature"

I am using Hangfire configured in my WebAPI .NET Framework 4.7.2 application. I am configuring it inside the Global.asax.cs My dependency injection chain is con

GRPC-Web + Blazor CORS Issue

I'm trying to create a Blazor WASM application that will call a GRPC gateway using grpc-web. The description of the Gateway Service is: syntax = "proto3"; impor

'Server failed to authenticate the request' when attempting to generate SAS URI for (Azurite) Azure BLOB storage

I've combed through at least a dozen different versions of this problem but none of them have so far produced an answer to the one I'm having. I'm attempting to

How to remove BOM from an encoded base64 UTF string?

I have a file encoded in base64 using openssl base64 -in en -out en1 in a command line in MacOS and I am reading this file using the following code: string file

Why is my recursive descent parser right-associative

I'm writing my own programming language, and I have the tokenizer (lexer) all done. But for parsing, I'm having trouble writing a recursive descent parser. It s

Web Api Return File with additional data

I'm returning a file as follows: public async Task<IActionResult> GetFile(string id) { try { Get

How do you multiply a quanternion by a vector3 in unity?

I have this code: private Transform player; // Start is called before the first frame update void Start() { player = Object.FindObjectOfType<PlayerIdenti

Power BI embedded report in Angular 7 code is not exported with visual filters applied

We have embedded Power BI report in Angular 7 code and when we try to export using Power BI provided service it is not exporting applied filters instead it down

C# - Random Generator exclude last number from Array

I've just started my first little project in C# and with WinForms and I am stuck on this one feature for a few days now.. I have an Array with about 60 PictureB