99,174 questions
0
votes
0
answers
53
views
DataGridView filter refuses to show empty table and keeps showing the last row
I have a checkbox filter for my datagrid table - a pretty simple one: [Account] IS NULL.
It works off checkbox "unassigned" that when pressed filters to show only unassigned rows. The ...
-1
votes
1
answer
97
views
How to draw a scalable checkmark inside a custom WinForms Button using OnPaint?
I'm creating a custom circular button in WinForms. I can successfully draw the circle using DrawEllipse. However, I don't know how to calculate the correct proportional coordinates to draw a scalable ...
0
votes
0
answers
44
views
WinForms Form icon changes to EXE icon when positioned beside taskbar overflow (Windows 11)
In a VB.NET WinForms application (.NET Framework 4.0) running on Windows 11, a specific icon switching behavior occurs when the taskbar becomes crowded.
Here is my code snippet:
Public Class Form1
...
1
vote
1
answer
138
views
Draw *thin* border between cells in TableLayoutPanel
I want to control whether there is a border line between the cells in a TableLayoutPanel, much like I can do in an Excel table.
To begin with, I set my CellBorderStyle to None as suggested in Draw ...
0
votes
1
answer
112
views
Why doesn't my Winforms "select.. where.." SqlCommand return a value?
I'm creating a Winforms application for school, and trying to get the maximum value of a column in my table:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System....
3
votes
0
answers
91
views
How To set image from Database into Stimulsoft Report
I have designed a report form which has 5 picture box attached to variables with Image type in Stimulsoft.
In my Winform application which have unknown numbers of approvers 1-5. I want to print the ...
0
votes
1
answer
97
views
Unsubscribing from a _Leave event does not work
It's a very simple problem, but a bit tricky to explain (hence the diagrams).
I have a ListView. Clicking on an item refreshes a Panel with the data of the clicked item.
Each item has a property value ...
0
votes
1
answer
63
views
How to set HatchStyle to Winforms Teechart ColorGrid series?
I am trying to set some sort of pattern to the colorgrid series based on the values. So the area with same value will have same pattern (for example: diagonal lines). I found that the Brush.Style can ...
-1
votes
0
answers
48
views
Internal compiler error C1001 in an EMPTY project
I needed to set up a C++/WinForms project. I followed the official Microsoft guide. Then, opening the .cpp file VS generated for me, I wrote the basics:
#include "MyForm.h"
using namespace ...
0
votes
0
answers
33
views
MSB3103: Invalid Resx file when building in a github runner
I recently converted an old winforms project's csproj to the newer sdk format. This has a bunch of resx files for all the forms in the project. Building locally and running it works great. However, ...
2
votes
2
answers
201
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
83
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
75
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
108
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
82
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 ...