Category "c++sharp"

Labels not appearing in Grid despite being children of it

I'm relatively new to Xamarin and I've been trying to programmatically add labels to a grid but each time they don't appear on the screen. Here's the code : for

In my WPF control, can I hide the validation control based on the size of the adorned element's row?

I have a user control with many sub controls within a grid. Since there are many controls per row, I'm controlling the visibility of the controls by setting the

Unity2D how do i calculate jump height using Velocity & Gravity

i would like to calculate the jump height. but i don't know how Example: RightBody2D rb = this.GetComponent<RightBody2D>(); // Do jump rb.velocity = new

Setting up SSL certificate in Visual Studio

I have a fresh install of Visual Studio Community 2019 on a new computer. I started a web app project, ran it for the first time, and then when prompted to acce

Visual studio does not recognize newly added class

I am having a weird issue here, i am using vs 2019 and one of my projects refuses to recognize any newly added c# classes, i can not use it anywhere else in the

How to generate heap overflow error using c#

I want generate a heap overflow error and slow down the system, however I have created alot of objects on class level, later on creating that class object milli

Getting an IServiceProvider from Ninject

I'm currently working at a discord bot and the CommandHandler needs an IServiceProvider for the Dependency Injection but I do use Ninject does anyone know a way

How to search for the name of the UserProperty in Outlook.MailItems, not their value

BACKGROUND: Currently I am searching Outlook.MailItems where their UserProperty (here, "IsProcessed") is equal to its propertyValue (here, true or false). st

SSL/TSLsupport for grpc in c#

I tried to implement a gRPC using SSL/TLS, I read the documentation about how to implement SSL/TLS, but this don´t works, I found a stackoverflow page TLS

How to add health checks to .Net core Background service

I am having a .net core 2.1 Background service application which is subscribed to a queue in Microsoft Azure Service bus. It has some logic and it calls to an a

POST https://dc.services.visualstudio.com/v2/track 439

i have error which kill my application - app is running, but - thus, the data in the grids are not displayed - i think error in console browserLink:2843

How to remove Visual Studio 'IDE' warnings for a Unity project?

I've been trying to get rid off IDE warnings for a Unity project: While csc.rsp works for CS warnings, it doesn't for IDE warnings: -nowarn:CS0649,IDE0063,I

C# - VS Code - launch:program ... does not exist

I am trying to debug a simple "Hello world" application in VS Code, however, when I press Ctrl + F5, it gives me the following error: If I manually change th

Awaiting localhost to reload in ASP.NET Core

I have an ASP.NET Core server, which is using SignalR to generate HTML pages dynamically at runtime through JavaScript. After i shut my application down, in the

SharpGL Low Resolution Textures

I am loading textures in using the following code: var texture = new SharpGL.SceneGraph.Assets.Texture(); texture.Create(gl, filename); But when I render them

Scan with WIA. Set the properties and the drawer ADF

I need to use a scanner's ADF. I haven't found anything that works for me. I have tried this code (found on the net) but none of the settings are taking effect.

Inline AutoSuggestBox like windows 11 search box

In Windows 11 OS, search textbox displays as below Here the auto append text has a different foreground. How to do this? while typing in AutoSuggestBox, I need

SignedCms.CheckSignature with SAP certificate is failing

This is a follow-up of this question. I am writing an external server which gets called by a SAP-Server. The SAP-Server signs the URL with a certificate before

Hexadecimal Loops in C#

My goal was to get a 3DES password and for that im missing the last 6 digits. for (int i = 0; i <= 16777215; i++) { string hexValue = i.ToString("X").Pa

How to add bearer token authentication to typed HttpClient in Asp.Net Core 6

I'm trying to setup a web api using ASP.Net Core 6 so that users can hit my end points and then I do some work in D365 behind the scenes using a privileged acco