Skip to main content
0 votes
0 answers
18 views

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 ...
panaceya's user avatar
-3 votes
0 answers
101 views

I am using Microsoft Visual Studio Professional 2022. I'm creating forms programmatically adding content based on a JSON configuration, I need to set the size of the controls according to the ...
SPlatten's user avatar
  • 5,851
0 votes
0 answers
24 views

My Toolbox controls are grayed out. Winforms, Webforms, doesn't matter. I downloaded the free version of Visual Studio. I have tried a few things that I have seen online but nothing works, so I'm ...
David Barker's user avatar
Advice
0 votes
0 replies
29 views

I have a older project - WinForms application - and after update of Visual Studio (update 2025) I had a problem to display Forms in both versions of Visual Studio: 2022 and 2026. Form designer just ...
Mojmir's user avatar
  • 3,560
Best practices
0 votes
7 replies
118 views

I'm developing a WinForm application which will used in several companies in the same holding. There is a network connection between them. The scenario which I want to implements is: Company A will ...
Daryush's user avatar
  • 190
0 votes
0 answers
106 views

I am trying to create a tile editor in Winforms. Therefore, I have this code to draw rectangles across my panel: private void panMain_Paint(object sender, PaintEventArgs e) { Graphics g = e....
Canox's user avatar
  • 569
0 votes
0 answers
78 views

I'm using Sandcastle Help File Builder (SHFB) to generate documentation. I am not creating technical API documentation — I want to create user documentation (with images and descriptions), similar to ...
Domestos's user avatar
1 vote
1 answer
145 views

private SolidBrush b; private Graphics g; //Encapsulates a GDI+ drawing surface Pen p = new Pen(Brushes.DeepSkyBlue); //Pens are used to draw objects ...
Smart Guy's user avatar
Tooling
0 votes
4 replies
90 views

Any samples for C# Windows Forms passport size photo image background changer. Bitmap bitmap for (int y = 0; y < bitmap.Height; y++) { for (int x = 0; x < bitmap.Width; x++) { ...
user3506644's user avatar
5 votes
4 answers
291 views

I have a Windows Forms application and a Form with many async void event handlers. This form can be closed by the user at any moment. After closing the form I want to delete a temporary file, and my ...
Theodor Zoulias's user avatar
-1 votes
0 answers
91 views

I have a datagridview in my Winforms app. I set the columns manually in designer and then try to fill it by a function. I check the function step by step and in the last line of code datasource dt has ...
Daryush's user avatar
  • 190
1 vote
1 answer
105 views

I have a datagridview in my Winforms app with .NET 8. I want to highlight some rows based on the current user role and the request nextlevel. I write this function and call it in form load. But at the ...
Daryush's user avatar
  • 190
-1 votes
0 answers
96 views

I am currently working on a little project (like the game Bongo Cat) and I ran into a problem with how the transparent image (a PictureBox) renders with the transparent part. (Also the same with the ...
Tamino1230's user avatar
Best practices
0 votes
3 replies
117 views

Problem: the user control's size changes when placed on the tabpage What I tried: unset anchoring in the user control's children properties, but it didn't help. The user control designer class: ...
MaSta's user avatar
  • 19
0 votes
1 answer
192 views

It's no problem to set the position of the new WinForm inside the monitor where the main window is displayed. For example: Form1 form = new Form1(); form.Show(); form.StartPosition = FormStartPosition....
vsm's user avatar
  • 69

15 30 50 per page
1
2 3 4 5
6617