1,875 questions with Windows Forms tags

Sort by: Updated
1 answer

I Saved C# Project form as a new name, now project is broken. How to fix it?

I have a C# project in Visual Studio Community 2022 with a single form for the interface. I made some changes to the form and wanted to save it as a different name so I could preserve the previous design. Now I cannot see the form in the designer, but…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,895 questions
asked 2024-03-05T02:56:24.25+00:00
Clay LaHatte 0 Reputation points
answered 2024-03-05T09:46:50.06+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
0 answers

Converting the PDF to a bitmap image corrupted the text content of the PDF.

I have a PDF document and using the below code logic, I am trying to convert the PDF page to an image. After converting the image, the text content in the PDF displayed as corrupted.  PQ-376500-STR-FDN-KZV-00011-001.pdf |Stream PdfStream =…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,327 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 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,656 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
791 questions
asked 2024-03-04T19:42:32.9566667+00:00
Vikram Devaraj 0 Reputation points
commented 2024-03-05T02:47:00.89+00:00
KOZ6.0 6,300 Reputation points
3 answers One of the answers was accepted by the question author.

Data insertion by datagridview

I have a DataGridview filled with some data in approx 100 rows and in 5 columns. I also have a button on the form. i want that whenever i click on that button, all the data from that DataGrid view gets inserted in my database but all the rows data at…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,656 questions
asked 2023-10-27T09:41:36.68+00:00
Rajkumar Rao 100 Reputation points
edited a comment 2024-03-04T22:30:43.68+00:00
Abdulaziz Mohammed Ameen Qasem 0 Reputation points
0 answers

How to generate user defined PIN in a Miracast Receiver application in Windows 10 using Windows.Media.Miracast namespace ?

Hi All, I have created an application using the Miracast namespace that acts as a Miracast receiver. I have made it as per my requirements except for one thing and it's like this - Whenever any Miracast-supported Android device or Windows PC or Sender…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,208 questions
asked 2024-02-29T12:38:41.77+00:00
Himanshu Rohilla 0 Reputation points
commented 2024-03-04T10:52:51.57+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
1 answer

How to store data from Excel to database?

How to store data from Excel to database in EF C# windows form Application?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 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,656 questions
asked 2024-03-02T07:36:41.3933333+00:00
Majeed Purseyedmahdi 41 Reputation points
commented 2024-03-04T07:21:41.01+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

System.Windows.Forms Version=8

I keep getting errors that the system is looking for Version 8 references. All I find are System.Windows.Forms.dll - version 4. How do I resolve this error? Should I change all the references to Version 4? In this folder - C:\Program…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,895 questions
asked 2024-02-28T19:23:17.04+00:00
Simon 286 Reputation points
accepted 2024-02-29T14:54:43.96+00:00
Simon 286 Reputation points
1 answer

how to fix System.TypeInitializationException : Инициализатор типа "FlaUI.Core.Tools.SystemInfo" выдал исключение. ----> System.InvalidOperationException : Не удается загрузить данные имени счетчика, поскольку в реестре обнаружен недопустимый индекс "

In university we started to work with Windows Forms и WPF. For each work we're given a pre-work with all files and tests. But when I try to start test, they fall with the same Exception: System.TypeInitializationException : Инициализатор типа…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,716 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,895 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
339 questions
asked 2024-02-25T19:29:17.4566667+00:00
_cnehle 0 Reputation points
edited an answer 2024-02-26T03:14:31.4533333+00:00
Hui Liu-MSFT 47,421 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Why does the transaction continue even though there is an error in a method?

I have three methods that are part of a single transaction, part of a transaction to register a purchase. I am testing if the transaction works. First, I deleted the Kardex table, and yes, it worked correctly, the changes are rolled back. Now, when…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 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,656 questions
asked 2024-02-04T14:57:05.34+00:00
Roberto C 120 Reputation points
accepted 2024-02-25T00:19:15.67+00:00
Roberto C 120 Reputation points
0 answers

How to prevent any form resizing in VS2022 Windows Forms?

Okay, I have been working on a Wizard based VSIX installing templates into VS2022 for my place of employment. They are typically simple forms, that utilize a variety of controls - many of them customized. The latest updated (17.9) for VS2022 affected…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,895 questions
asked 2024-02-23T04:53:41.0333333+00:00
Jaeden Ruiner 126 Reputation points
commented 2024-02-23T20:49:39.4666667+00:00
Jaeden Ruiner 126 Reputation points
1 answer

KERNELBASE.dll Exception code: 0xe0434352 Fault offset: 0x000000000002cf19 Faulting process ID: 0x26c0 error

after the clickonce setup. the application gets terminates and in event viewer two erros are generated What may be going wrong ? Applicaton error Faulting application name: Bansal-RM.exe, version: 1.0.0.2, time stamp: 0x656e13f7 Faulting module name:…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
asked 2023-12-05T06:40:08.7766667+00:00
Sushil Agarwal 401 Reputation points
commented 2024-02-22T01:46:46.0766667+00:00
Sushil Agarwal 401 Reputation points
2 answers One of the answers was accepted by the question author.

