Category ".net"

Handle MouseMove, MouseDown, MouseUp Events in a ListView to drag a borderless Form

I'm using MouseMove, MouseUp, MouseDown events to move a borderless form (as found here as an example). It works great, but for a ListView, it only works if I c

How to override List property in EF Core 6?

I have a problem, in database I have an object of class Catalog with 3 elements in CatalogUsers. I want to replace that list with 2 element list being the orgin

WindowsCommunityToolkit.DataGrid TabIndex is ignored in DataGridTemplateColumn.TextBox

I have a DataGrid (https://github.com/CommunityToolkit/WindowsCommunityToolkit) with a TemplateColumn and a TextBox. Unfortunately, my TabIndex is ignored and i

Backwards Shell navigation does not trigger ApplyQueryAttributes and I can't get the query data .NET MAUI

I have a page that is used to select country code. The ListView with country code's is on another page and on selected country code I navigate back to the previ

Angular 12 .Net 6 value null being passed to api as "null"

I have an angular 12 UI that is communicating with a .net 6 API. When a parameter in a query string is null or undefined the API is interpreting it as a string

Using parameters.xml to set parameters on scope ApplicationInsights.config

We are trying to push a ConnectionString key in ApplicationInsights.config via parameters.xml. The parameter does not do his way to the said file. We build a we

How to prevent a popup Form from exceeding screen area?

I am building a two column custom context menu layout using Forms. I named the class of the form of the custom context menu as ContextMenu. I created a flag fun

C# connection to GIT fails

I have an application that generates file that needs to be stored in a GIT repository in ADO. I'm trying to connect to a repository but it fails to give me a GI

Link Azure AD B2C login user to custom database table user

I'm pretty new to Azure AD and I could get the AD login working with username and password after setting client IDs, Domain and SignupSignin policies. My questi

AspNetCoreRateLimit endpoint wild-card does not work

I am trying to implement a rate limit using the AspNetCoreRateLimit package. I would like to limit the rate on only one endpoint This one: https://[removed for

How do I restore focus to previously focused control of the TabPage when switching between tabs

I have a TabControl and I'm adding Tabpages to it programmatically. Each TabPage loads a UserControl in it, and each user control contains a few controls. For e

Aspose Package document not saving when using doc.save method

I have tried below two methods and ensured that license is updated along with the correct binary. Using .net framework 4.5.2. Below using doc.save method is not

C# .NET HttpClient POST returns an empty response sometimes

I am using HttpClient to send a POST request to an external API and I know I'm sending the correct payload and headers and everything because it works sometimes

Azure Blob Storage SDK v12 - BlobClient DownloadAsync gone?

I have production code that uses the BlobClient.DownloadAsync() method to download a file from Azure Blob Storage using the Azure.Storage.Blobs nuget package v1

Protobuf Message With Arbitrary Type (.NET)

I want to send/receive values with arbitrary types. At first, I thought the Any type would allow types such as string int32 etc. but it seems that the type must

Cannot Read struct with string from PLC using s7netplus c#

im trying to read this data block from Siemens S1500 PLC using s7netplus libary and my mapped code struct looks like this public struct testStruct {

How do I add a metric name to MetricOrderBy when using Google.Analytics.Data.V1Beta?

I am writing come code in c# with Visual Studio 2022 to fetch Google G4 analytics data and cannot get one piece to work correctly. It is the part where a create

how to fix this error "Microsoft.Extensions.Azure: Could not load file or assembly 'System.Diagnostics.Tracing, Version=5.0.0.0,"

there’s a problem that I didn’t understand where it came from because the script worked yesterday , I woke up and I found this problem that wasn&rsq

Application Insights Telemetry: can you track traces/events/etc. asynchronously?

I am a longtime user of Azure's Application Insights, and I use the TelemetryClient's TrackTrace() and TrackException() liberally in every enterprise applicatio

Moving from HttpWebRequest to HttpClient

I would like to update some legacy code from using HttpWebRequest to use HttpClient, but I am not quite sure how to send string to the REST API I am accessing.