99,190 questions
1
vote
0
answers
40
views
Using Span<T> with BitmapData.Scan0 without unsafe code
I have a loop that receives image data as a Bitmap object that I need to manipulate quickly in order to process the next frame.
Consider the following code:
private static void Main ()
{
var ...
0
votes
1
answer
74
views
What is the VB.NET winform equivalent of C#'s Binding.DoNothing?
In a win-form application, I have two radio buttons called "optVal1" and "optVal2", where optVal1 is checked by default. I use the following two lines to add data binding to a &...
0
votes
1
answer
71
views
Winform loading WebUrl not determine whether is Browser or WinForm
I have an ASP.NET Webforms framework 8.0 that is working fine but I would like to load the Web Url where my webform is hosted in a Winforms app and determine whether the webform url was loaded from ...
0
votes
0
answers
100
views
WinForms custom dialogs with overlay
I was wondering how to make a custom dialog with overlay system in Windows Forms.
I'm making that so I basically have 2 forms : The overlay which is maximized without FormBorderStyle = FormBorderStyle....
0
votes
1
answer
72
views
What directory and file do I target to code sign my ClickOnce manifest and .application files?
I need to sign the manifest, .application, and .exe files for my ClickOnce app, and I am slowly losing my mind trying to figure this out. I'm using a Trusted Signing certificate which is already ...
1
vote
1
answer
77
views
How to Programmatically Print the Windows Test Page for a Selected Printer in C# WinForms
I am building a C# Winforms application targeting .NET Framework 4.0 on Windows 7/10.
I want users to select a printer from a ComboBox and print the standard Windows test page (the same page that is ...
1
vote
0
answers
140
views
Error reading resource file after deleting my form
After I deleted my CashierLoginForm and created a new form called UserLogin.cs, this error pops up when I run my program:
CS1566 Error reading resource 'LendingApp.obj.Debug.LendingApp.UI.CashierUI....
Advice
0
votes
7
replies
96
views
Can the ForeColor of a DataGridView row be changed and displayed without refreshing the entire Control?
I would like to show that a datagridview record has been processed by changing the row forecolor, but to speed up the processing I don't want to redisplay the entire datagridview, just the modified ...
0
votes
1
answer
149
views
Set correct default value for color properties
I have created a user control which is designed to allow the user to select a color. The code relating to a few properties in the control is as follows:
[Browsable(false)]
[...
0
votes
2
answers
190
views
How to create a custom ListBox in C# WinForms (Visual Studio 2022)
I am making a music player in C# WinForms using Visual Studio 2022.
The songs (.mp3 files) get populated into a ListBox, however I want to customize it but got no idea how beyond just changing the ...
-2
votes
1
answer
89
views
Winforms app cannot wake or turn on display on Windows Modern Standby (S0 Low Power Idle) [closed]
I'm developing a Winforms desktop application that needs to wake the screen (turn on the display) after it has turned off.
Environment:
WinForms (.NET Framework / .NET)
Windows 10 / Windows 11 24H2
...
-1
votes
1
answer
114
views
Reason for report file loaded in my Windows Forms application being empty?
What could be the reason for the report file I designed in FastReport and loaded in my Windows Forms application being empty? In that file, my query is a simple join with only one int column, and no ...
1
vote
1
answer
181
views
DragDrop Copy effects with PictureBoxes? Is it making an actual copy of the source file?
I'm currently trying to create a simple drag-drop effect using pictureboxes. It works perfectly fine; however, I'm then trying to deduce the drop target's resource file in order to know if it needs to ...
0
votes
2
answers
171
views
Button won't enable on conditions set in the TextChanged event handler
I have written some code that is designed to enable or disable a Button, depending on what some TextBox Controls contain.
For some reason, the Button won't re-enable after it gets disabled. Sorry for ...
1
vote
0
answers
132
views
WPF Modal Window renders completely white (blank) in Hybrid WinForms application under load
I am maintaining a legacy hybrid application (Main App is WinForms, hosting WPF UserControls via ElementHost).
The Problem:
When opening a WPF Modal Window (Window.ShowDialog()) from the WinForms main ...