1,832 questions with Windows Forms tags

Sort by: Updated
1 answer

Need help with Graphics.DrawString font size for printer output

I have a Windows desktop application that creates labels to print to a laser printer.  I am using Visual Studio v17.8.6 and the template is .NET Framework. I am new to using graphics and unsure what is the best solution to use to print to the laser…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,832 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,271 questions
asked 2024-03-01T19:21:59.1166667+00:00
Pat Hanks 40 Reputation points
answered 2024-03-07T18:27:47.37+00:00
Pat Hanks 40 Reputation points
1 answer

Currently using Visual Studio 2022 for my vb.net windows form app and the designer fails to load at "Loading Designer...You can continue working while the designer is loading in the background"

I'm currently using Visual Studio Community 2022 17.7.1 and .NET 6.0

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,832 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,577 questions
asked 2023-08-19T14:21:42.4366667+00:00
Jessie Cudiamat 0 Reputation points
commented 2024-03-07T04:07:53.93+00:00
Bir Yazilim 5 Reputation points
2 answers

How to assign dialog control types to database fields in Data Sources Window

I have a Winforms app connected to a SQL database. In a tutorial I am working through from 3 years ago they have the Data Sources window open with the Customer table at the top followed by Address, City, etc data fields. It shows right clicking any of…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,832 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,750 questions
asked 2024-02-14T05:21:03.7666667+00:00
Michael Tadyshak 80 Reputation points
edited the question 2024-03-06T05:58:00.25+00:00
Anna Xiu-MSFT 25,801 Reputation points Microsoft Vendor
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,832 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,620 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 32,076 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,295 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,832 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,394 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,271 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.
766 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 4,890 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,832 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,271 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,832 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,651 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 32,076 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,832 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,394 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,271 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 32,076 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,832 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,620 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,832 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,676 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,620 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.
329 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 38,866 Reputation points Microsoft Vendor
1 answer

How to easily separate people from the background with the Noizz Without Watermark application on PC?

Hello everyone, I am very passionate about video editing and I have a dream to become a professional video editor, currently I do not know how to separate people from the background with Noizz Without Watermark application. Please help me, I am using…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,832 questions
asked 2021-06-17T07:38:42.677+00:00
Cavani Edison 1 Reputation point
answered 2024-02-25T14:21:58.75+00:00
DLS APK 0 Reputation points
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,832 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,394 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,271 questions
asked 2024-02-04T14:57:05.34+00:00
Roberto Carlos Melgar Dorado 80 Reputation points
accepted 2024-02-25T00:19:15.67+00:00
Roberto Carlos Melgar Dorado 80 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,832 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,620 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,832 questions
asked 2023-12-05T06:40:08.7766667+00:00
Sushil Agarwal 381 Reputation points
commented 2024-02-22T01:46:46.0766667+00:00
Sushil Agarwal 381 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,832 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,271 questions
asked 2024-02-14T21:49:28.2733333+00:00
Pat Hanks 40 Reputation points
commented 2024-02-21T07:06:32.8166667+00:00
Jiale Xue - MSFT 32,076 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,832 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,832 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,271 questions
asked 2024-02-14T12:35:52.8766667+00:00
Sushil Agarwal 381 Reputation points
commented 2024-02-20T08:35:40.0566667+00:00
Jiale Xue - MSFT 32,076 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,832 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,620 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,832 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,766 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,394 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 112.5K 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,832 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,271 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