How can I find the Text (width/length/ending point) in CanvasDevice via CanvasDrawingSession
fontFamilyName = $"ms-appx:///Assets/HelveticaNeue-Bold.ttf"; CanvasTextFormat FNtextFormat = new CanvasTextFormat { FontSize = CardTheme.FN.FS, …
How to create Scatter chart in pptx using OpenXML C#
I am trying to create Scatter chart in PPT using OpenXML C#. but the chart series not showing on graph. though I can see the attached excel file data after click on edit data of graph.
Access data stored in vTPM
Hi All, We have a WPF application running on .Net Framework v4.8. We are currently using 'ESXi' to host 'Windows Server 2022', which inturn hosts the WPF application. We are planning to store all the sensitive data related to the application, such as…
Dangerous site - attackers on the site you're trying to visit might trick you
I have an intranet site. This site is hosted on our internal server 2019 on IIS version 10.0. This website is just a web page that enables the employees to fill out their information and then populates a .pdf file from the information that they fill out.…
How to upload file and view those file in modal popup using gridview
I need help in gridview. i am using normal add, edit and delete functionalities in gridview. This is working fine. Initially i am saving the records using textbox controls and save button. This contains including file upload also. After saving the…
MAUI IMAGE LOAD ISSUE USING ASSEMBLY
Hi, I'm encountering a significant problem in my MAUI development. I've developed a MAUI library project, and when I reference it in another MAUI project, everything functions correctly. However, when I attempt to use the assembly or DLL within the same…
How to view/show image from file server path on button click
i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…
Ado.Net Entity Data Model does not appear on item page in Visual Studio 2022 Asp MVC Project
Ado.Net Entity Data Model does not appear on item page in Visual Studio 2022 Asp MVC Project FrameWork= .:Net 7.0 Please help. Thanks not as below
Connect to a paired Bluetooth device from C#.
It is a duplicate of my question on StackOverflow. There is a "Connect" and "Disconnect" buttons in Windows Bluetooth settings. I want to create a console application which would make Windows connect and disconnect from…
What different between "object source" and "object sender".Somebody show some example.
void OnCreated(object source, FileSystemEventArgs e) { try { FileInfo fileInfo = new FileInfo(e.FullPath); string TargetFile = Path.Combine(TargetPath, fileInfo.Name); File.Copy(e.FullPath, TargetFile, true); …
Common directory for Nuget packages
I have a project that includes several dlls projects in C# and I want the Nuget packages to be stored in a common directory instead of being stored in each "Packages" directory of each project.
ConsoleKeyInfo.Key returns 231 for number keys 0..9
I have a program which uses the ReadKey function. The key property of the returned ConsoleKeyInfo structure is 231 for all the number keys 0..9 on the regular keyboard and the numeric key pad. For the OnScreen keyboard the key returns 48..57. The…
ADB1000 solutions mono.androidtools.adbexception system.io.endofstreamexception
I've been working with C# for over a year now and been making applications with Winforms, Wpf, UWP (individually) and using Xamarin Mobile to make UWP, Android and IOS in the one applicaiton hence called Cross-Platform. Up till now everything has…
how to save/update image location in a database via .cs controllers class (button click)
code behind Create.cshtml file the update button @model IMS_Project.Models.Product @{ ViewBag.Title = "Product"; ViewBag.SubTitle = "Create"; @using (Html.BeginForm("Create", "Product",…
How do I build a .NET WinUI 3 App without VisualStudio?
Let's say that the VisualStudio license terms don't fit my use case. Perhaps my employer defines itself as a "Java shop", and I'd like to show them the goodness of native apps. But I can't do so by producing an app they're not free to…
Calendar booking using datagridview
Good day everyone, I make a calendar booking using datagridview. Please take a look the image below. as you can see they have Book start and Book end. Now I want to put a color from date start to date end. Please take a look the image below. I don't…
how to get bus reported device description for VSP com port
Hello, I am using C# to detect usb vsp com port for my ARM controller via usb port. My program has been working properly, but I can't get the descriptor on ARM controller because windows use universal serial device driver. I found item "bus reported…
Data Models
I have two Models, CustomerModel and CustomerInfo neither one relates to the other except that the Model(s) have fields in the same table and I wanted to separate the fields in the Models because they are used in different views of my .Net Maui…
AuthorizationPermissionMismatch error when accessing blob file with indirect permission in RBAC
Hi, I'm using BlobContainerClient for accessing blobs from code (C#) private async Task<BlobClient> GetBlobClientAsync(string blobName, string container, CancellationToken cancellationToken) { var containerClient = await…
UPDATE fields
Hello, This works when using insert into: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) command.ExecuteNonQuery() …