Category "c++sharp"

How to make a report in crystal report that its columns' number may changes anytime

I am working on a report in crystal-report which its columns are the days of month and as you know the number of the days changes every month. So my question is

WPF Textbox Validation Error binded to Variable

In a .xaml file, I have a number of Textbox objects that are linked to data paths as such: <TextBox Text="{Binding Path=Var1}"> These variables (like Var

Assigning global variables within a local function in C#

I have a program where I am assigning several variables from within a function. When I do the assignments manually it seems to work, but if I write a helper fun

Automapper - Map setup from collection<double> failing

I have a Automapper setup that was working on the v10 version but since i updated it to the latest v11, it wont work anymore. I have no clue what could be the i

How can I tell another script to instantiate a special prefab in Unity?

I have code that generate order of obstacles: using UnityEngine; using System.Collections.Generic; public class GroundSpawner : MonoBehaviour { public G

Why does my Xamarin.Mac application crash when I enable the Hardened Runtime in order to notarize it?

I am developping an app using .NET Framework 4.5.2 under Visual Studio for Mac. Apple has added security features to their latest Mac versions, so I'd like to n

Determ if a System Tray is expanded

is it possible to determ if the Windows Systems tray is expanded or alternativly if a click on the expand icon (small arrow) is happend? I could not found anyth

How to make adding controls in a WPF application faster

I'm working on a WPF app that lets users edit data records. For a test, I'm adding 50 rows to a tree view and this takes ~200ms. This creates noticable stutter

Unable to Extend HttpContent Class

There seems to be something I am missing when trying to extend HttpContent so can anyone let me know if they have been successful in the past at doing this? The

C# Broadcasting message on server to remote client

I'm trying to broadcast a message from server to a remote client, my problem is that I'm not able to receive the message on the client, the approach I'm current

How to suppress compiler errors within vctmp.cshtml files in Visual Studio?

Whenever I open a temporary cshtml file or compare the difference between the files, the compiler shows a bunch of errors. It's unable to resolve razor syntax d

Convert Json to List of Object

I am calling an API using: HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(path); String content = await response.C

.NET Core throws Kestrel error on startup when using Azure Container Instances, Caddy

I'm fumbling through my first exploration into docker containers with .NET. My local development environment is good to go - I've got my dev certs created and s

WPF RichTextBox - How to get second line?

I would like to choose the second or other line from RichTextbox instead of the first or last line. I know this is the code for selecting the first line and the

WinSCP.SessionLocalException: The winscp.exe executable was not found at location of the assembly WinSCPnet

I am new working in a lab that sends data from a local computer to an HPC. I have been all day working around the following problem I am not familiar with it at

How to use the Monaco editor inside a Windows Forms application?

I have a windows form app (.net framework) and I want to use Monaco editor inside it. Scouring the internet does the provide much help and stackoverflow does no

Slow down player's speed in air

I am working on a 3D game currently that is based on Unity's Roll-a-Ball tutorial. The problem that I have encountered, is that whenever my player jumps, its sp

What is a NullReferenceException, and how do I fix it?

I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object.

How to validate Azure Blob Storage Shared Access Signature (SAS) URL?

My application allows users to enter an Azure Blob Storage SAS URL. How would I go about validating it? I'm using the Azure Storage Blobs client library, and th

Registering Class Settings into Azure Function App via Dependency Injection

I'm in the process of upgrading one of our Azure Function Apps from .NET Core 3.1 to .NET 6. As a result, I need to implement dependency injection. Our project