How to properly bind a property to a DependencyObject?
I've got a window and a view model for that window. In that view model, I have a property called Description and it is updated every second. I also have a user control called CustomControl and it has a dependency property called Description that is bound…
What is this error message mean? CS0115
Dear all, How to fix the error: CS0115 'Student_Form.Dispose(bool)': no suitable method found to override NewTims C:\Users\benta\source\repos\NewTims\Student_Form.Designer.cs 14 using System.Data; using System.Data.SqlClient; namespace NewTims { …
Why is the blazor css isolation not working?
I have an AppLogin.razor component and its css file is AppLogin.razor.css. They are working fine. I have a UserLogin.razor component and its css file is UserLogin.razor.css. The working mechanism is as follows When you login from the AppLogin.razor…
How to get a particular column from table and display in in label and not in the list in sqlite database in mvvm model
In MVVM model using async connection, I want to retrieve just one column from my async table to a label not to list. all sample I am seeing put all column in the list . I want only one mesa1 column to be displayed in a label.text. public async Task
Where is system.device.location?
I am trying to use the GeoCoordinateWatcher in my WPF application. Whenever I type the using statement "using System.Device.Location" I am told it does not exist. I have read that I have to add it as a reference but when I go to the list of…
Public IP address via C#
Hello, Is there a way to read out the public IP address via C#? [https://whatismyipaddress.com/]
CoreWebView2.NavigateToString(String) method fails to load an HTML page
I am using an instance of WebView2 class to display some HTML content in a UI panel for a VS 2022 extension. I can retrieve the HTML content that I want to display in the WebView2 control as a string, and then I am trying to use…
Cannot click into or scroll word document after opening .... Until I hit Ctrl+Home or interact with some options in the Ribbon Bar
Some of our clients have started reporting a strange issue in Microsoft Word after we open documents using Microsoft.Office.Interop.Word automation When they open a Word document they think that MS Word is hanging. The first indicator that it's not…
How to add the date selected to an ASP.net form with text boxes ? / v 3,5
hi, I an using a simple asp,net form to get the name, number and email address from my web page. It works fine but there is also a JS date picker which looks good and I am happy with it. My question is how do I pass the selected date to the code behind…
errors in Cart Count update, items not adding Cart, and Cart Total is not updating
Thank you in advance, Can you help me remove the errors? My github Link:Thibaut501/Mango. errors are Count of items cannot be updated, Items is not adding to Cart and Order Total is not updating on Applying Coupon .Discount is not appearing also. its…
>net maui error cs1001 Identifer expected (net8.0)
I've trying to convert my Xamarin project to .Net Maui for the couple of months, I finally got all of the pages to compile (so Far I think) I'm only getting 4 error now, cs1001 Idenitfier expected MyProject (net8.0-android) App.xaml.sg.cs line…
How to enhance Performance set Data from SQL to Excel sheet by C# .net core?
I recieve 900000 row from database and I entire it in Excel sheet by XLWorkbook Liberary but it take More 20 minute it is very very slow and in sometime give my TimeOut Error , So what the solution or another tech to enhance performance
How to target .NET Framework 4.0 in VS 2022 on Windows 11?
Working on some old projects targeting .NET Framework 4.0. I used VS 2022 to open the solution and was told to install 4.0 targeting pack. I can't find the download link on the dotnet website, nor the installation option in Visual Studio Installer. …
Issues with Task and Custom Classes in C# Interfaces
In a C# project with an Infrastructure.DataAccess.Shared assembly containing interfaces for various data providers, only primitive types can be utilized in these interfaces. Attempts to use types like Task for asynchronous methods or custom classes…
How to disable a device from .NET
Hello, I need a POC of "USB disabling" from a .NET application. I made several experiments on windows in order to achieve what I need. The first experiment I made was going into regedit and search for the key…
cell painting in c# datagridview
I am trying to set the background color of cells in a c# datagridview by adding a handler for the cellpainting event. I call Graphics.FillRectangle on the cell bounds. The handler sets the background color correctly, however when the handler exits, the…
Regenerating AndroidResource(s) For .NET for Android Using Visual Studio 2022
I am working on converting a Xamarin.Android app to .NET for Android. I have created an entirely new Solution & Project in Visual Studio 2022 & I used the Android Application Project Template. Visual Studio 2022 creates the following…
configuration method not executing in startup.cs
I have created new mvc project and added startup.cs class with one method. but debug is not coming in this method directly debug is going on homecontroller but it should come first startup class. why my debug is not coming in configuration method. public…
Cold start for AnalyzeDocumentAsync prebuilt-receipt
Hi all, In an .net framework 4.8 console app, I use the code below (from Azure samples), with a S0 pricing tier, location in France. Each time I run the app, the first call to AnalyzeDocumentAsync takes around 20 seconds, as if there was a cold start or…
Configuring maxConcurrentCalls for a Specific Azure Function in a Function App
Hi everyone, I have an Azure Function App that contains multiple functions, all related to the same business case. These functions are triggered by a Service Bus trigger. For one of these functions, I need to ensure it processes one message at a time —…