1,841 questions with Windows Forms tags

Sort by: Updated
3 answers One of the answers was accepted by the question author.

Debugging the Painting code of a control - stepping through System.Drawing code?

I'm working on a custom control that has a fairly hard-to-diagnose bug in its Painting/Drawing code, which is using GDI+ System.Drawing tools. This is in a sub-method being called from an overridden OnPaintBackground method. It would be much easier if I…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
asked 2024-05-11T18:18:22.0666667+00:00
gb 66 Reputation points
accepted 2024-05-13T18:43:23.0733333+00:00
gb 66 Reputation points
2 answers One of the answers was accepted by the question author.

permanent footer row in datagridview

hi , is there a way by which our datagridview control could have a footer row below exactly after the 12 rows and if the rows in the datagridview increases , suppose by 2 . it should always be at last position but it always should be after 12 rows . the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,320 questions
asked 2023-09-21T12:32:58.41+00:00
ankit goel 746 Reputation points
commented 2024-05-13T18:35:41.33+00:00
KOZ6.0 4,895 Reputation points
1 answer

Unwanted Space and Margins are surrounding the control in designer when Integrating WPF User-Control into Form using ElementHost

When integrating the WPF user-control (For Example: The UserControl contains the button) into a form using ElementHost, there are unwanted spaces and margins surrounding the control in the designer. It works fine in runtime; reported issue is reproduced…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,682 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,320 questions
asked 2023-06-21T06:32:40.6233333+00:00
bagavathi basker 0 Reputation points
commented 2024-05-13T12:40:53.9366667+00:00
Karthick Arjunan 0 Reputation points
0 answers

Solution Parser not working in .Net8

Hi, I'm in the process of migrating my WPF application from .NET Framework 4.8 to .NET 8. In my previous application, I utilized the Solution Parser functionality from Microsoft.Build for certain tasks. However, after migrating to .NET 8, this…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,802 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,682 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,320 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,302 questions
asked 2024-05-13T10:05:23.3933333+00:00
Sanjay Kumar Jha 151 Reputation points
commented 2024-05-13T11:50:02.35+00:00
Hui Liu-MSFT 40,786 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to extract part of the text from the line with a special format

hi Bolded areas need to be extracted. I don't know how to use Regex library. my Format [One of the tags] is Sample '10LBA04CT004-XQ01' Start text with 150,000 lines and have different tags. thank { N 3-SH 3-sh 3-sh 3-SH N 10LBB09 EQUIPMENT =…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,649 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,583 questions
asked 2024-05-13T02:00:27.6033333+00:00
Mansour_Dalir 1,591 Reputation points
commented 2024-05-13T07:48:47.7066667+00:00
Mansour_Dalir 1,591 Reputation points
1 answer

SSRS Report Viewer windows forms - The request failed with an empty response

Dear all, we use the following component in our Windows Form (.net 4.7.2 application): Microsoft.ReportingServices.ReportViewerControl.Winforms 150.1620.0 Since we migrated our server on a new domain, we are getting sometimes the following execption in…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,815 questions
asked 2024-05-10T13:16:20.6633333+00:00
SERIOLI, MARCO (MSTI) 0 Reputation points
edited a comment 2024-05-13T07:33:50.7866667+00:00
SERIOLI, MARCO (MSTI) 0 Reputation points
1 answer

How to get the index of duplicate elements along with the range of empty elements after it. LINQ

