Category "c++sharp"

Xamarin.Forms: editing (in VS) custom control's property value at runtime in XAML doesn't cause any updates

I have a custom control in Xamarin.Forms app that's described via XAML. For example, CustomControl.xaml: <ContentView xmlns="http://xamarin.com/schemas/2014/

How to deal with IEnumerables/Arrays/Collections in Fluxor State?

I'm currently trying to implement Fluxor for my Blazor WASM app and all the instructions/tutorials I found recommended something like this example for the Store

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot. Next time when this user try to open the application will have an error : The * applicat

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot. Next time when this user try to open the application will have an error : The * applicat

Improve insert performance for a C# application into SQL database

I need to improve the performance of my insert in my C# application. I first go out and get data from a view. Then I go through a FOREACH loop to insert into a

C# - Theard.Sleep skips over lines of code

I'm working on a small C# Windows Form application. In this application, I've used Thread.Sleep to wait on the current screen before moving to the next one. The

ReactiveUi: How can I replace the default IViewLocator when using AutoFac?

High! I am trying to replace the default IViewLocator of ReactiveUi/Splat in WPF. I am using AutoFac as container. My goal is very simple: ReactiveUi/Splat shou

How to export a DevExpress PivotGridControl to Excel

I have a button click that attempts to export a DevExpress pivot grid to an excel file however when you open the file in excel or google sheets it zeroes some o

Why does validation in ASP.NET Core Razor Pages doesn't accept empty inputs?

I am learning how to code in ASP.NET Core Razor Pages and am working on validation right now. Both in client side and server side validation no input is allowed

How to focus textbox and send ENTER key using child handle?

How to focus and send 'ENTER' key to child control's textbox? code: //Get textbox child handle IntPtr TextboxChild = FindWindow("Edit", "mulatetwindow"); //S

Is it possible to convert Unicode ASCII bytes[ ] to actual strings(Hi)

Is it possible to convert following bytes[] to a string as "Hi". Currently it is showing as "H�" //"Hi" - is actual message byte[] bytes = {72,175}; stri

Google.Drive.Api Oauth 2 Credientials in Xamarin android application

I am trying to read a file from google drive using my xamarin android application using google.drive.api, the latter requests Google Oauth2 ID credentials for A

Blazor Razor Class Library (RCL) No CSS Intellisense

I have a razor class library (RCL) that contains all the pages from my blazor application. The CSS intellisense does not seem to work within the RCL unless I ch

Is it possible to debug a C# console application using git bash?

I am using Visual Studio Community 2022, and I was wondering if you could use another CLI to run/debug a c# console application. (I can't use cmd.exe or powersh

How to apply seperation in one service for multiple tasks?

I have a service method that does so many things. public Result DoSomething(){ var queryResult = service.GetResult(); SaveResultToRedis(queryResult

Newtonsoft.Json.JsonSerializationException Message=Cannot deserialize the current JSON object

here the ex Newtonsoft.Json.JsonSerializationException Message=Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collection

How can I query for keyboard input in a GUI app without using a pre-built input form?

In a console app, I could put Console.ReadKey() in an infinite loop, and I have what I wanted. But how can I do that in a GUI app? Let's say I'm using the new M

C# forms check when a specific execute has been launched and then run my program

How would I make my program check if a certain application like "notepad" has focus and ultimately open my second form when it does have focus, closing that sec

Cant create an alarm in Xamerin Android C#

Copied my teacher's simplified code in order to see if the code i wrote was wrong or somthing yet even her's isnt working. Here is it: private void BtnAlarm_Cli

How to turn an object into a request in C#

My Model, example: public class Obj { public Obj() { } public int? IdRestricao { get; set; } public int? IdTipoRestringido {