Reading Data from a COM Port in a .NET Console Application
How can data be read from a device connected to a computer via a COM port using a .NET console application? The device measures the weight of heavy vehicles and is connected to a weigher that displays the results. The existing application on the computer…
why the property in the derived class is not accessible here?
public class LoanPerformance { public decimal Principal { get; set; } } public class AggregatedPerformance { public int LoanId { get; set; } public decimal Principal { get; set; } public virtual void Aggregate<TLoanPerformance,…
Public IP address via C#
Hello, Is there a way to read out the public IP address via C#? [https://whatismyipaddress.com/]
How to troubleshot HttpWebRequest if X509Certificate is not added properly
Hello all, I am adding a X509Certificate to the HttpRequest like the following: HttpWebRequest request = (HttpWebRequest)WebRequest.Create("webserviceurl"); request.ClientCertificates.Clear(); X509Certificate certificate = new…
is it possible to develop REST api by winform application C#
is it possible to develop REST api by winform application C#? Or I am forced to use asp.net or web to develop? Thank you
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 Access and Reconstruct HBITMAP Data from a Debugged Process?
I am developing a Visual Studio 2022 extension to extract HBITMAP objects from the memory of a debugged process for analysis. Ideally, I want to access and reconstruct (when necessary) the raw bitmap data directly, without needing to convert each…
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…
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 { …
>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…
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…
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…
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…
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…
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…