Displaying image in RDLC report viewer.
I want to display an image from my picture box in my RDLC report viewer. I generate a barcode and display it in the picture box. private void Print_Click_1(object sender, EventArgs e) { Barcode barcode = new Barcode(); int width =…
multiple git local repositories for a visual studio 2022 solution with multiple projects
I have visual studio professional 2022 installed. I have a solution named Bigfoot. In Bigfoot I have 3 projects. One is desktop, one is communication and one is exports. I want to have a git local repository for desktop, a different one for…
Difference between 'client.GetStringAsync' and 'await client.GetStringAsync'
Hello! I have a synchronous function that I cannot change to async. How can I still call it correctly without using GetAwaiter? Task<string> task = client.GetStringAsync("http://ifconfig.me"); Task<string> task3 =…
Windows Session Authentication
Hello All, We have a Windows application built on .Net Framework 4.8. This application provides a login window was until now being handled by an SQLite database. But now we would want to implement 'Windows Session Management'. We must also get the role…
Showing System.Drawing.Bitmap in MAUI form?
Hello, I want to do a MAUI applciation able to read a USB camera from IDS and paint the incoming images in the main form. I'm able already to detect the camera initialise it and receive the incoming images. I'm able, also, to save those incoming images…
Drag and drop in Win UI
Hi, I'm doing drag and drop in Win UI application, but I have a problem. In drag and drop there is only Data.SetStorageItems method. It accepts an IStorageItem with which I have no access to hidden files and shortcuts (only using file picker, but in my…
brightness dim when plug in to the power cord
so I had a problem with my laptop when I freshly installed Windows 10, at first I installed Windows 10 1511 in 2015 on my Dell Laitutde E5410 laptop, then after everything was installed I tried installing the driver through the driver booster…
C# How to sort version number
Suppose we have series of version number stored in List<string>. i need to sort those version number ascending or descending order. i have the done the job this way. my code attached. var ver = new…
Microsoft.Data.SQLClient 5.2.0 fails to work with .Net 8
I am having issues creating a Class library with C# and .net 8 that uses Microsoft.Data.SQLClient. version 5.2.0 which states that it will run on .net 8 platform. Here is the code for the class library using System.Data; using…
Public IP address via C#
Hello, Is there a way to read out the public IP address via C#? [https://whatismyipaddress.com/]
How to add a keyboard shortcut on a Visual Studio extension?
I'm trying to learn how to create a keyboard shortcut on a Visual Studio 2022 extension. I would like to get the shortcut visible and editable at Tools > Options > Environment > Keyboard Steps i tried: Addded: …
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…
C# Application Closes immediate after calling MainWindow.Show()
I have a Project in VS that I could Debug and Open normally on my old machine. On my new Machine I have installed VS2022 Enterprise, there it closes immediately Following Problem: When I call _mw = new MainWindow(); the application just ends: Following…
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…
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 { …
WinUI 3 - How to Retrieve ActivatedEventArgs Multiple Times?
The documentation states that AppInstance.GetActivatedEventArgs this method will only return the arguments the first time it is called in an app. If a packed single-instanced WinUI 3 app is activated from a protocol multiple times, what approach can…
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…
Looking for a C# IOCP example/tutorial
I'm trying to find a good .NET example of how to do TCP networking using IOCP and C#. The examples that I've been finding uses interop calls to do IOCP. Unless I'm wrong, my understanding is that nowadays it's no longer necessary to use interop calls…
How to parse SNMP traps in C#?
Hi All, We have a C# console application built on .Net core. We have requirement to parse SNMP trap in C#. My question is is there any method/class available in to parse below sample SNMP trap? Sample SNMP trap: 2020-08-04 04:56:45 04:56:44 2020/08/04…
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,…