hi Dim ComplexArray As String() = Split("A C A B C A B A B C") Dim Arr3D = {({"A", ({"0-2", "5-9", "16-16", "19-20"})}), ({"B", ({"10-12",…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,649 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,583 questions
asked 2024-05-04T15:38:26.2533333+00:00
Mansour_Dalir 1,591 Reputation points
commented 2024-05-10T06:32:29.4533333+00:00
Jiachen Li-MSFT 26,751 Reputation points Microsoft Vendor
1 answer

New Form is not shown while drag & drop a Custom Control from toolbox to Designer in WinForms in NetCore

In our Control, we have opened a new form to update the content of our control in the Designer. The new Form is not shown in the NetCore but works properly in the NetFrameWork. I have replicated the same issue in a simple control. …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,423 questions
asked 2024-05-03T14:04:08.6633333+00:00
Karkuvel Rajan Shanmugavel 0 Reputation points
commented 2024-05-09T12:50:28.4266667+00:00
Jiale Xue - MSFT 34,356 Reputation points Microsoft Vendor
2 answers

Visual Studio problem

I am using Visual Studio 2019. And in the toolbox, there is this thing called "NavigationMenu". But I don't see it in the toolbox, and I need it for my project. Please help me

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,713 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,649 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,320 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
948 questions
asked 2024-05-04T04:29:26.4733333+00:00
Hamoude Assaf 0 Reputation points
edited an answer 2024-05-09T07:11:46.7066667+00:00
Anna Xiu-MSFT 26,151 Reputation points Microsoft Vendor
2 answers

How do I draw anti-aliased text in a ListBox with DrawMode set to OwnerDrawFixed?

I have a ListBox on my form with its DrawMode property set to OwnerDrawFixed. How can I get the text I draw to be antialiased? I've already set the TextRenderingHint property of the Graphics object to AntiAliasGridFit but it's not drawn…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
asked 2024-05-01T18:51:36.1366667+00:00
DaveF 21 Reputation points
answered 2024-05-08T13:39:55.13+00:00
KOZ6.0 4,895 Reputation points
2 answers

Unable to reuse the same layout in a new form

Unable to reuse the same layout in a new form. I've created a CustomControl inherited from ContainerControl and added items in it. However, I'm encountering difficulties when attempting to use it in another form. I want to use the below in a new form. …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
asked 2024-04-28T19:18:13.5266667+00:00
Vignesh 0 Reputation points
edited a comment 2024-05-07T07:19:29.1233333+00:00
KOZ6.0 4,895 Reputation points
1 answer

How can I change the icon of an MSI file?

Is it possible to customize the icon of an MSI file created using the WiX tool for a .NET project, rather than using the default icon suggested by the Windows system?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
8 questions
asked 2024-05-06T10:20:10.0866667+00:00
india-drive 0 Reputation points
answered 2024-05-07T02:58:02.9966667+00:00
Minxin Yu 10,121 Reputation points Microsoft Vendor
0 answers

System.InvalidOperationException: 'Application-defined or object-defined error.'

Debugging gives me a "Exception Unhandled" error in the Application.Designer: 32 <Global.System.Diagnostics.DebuggerStepThroughAttribute()> 33 Protected Overrides Sub OnCreateMainForm() 34 Me.MainForm = Form1 <<< HERE MARKED…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
asked 2024-05-04T14:50:52.45+00:00
Malcolm Fellmann 5 Reputation points
commented 2024-05-06T06:42:51.3633333+00:00
Jiale Xue - MSFT 34,356 Reputation points Microsoft Vendor
2 answers

How do I stop an MDI parent form from being resized when moved ?

I have an MDI form (VB.net) which contains about 10 child forms which are permanent and fixed in place and which take up nearly all the whole parent form except for a small margin around the edges and between child forms of about 2px. When I move the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,649 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,583 questions
asked 2021-08-16T04:11:43.833+00:00
GR15 1 Reputation point
edited an answer 2024-05-05T02:02:03.24+00:00
BgnerNprg207 226 Reputation points
1 answer

How to copy current project & assign New Name ?

Hello & Thanks ; I have a current project named GetElementsByTagname and from it I would like to make a new project named GetElementsByTagname-Copy-01 . I want to try different versions of same code . Thanks for your Help...

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
asked 2020-08-28T17:03:25.297+00:00
vmars316 621 Reputation points
commented 2024-05-03T18:52:19.21+00:00
RM Haley 11 Reputation points
0 answers

CTRL Commands Not Working with Winforms Web Browser

Hello, We have an application with a winforms web browser hosted on a WPF window and this browser is used to load HTML's within our application. These HTML files have fields that allow users to fill out. Letters and numbers work fine when put into the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,682 questions
asked 2024-04-22T20:38:22.62+00:00
Lpatz-4663 20 Reputation points
commented 2024-05-03T16:00:20.7533333+00:00
Lpatz-4663 20 Reputation points
2 answers One of the answers was accepted by the question author.

In the .Net framework, I am using a large panel in Form1. In this panel, I call up Form3 and in this Form3, I have created a chart control function. How is it that the chart, which has been placed and sized as desired, is visible during testing but not in

first picture = code second = form3 third = Test run what i try to do is in Form1, add a panel, and in that panel ill switch forms 2,3 and 4 with buttons and in form3 i call Control Chart and use enough space as in picture 2 and i must say all…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,423 questions
asked 2024-05-02T23:33:52.27+00:00
Dinant Baan 20 Reputation points
answered 2024-05-03T07:15:05.19+00:00
Dinant Baan 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to validate textbox with empty field in wpf forms

Hi Team I have these two fields i want to validate, does anyone knows how to achieve this in wpf on the forms? The bottom seal and TopSeal fields, if empty it must prompt a window dialog message.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
asked 2024-04-24T11:21:49.9533333+00:00
Gcobani Mkontwana 40 Reputation points
accepted 2024-05-02T05:58:01.2066667+00:00
Gcobani Mkontwana 40 Reputation points
2 answers

Debug profile does not exist - How to get it?

I am new to Visual Studio 2019 and am attempting to make a data input application using a Windows Form App. I keep getting an error that won't let my app launch saying that "The debug executable {file path to where the debug executable should…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
948 questions
asked 2022-02-24T22:16:47.297+00:00
Justin Cooley 6 Reputation points
commented 2024-05-01T11:40:49.7966667+00:00
abofazl jalil 0 Reputation points
1 answer

Visual Studio Designer Copy With Name

I created a new label. It came with "label1" name. I changed the name "label1" to "myLabel1". I'm copying this: "myLabel1" When I paste it comes as: "label1" It wasn't like this before. When I paste must…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,649 questions
asked 2024-04-27T05:37:43.91+00:00
Doğukan Topaloğlu 0 Reputation points
commented 2024-04-30T04:14:03.3333333+00:00
Tianyu Sun-MSFT 27,546 Reputation points Microsoft Vendor