How to use WPF Mouse.OverrideCursor in a VB.NET application
I tried a sample WPF code, that Kareninstructor recommended to me, from https://github.com/karenpayneoregon/visual-basic-getting-started/tree/master/ChangeCursor to test the usage of Mouse.OverrideCursor - this worked beautifully. However, it is a…
How to convert outlook email (.msg) to pdf c# ?
Are there any free libraries using which I can convert outlook emails i.e. .msg files to pdf in my WPF c# app? I've tried using PDFSharp like below but the data is not showing properly at all. The email body contains tables and text and sometimes it may…
Optimizing WPF Application Startup Time on Shared Network Drive
My team is facing an issue when publishing the application on a shared network drive. When an end user opens the program for the first time after starting their computer, it takes significantly longer compared to running it from the local C drive (18…
Dependency Properties in User Controls
I have a simple Slider and Label user control that I load into my window and I want to change the following properties using databinding from the main window. Slider Properties -> Value, SelectionStart, SelectionEnd (all doubles) Label Properties…
UCEERR_RENDERTHREADFAILURE (0x88980406) when multiple processes of the same WPF application are open.
Hello! Application: My application draws a huge number of OrderBooks (https://www.investopedia.com/terms/o/order-book.asp), for this my hierarchy looks like this: MainWindow -> TabControl -> TabItem -> DockingManager -> DockPanel. In…
How to Print a PDF File in C# WPF
Hello everyone , I have a PDF file with several pages and I need to print it using C# and WPF technology. Can someone provide some guidance on how to achieve this and customize the settings, such as page size, orientation, and margin? Thank you.
How to implements desing time adorner for WPF?
I want to provide design-time support for my user control in WPF. I found out about adorners, but unfortunately, I could not implement them (In design time). I used this walkthrough, but it is old and no longer being updated. I would appreciate any help…
How to Apply Multiple Filtering Criteria in a CustomObservableCollection?
Hello I am managing data in my WPF application using a CustomObservableCollection. I created a custom collection by inheriting from ObservableCollection in order to control any additional operations that might arise on the collection in the future. Now,…
Unable to detected visibility of Onscreen keyboard using user32.dll
Below code is always showing on screen keyboard as visible. Even if it is closed. using System; using System.Diagnostics; using Microsoft.Win32; using System.Runtime.InteropServices; using System.Threading; namespace CSharpTesting { class Program …
Advice on Signing and Certificate Options for a WPF Project
Hi, I have a WPF project based in Dublin, initially intended for approximately 100 users in Ireland, with plans to expand both inside and outside the EU over the long term. The business was established in September 2022. I’d like advice on the best…
Multiple HTTPs Requests
Hello All, We have a WPF application built on .Net Framework 4.8. This application communicates with an HTTPs server to perform a list of commands. These commands must be executed one after another and must not be sent in on go. This communication is…
RenderTargetBitmap.Render() creates blank image when element present in Grid.Row = "1"
Save element (inherited from System.Windows.Controls.Control) as image using below code. RenderTargetBitmap bmpSource = new RenderTargetBitmap((int)element.ActualWidth, (int)element.ActualHeight, 96, 96, PixelFormats.Pbgra32); …
How to know whether the snap applied in windows 11 windows. Is there any API.
Is there a method or any API to tell if snap is enabled or disabled in Windows 11? Please answer if there is any other way.
Getting security warning Unknown publisher issue while install the .exe or update the application using click once
Dear Support, I have created a Windows application using WPF and deployed it to a server location using Click-Once. It was properly digitally signed and used by everyone in the organization. However, recently we have started getting the "Unknown…
After migrating to VB.NET Core 9.0 from 8.0, I am getting error messages on menu bindings
After migrating from version 8.0 to version 9.0, I am getting error messages related to the binding of menu items. I am working with Visual Studio 17.12.3 and .NET Core 9.0.101 on a Windows 11 (23H2) machine. Further down in the XAML code, I have the…
Why does BackgroundWorker.RunWorkerCompleted +=OnRunWorkerCompleted event not get called?
Our application uses the WPF and .NET Framwork 4.8 The AbortableBackgroundWorkder class inherences from the BackgroundWorker class and used as following. ProtocolProcessor class performs complicated sequence instrument control actions. we notice that…
Enable recovery using ReagentC using Csharp or bat file
Hello All, Morning: I would like to enable recovery using ReagentC in my windows LTSC 21H2 19044.5131 system using C# application so i set the app manifest by default launch ad admin. I tried to launch the the batc file via this application but recovery…
How to get DataGrid object of TabControl.ContentTemplate
Dear all, I have a control using ContentTemplate and i would like to binding the Visibility properties with viewModel but that error 'Cannot find governing FrameworkElement or FrameworkContentElement for target element'. This is control in xaml: …
The C++compiler cannot find the address to download to
It keeps showing this“The installation folder 'C: \ Program Files \ Microsoft Visual Studio \ 2022 \ Community' cannot be found.”Actually, I don't quite understand why he said that the one I don't have is a document or a file. In the administrator…
why dispatcher timer runs on accurate time but system timers some times lags or runs at 1-5 sec delay or in advance ?
Hi i have two timers basically classified in two categories:- Dispatcher Timer: First timer runs on application.current.dispatcher System.Threading.Timers : Second timer runs on timer using this method. Suppose both both timers fires a action to…