Category "c++sharp"

CORS Error in Angular App With Asp.net Core Webpi

I've been given a task to to build a web client that interacts with the following API: https://docs.openaq.org/ It should be able to send different parameters

Check if list of string contains exact part of string

I have a List of strings as follows, List<string> str = new List<string>() { "7, 31", "2, 4", "5, 6" }; My input will be something like "1, 2" or

Is there a way to covert Unicode Hex Character Code &#x61; to a simple "a" so that I can get an alphabetic string?

This character format encoding description can be found in All such encoded characters and character description. The exact specific string I want to convert is

Change image source when property value changed

I have this textblock and image icon in HomePage.xaml, <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sch

String or binary data would be truncated when input data from winforms

I'm trying to insert record into my database through a form made by Winforms. At first I try to insert it directly in SQL Server: INSERT INTO item (name, price,

TreeView To JSON

From the JSON file, I was able to build a treeView in windows forms. Now I need to do the reverse process - save the tree to a JSON file after pressing the butt

How to use async calls in WPF event handlers

I have this event handler in WPF with async call. private void Button_Click(object sender, RoutedEventArgs e) { var folderStructure = restApiProvider.GetFol

How to extract image from TCP Stream

I need your help. I was creating an application in c# that converts the data from the IP camera to an image (JPEG). I was able to convert the image using the be

Xamarin Prism get the list of register pages

Is there a way I can have the list of registered pages for navigation in Prism? Or a function where it returns true when it receives a name of a page that is al

How to cancel hiding a Devexpress flyoutpanel according to a condition?

I have a FlyoutPanel and I want to hide it according to a condition. For example: I want to hide it when a counter is equal to 3. What I have tried is: private

What's the difference between alternative visited and just visited in the opencover?

Committing... Visited Classes 0 of 18 (0) Visited Methods 0 of 68 (0) Visited Points 0 of 133 (0) Visited Branches 0 of 74 (0) ==== Alternative Results (includ

DotNetZip doesn't read all entries from zip stored at azure blob storage

I have a zip stored in azure blob storage which I'm streaming it locally and iterating its entries. I'm getting the stream like that: BlobClient blob = _blobSer

Seamless Loop Problem with Media Foundation

I am trying to make seamless looping video in a game engine, and I have two questions. Even though I used the Sequencer Source, I still found that the playback

MouseDown Event After Seconds

I'm working on a project that have a touchscreen monitor. I have 4 picturebox with two event(Mouse Down , Mouse click ). in this case, when i click on the pictu

Which are secrets keys should stored in client application and which stored in the server? Using NACl.Net/Salt

This is first time I try NACl.NET which are desribed here well. Nuget from here https://www.nuget.org/packages/NaCl.Net/ I take code usage from here https://git

Using join method on Entity Framework cause trouble

I got this error An unhandled exception of type 'System.StackOverflowException' occurred in EntityFramework.dll when I use join for listing data from the data

How to set 2 routes point to the same controller in ASP.NET MVC 5

I have an ASP.NET MVC 5 web site which has a controller MyFirstController. That way, I can load the index view by using https://example.server.com/MyFirst. On

Score updating automatically without any prior collisions

I am a newbie to C# and am currently trying to create a scoring system for Ruby's Tutorial. So I am trying to have the score update each time Ruby fixes a robot

.NET Multi-language support for unsupported ISO 639-2 cultures

I am currently developing an ASP.NET 4.8 MVC single-page application that is expected to support multiple languages. From various resources, I found that one wa

ModelState showing invalid, but the value is there?

I hope this makes sense what I am trying to do I have an application built with RazorPages that I am adding server side validation to for a Uni Project I have a