Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
90 views

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 ...
Madeline Krajewski's user avatar
-1 votes
0 answers
67 views

I've been trying for a while to come up with a solution for drawing paths between controls that do not intersect or overlap each other, but it seems like I'm out of ideas. I have tried using MSAGL 1.1....
SweetShe's user avatar
0 votes
2 answers
109 views

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 ...
Jack Smith's user avatar
1 vote
0 answers
91 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
Advice
0 votes
0 replies
45 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,570
Best practices
0 votes
6 replies
131 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
132 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
85 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
154 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
5 replies
94 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
314 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
96 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
113 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
107 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
120 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
206 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
-1 votes
1 answer
85 views

I m facing a System.AccessViolationException issues during executing an SSIS package using C#. I have a parent windows form where i ask the user if he would like to proceed and if so, the parent form ...
Error 1004's user avatar
  • 8,286
0 votes
1 answer
119 views

I get this error: Failed to emit module 'xyz': Changing the version of an assembly reference is not allowed during debugging: 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=...
Jeremy Thompson's user avatar
0 votes
2 answers
105 views

This problem is related to the creation and use of a user control in WinForms. At first, when I found online tutorials, I created a user control library. The first attempt was to modify a checkbox ...
MaSta's user avatar
  • 19
0 votes
0 answers
126 views

I am following this tutorial to create a custom control that inherits from one different than UserControl. When opening the designer view of this control, instead of seeing a render of the control, I ...
Heltta's user avatar
  • 1
0 votes
1 answer
153 views

I am currently working on a .NET 9 WinForms program that contains an ImageViewer, which is a seperate window where you can scroll through a series of images. My problem is that even after closing the ...
Joelbu's user avatar
  • 144
1 vote
0 answers
162 views

There seems to be a subtle difference in appearance between .NET Framework 4.7.2 and .NET 9 when scaling text with the DPI. I made a small DPI-aware test project which compiles to .NET Framework 4.7.2 ...
Samuel Baillargeon's user avatar
0 votes
0 answers
142 views

I'm working with FastReport.NET in a WinForms project and I have a TableObject that spans across multiple pages. (No datatables, no report definitions) The table is generated correctly and page breaks ...
stef's user avatar
  • 41
3 votes
1 answer
177 views

(I am aware using windows forms for this kind of project is stupid and inefficient but it is a requirement for the college course I'm doing so I'm stuck using this) in windows forms you can draw an ...
Halbear gameZ's user avatar
0 votes
0 answers
57 views

I would like to know if there is a way to set the Header of form text to Bold. the property Form.Text is set but can i make it bold? I want the Form1 in the picture example to be in Bold. I tried to ...
Kostas L's user avatar
-1 votes
1 answer
77 views

i am trying to run a .net 8.0 application on Linux / Raspbian with System.IO.Ports, i have done this previously with the same setup with no issues. This time i am getting this exception when running ...
Alex Bäumler's user avatar
0 votes
2 answers
199 views

I'm trying to override the View property in a derived class from Listview: public class CustListview : System.Windows.Forms.ListView { private CustView mView = new CustView(); public enum ...
DennisV's user avatar
  • 11
0 votes
0 answers
76 views

I am maintaining an old Winforms application and one of the form was extremely small compared to the other forms. I have changed the size of the forms, changed the size of the panel which contains all ...
Sylvain C.'s user avatar
  • 1,073
1 vote
3 answers
551 views

The situation is that Microsoft.Ink.dll in Windows 11 24H2 has been recompiled with .NET Framework 4.5, overwriting the same 6.1.0.0 version tied to .NET Framework 2.0. As you can see in the image the ...
Manuel Castro's user avatar
0 votes
1 answer
107 views

What are you trying to do? I'm building an attendance summary grid in VB.NET (Windows Forms). For each employee, I want to insert a label row before their daily attendance rows. This label row should ...
Ajit Karode's user avatar
0 votes
1 answer
81 views

I am currently using DesignSurface to create a custom designer. I want to enable dragging the column widths of a DataGridView on the designer page and record the changes, similar to how it works at ...
李晓航's user avatar
1 vote
0 answers
186 views

I used to be a developer and software engineer but I've been retired for 15 years now so I'm a bit rusty and not up to speed on the latest stuff. Fired up Visual Studio 2022 for the first time in a ...
DrWizard's user avatar
0 votes
2 answers
272 views