GroupBox.Controls.Remove is not removing all controls

I have a Windows Form App written in C#, using .NET Framework 4.7.2 that allows the users to select a starting position to begin printing to laser labels. The print dialog form I have created has a group box populated with radiobuttons set to appear as…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,656 questions
asked 2024-02-14T21:49:28.2733333+00:00
Pat Hanks 60 Reputation points
commented 2024-02-21T07:06:32.8166667+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
1 answer

Cannot reference System.Windows.Forms.DataVisualization in a console app

Hi, I'm in a Console App (.Net Framework) project and cant use windows.forms, I'm using a .Net Framework Console App because I was not able do it in a .Net Core app either. Specifically trying to call a class from…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
329 questions
asked 2022-12-02T20:42:33.403+00:00
MM 6 Reputation points
commented 2024-02-20T13:38:43.0166667+00:00
Artur Garcia 5 Reputation points
1 answer

How can i find missing bills pdf saved in a folder

Hello experts can you guide how can i find missing or duplicate files in a folder where files are stored as BillNumberxBillSerisxFinYear.pdf 1x10x23.pdf ... 9495x10x23.pdf [ it may have duplicate files 10x10x23(1).pdf, 10x10x23(2).pdf 1x45x23.pdf ...…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,656 questions
asked 2024-02-14T12:35:52.8766667+00:00
Sushil Agarwal 401 Reputation points
commented 2024-02-20T08:35:40.0566667+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
1 answer

Form design window not properly docking in main window

The form design window does not dock properly in the main window. It holds the wrong place on the form with the mouse. I cannot hold the form elements with the mouse. font sizes are incorrect. Image attached for reference:

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,895 questions
asked 2024-02-19T06:40:43.95+00:00
Cavit Dıraman 0 Reputation points
edited a comment 2024-02-20T06:50:50.18+00:00
Cavit Dıraman 0 Reputation points
2 answers

How to exit the modal loop after calling "ShowDialog()"

form1.ShowDialog() I have run this code and the code after will not run until the form1 is closed. I wonder how to quit the modal loop without closing form1 using another code. For example : I press a button (named "Button1" ) of form1, then…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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.
5,108 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
asked 2024-02-17T11:40:31.7+00:00
key li 0 Reputation points
edited a comment 2024-02-19T10:01:58.6366667+00:00
Viorel 1.2L Reputation points
2 answers One of the answers was accepted by the question author.

Play/Pause video playing inside Movies & TV

Is it possible to programmatically (C# preferred but C++ also ok) play/pause a video played by Movies & TV and also get other information about the playback, like Title, ...? I know only two ways and both have a huge problem. Play/Pause by…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,656 questions
asked 2020-12-19T09:47:19.07+00:00
Marcel Lorenz 81 Reputation points
edited an answer 2024-02-15T18:18:17.1466667+00:00
Burst Fade Haircuts 0 Reputation points
2 answers

How to fix WinForms designer RESX problem with custom control

Using: Visual Studio 2022, latest updated version. Developing a WinForms custom control for .NET Framework 4.8. Platform is set to Any CPU. I am experimenting with building a custom control. The eventual aim is that it will display a graph in a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
asked 2024-02-15T01:05:11.8266667+00:00
Steve Marshall 0 Reputation points
answered 2024-02-15T07:11:04.13+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
0 answers

Winforms screen dimming overlay program gets drawn twice when opening/closing start menu or context menu's in taskbar

I'm currently making a screen dimming program in C# that uses black winform forms with an adjustable opacity to dim the whole display. This by itself is unable to dim certain windows UI elements such as the start menu, alt+tab and win+tab menus. In order…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,656 questions
asked 2024-02-12T16:10:45.87+00:00
XiaoYiHu-6776 0 Reputation points
commented 2024-02-14T09:05:09.8933333+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
1 answer

How to call the same form(WinForm) in the desktop application using c#

already i'm opened winform from there i have add to new form to get a search window in the search window ,if the user input some number from 1 to 10 again after clicking ok button in the search window.it should navigate to the same window which is opened…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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,656 questions
asked 2024-02-09T11:46:41.8666667+00:00
vasanth 0 Reputation points
commented 2024-02-12T09:59:13.1766667+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer

How to transform a ClickOnce winforms project from .NET Framework in VS 2019 to .NET in VS2022?

I have a ClickOnce winform project using .NET Framework in VS 2019 using the code from the following…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
asked 2024-02-05T09:43:34.8033333+00:00
Mustang 0 Reputation points
commented 2024-02-08T03:01:01.5566667+00:00
Minxin Yu 11,026 Reputation points Microsoft Vendor