2,504 questions
0
votes
0
answers
62
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
...
0
votes
2
answers
65
views
How to add links in Excel
I’m generating an Excel file from a .NET application and trying to add clickable hyperlinks to cells, but the links are either not showing or not clickable when I open the file in Excel.
I initially ...
0
votes
0
answers
130
views
Flickering when displaying a KryptonForm in Windows Forms
I'm working on a code editor using Windows Forms and I'm stepping into the typical "flickering" problem. However, it seems that traditional solutions do not work for me.
My application uses ...
0
votes
0
answers
45
views
Unable to use ArrayEditor class in WinForms application with Microsoft.WinForms.Designer.SDK in .NET 9
In a simple .NET 9 Winforms application, I have tried to create a custom class which is derived from ArrayEditor class, and it works only before I added the Microsoft.WinForms.Designer.SDK in my ...
0
votes
0
answers
27
views
AxWPLib Windows Forms Video Black Screen Problem
I am putting two videos side by side in Windows Forms application and these videos start automatically when the forms are started and return to the beginning when it ends (I looped it). However, I ...
1
vote
1
answer
205
views
Implementing a custom ParentControlDesigner for UserControl that conditionally allows (or not) adding controls at Design Time
As a Minimal Reproducible Example, in order to customize the designer behavior of my UserControlEx I subclassed:
Microsoft.DotNet.DesignTools.Designers.ParentControlDesigner
First, I successfully ...
0
votes
0
answers
147
views
MenuStrip and StatusStrip Items Disappear in My C# WinForms Program
Description: I'm developing a C# WinForms application using Visual Studio 2022, .net6.0-windows, Visual Studio Version: 17.12.4, I created the form and wrote the code. Everything was fine at first, ...
0
votes
0
answers
92
views
How do I properly save .gif files to SQLite database in Windows Forms?
In my solution, I have a helper class with these methods:
public static Image ToImage(this byte[] sadrzaj)
{
var ms = new MemoryStream(sadrzaj);
return Image.FromStream(ms);
}
...
0
votes
0
answers
69
views
How to Keep Panels Below Maximized Forms and Prevent Panels from Being Covered When Minimizing in a Windows Forms Application?
I'm working with a Windows Forms application where I have a main form (MainForm) with IsMdiContainer = true and FormBorderStyle = None. On the left side, I have a Panel with a MenuStrip, and at the ...
1
vote
2
answers
574
views
Visual Studio 2022 v17.11 to v17.12 Upgrade - Form Designer Issues
We have a very large WinForms solution (38 projects) that targets .NET 8.0 (Windows), and it worked just fine in VS 17.11.6 but as soon as we upgraded to v17.12 we can no longer open most Forms/...
0
votes
2
answers
158
views
How can I hide files in windows form output folder?
I created a windows form using C# in Visual Studio.
The form looks great all buttons, labels, tabPages…etc. all work just fine.
The one issue the I have is the output folder located at “C:\Winform\bin\...
-1
votes
1
answer
73
views
Resizing the form1 window from the Form2 window
I am writing C# code in VS windowsforms
I have a problem, I need to resize the parent window of Form1 by clicking a button in the Form2 window. The main problem is that I don't understand how to ...
0
votes
0
answers
76
views
Visual Studio Designer changes code so much that UI no longer works
I'm trying to add to a project of a colleague which is an UI for a monitoring program. Adding new UI elements to the project or changing existing ones results in the designer recompiling the designer....
-1
votes
1
answer
20
views
Issue on display dateTime when reopening previous windows form
I have an issue in showing a timer when i come back tio my main form from another
the main form have the following code
public Main()
{
InitializeComponent();
}
private void timer1_Tick(object ...
1
vote
1
answer
128
views
How to Prevent Multiple Confirmation Dialogs When Closing Forms in WinForms Application?
I have a WinForms application where I need to show a confirmation dialog when the form is being closed and it should close the entire application. However, the confirmation dialog appears multiple ...