Can the TextBox portion of a ComboBox be made resizeable on all sides? I've done this with the TextBox (shown below). I thought the ComboBox was a composite control with a TextBox & ListBox, so I ...
spinjector's user avatar
  • 3,698
-1 votes
1 answer
144 views

I'm currently working with DataGridView in a project. The columns were created using the Designer. I changed a few of the column types from DataGridViewTextBoxColumn (original): to ...
Anpo Desu's user avatar
  • 396
0 votes
1 answer
134 views

I am trying to get data from Postgres table with a help of stored procedure and fill a Winforms DataGrid with it. This is the stored procedure: CREATE OR REPLACE PROCEDURE public.get_list() LANGUAGE ...
Yarr's user avatar
  • 47
2 votes
1 answer
49 views

Assembly A: public class Data { public string Text {get; set;} } Inside Assembly B ( references A): List<string> stringList = GetSomeStringsAtRunTime(); Data obj = new Data(); propertyGrid....
Piglet's user avatar
  • 29.3k
4 votes
0 answers
201 views

We had a bug with a □ appearing instead of ⅓ in one of our applications when it was run on Windows 11 rather than Windows 10. This was because we were using a font (Verdana) which did not contain the ⅓...
Matthew Watson's user avatar
0 votes
2 answers
142 views

I edited the contents of the DataGridView in an already existing project and I even double-checked the form's Designer.cs file and I'm positive that the new DataGridViewComboBoxColumns are there. The ...
Anpo Desu's user avatar
  • 396
0 votes
0 answers
76 views

I have an issue with catching Invoke action. I created a simple WinForms app, with a single text field and a single button. I want to catch the Invoke_Invoked event in the Accessibility Insight ...
Roma's user avatar
  • 1
1 vote
2 answers
178 views

An elegant solution for drawing polygons on a form was proposed by Jimi, as part of an answer to the question Why am I getting an extra line when drawing polygons? (see attached code). I designed the ...
Florin Home's user avatar
0 votes
1 answer
116 views

I have a problem with winform Graphics.DrawImage and I hope someone will be able to give me some insight. I have a bitmap of variable (and considerable) size that need to be displayed in a resizable ...
Khurt's user avatar
  • 13
2 votes
1 answer
64 views

I have a panel with AutoSize property false and AutoScroll true. Inside this panel, there are some controls, various rows each one with a label and some numericupdown. The form is not double buffered, ...
iii's user avatar
  • 23
5 votes
1 answer
174 views

After some advice from kind people over here, I managed to have my code working. However, an extra line, from the origin of the form to the first polygon point, is also drawn. I would like to learn ...
Florin Home's user avatar
1 vote
1 answer
144 views

I have a Panel inside a form and that panel is inside a tabpage of a tabcontrol. Everything is fine, also when I insert stuff on the left edge, but for whatever reason be it a bug in visual studio or ...
Ekoboy Gaming's user avatar
0 votes
0 answers
167 views

I am developing a Winforms app using VS2022 in C# for .NET 4.8 to print accelerated reader labels for books. Some books do not have a barcode on the back so I added to may app the ability to take the ...
Charles Polson's user avatar
4 votes
2 answers
162 views

I have an old WinForms application with a normal TreeView, where I need to show customized tooltips for individual nodes. I am using a ToolTip component (OwnerDraw=true and IsBalloon=false), and I ...
Boise's user avatar
  • 379
1 vote
0 answers
141 views

I need a custom DataGridView that always has a checkbox column as first column. I know how to achieve this at runtime. Any chance to display the column in the designer? When added in the constructor ...
Piglet's user avatar
  • 29.3k
5 votes
1 answer
107 views

I am drawing a outside arc in first cell of each row in TableLayoutPanel. But I get different output. I get it like this: This is my code this.tlp_tra_actual.CellPaint += new ...
user3103982's user avatar
4 votes
1 answer
106 views

We have an old (very old) WinForms application that depended on some 3rd party components that we are no longer allowed to use. One of those components was used to display tooltips on individual nodes ...
Boise's user avatar
  • 379
3 votes
3 answers
122 views

I am trying to dynamically add buttons to a list, and have $Button (or another variable) be set to whatever is clicked (No OK/Cancel button needed). The below code creates the buttons, and resizes the ...
user66001's user avatar
  • 950

1
2 3 4 5
1985