1,832 questions with Windows Forms tags

Sort by: Updated
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,832 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 32,076 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,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,272 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 32,076 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,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,272 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 26,666 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,832 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,394 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 10,031 Reputation points Microsoft Vendor
1 answer

Unable to capture SessionSwitch events in windows from application

We are using C# “SystemEvents.SessionSwitch” events to monitor System Lock/Unlock. In some machines, we are facing an issue with the SessionSwitch events, not being triggered. We have major functionality that depends on System Lock/Unlock. This behavior…

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,272 questions
asked 2023-05-29T06:18:07.9133333+00:00
Raghu Ravinuthala 10 Reputation points
answered 2024-02-07T14:17:41.6366667+00:00
Castorix31 81,736 Reputation points
1 answer One of the answers was accepted by the question author.

How can I get the status of the printer in a timely manner in C# Windows Form App

I am working on a C# Windows Form app and I need to print a sheet of labels on a laser printer. I created a printer dialog that allows the user to select which label is the starting position and a status field that gets updated once the user selects the…

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,272 questions
asked 2024-02-05T21:40:39.52+00:00
Pat Hanks 40 Reputation points
commented 2024-02-07T01:44:34.3366667+00:00
Jiale Xue - MSFT 32,076 Reputation points Microsoft Vendor
1 answer

WebView2 latest update to v. 120.0.2210.121. Problem while opening the "linkedin.com"

C#, WinForms, WebView2 120.0.2210.121, .Net Framework 4.8. After the last update of the WebView2 runtime, I found out that opening one specific website destroys the "webView.CoreWebView2" instance - The control disappears or turns black and…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,140 questions
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,272 questions
asked 2024-01-10T10:22:01.7466667+00:00
Sergej Loos 0 Reputation points
commented 2024-02-06T02:03:16.26+00:00
Jiale Xue - MSFT 32,076 Reputation points Microsoft Vendor
1 answer

Winform application built on .NetCore 6 crashing intermittenly

We have a Winform application built on .NetCore 6 crashing intermittently randomly with the below error Winform application built on .NetCore 6 crashing intermittently Have anyone encountered this issue?

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
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,123 questions
asked 2023-11-09T11:34:54.33+00:00
Sunny Sharma 1 Reputation point
commented 2024-02-06T01:48:16.6133333+00:00
Andy De George 90 Reputation points Microsoft Employee
1 answer

Reverse engineering - what's the end product of a MSVS form, i.e. where do you put it and how does a user access it?

Novice question coming up ... Designing my first database and GUI. the GUI to enable colleagues across an institution to CRUD into/from a database. The way my brain works, I kind of need to see the end product and reverse engineer from that.…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,832 questions
asked 2024-01-12T09:59:58.48+00:00
Ross Pomeroy 0 Reputation points
edited the question 2024-02-05T12:26:25.4533333+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
0 answers

Why is the WinForms editor causing so much code change?

I open the WinForms designer and I make a simple change like changing the button text. After saving, a lot of unintended code changes occur: I have the <ForceDesignerDpiUnaware>true</ForceDesignerDpiUnaware> configuration option in my…

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,272 questions
asked 2024-02-02T22:32:22.85+00:00
RandomUsername 0 Reputation points
commented 2024-02-05T01:53:14.17+00:00
Jiale Xue - MSFT 32,076 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Why the Status "Downloading" is stay as "Downloading" and not changing to "Completed" or "Failed" in some of the rows?

In the dataGridView1 i have a Status column and in the rows in the Status column i set the Status depending on the file state , if the file is in a Downloading state and then if the file has Completed or Failed. but in some of the rows the Status is stay…

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,272 questions
asked 2024-02-01T16:27:33.39+00:00
Chocolade 516 Reputation points
accepted 2024-02-04T18:21:00.5133333+00:00
Chocolade 516 Reputation points
2 answers

System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Application: Windows form Application, Server: 2016 windows server Plateform: server 64 bit Our Window form application is throwing following exception only on one server for specific feature to access on click of button(all other features are…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,832 questions
asked 2021-06-18T11:22:34.6+00:00
fullstackvale 1 Reputation point
commented 2024-02-03T09:41:20.0633333+00:00
Ganesh Sawant 0 Reputation points
5 answers

Template Not Usable in VS2022 after Update

After VS 2022 updated, using an exported template will not build without errors. One error is " (are you missing an assembly reference?)", yet in the references it is there. This problem happened in the past with VS2022 before the update, 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-01-18T13:03:59.94+00:00
William 41 Reputation points
commented 2024-02-02T22:28:04.8733333+00:00
Andy De George 90 Reputation points Microsoft Employee
1 answer

How to fix this error (see my Description)

The class frmAddProduct can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again. …

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 2023-10-18T15:19:25.05+00:00
mikaynijro 0 Reputation points
answered 2024-02-02T22:21:19.5333333+00:00
Andy De George 90 Reputation points Microsoft Employee
1 answer

I'm trying to design via wpf in window forms app project but it keep saying some assembly references are missing

I've created window forms app project and made a toy project I tried to design application using xaml so I added Net MAUI Content Page(XAML), but on the design page, instead of showing design page, it shows that some assembly refernces are missing. You…

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
asked 2024-01-06T08:36:29.4966667+00:00
성주원 5 Reputation points
edited an answer 2024-02-02T22:14:34.4033333+00:00
Andy De George 90 Reputation points Microsoft Employee
1 answer

How convert c# form application to setup file?

Hi, this is nasik I have developed the c# form application using visual studio 2022 with mssql database(no local database included).now iwant to convert into setup file and intall it on client machine. so how to do that including depandacies packages…

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
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,272 questions
asked 2024-01-31T07:19:28.5166667+00:00
mohammed nasik 0 Reputation points
commented 2024-02-02T02:37:53.1366667+00:00
Jiale Xue - MSFT 32,076 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Find longest word from dictionary based on offered letters c#

Hello everyone, please and need your help. I have three text boxes on the windows form: In tetxBox1 there is a dictionary with many words (the longest words have 12 letters) There are always 12 letters offered in textBox2 In textBox3, I want the…

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,272 questions
asked 2024-01-28T19:32:19.52+00:00
LeaV 81 Reputation points
commented 2024-01-30T21:48:02.28+00:00
LeaV 81 Reputation points
1 answer

Using sqlTransaction with C#

Hello, I'm trying to use SqlTransaction from C# to create a transaction that performs an insertion into a table called "maestro" and another table called "detalles". I have managed to insert without any issues, but I believe I am…

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,272 questions
asked 2024-01-22T22:40:51.46+00:00
Roberto Carlos Melgar Dorado 80 Reputation points
edited a comment 2024-01-24T01:14:51.9933333+00:00
Jiale Xue - MSFT 32,076 Reputation points Microsoft Vendor
1 answer

How do I run a SWF file in WinForms after it’s End of Life?

Hi, I’m new into this outdated idea of displaying a Shockwave Flash movie in a Windows Forms application. Since I’ve decided to use C# for my project’s UI but ActionScript3 for the main application I’m interested of “How could I run the main SWF file on…

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,272 questions
asked 2023-02-23T22:09:03.6333333+00:00
Levi Șalgău 0 Reputation points
commented 2024-01-22T03:01:10.77+00:00
DeafMan1983 0 Reputation points
1 answer

Why when using httpclient and sending http request using SendAsync the application is hanging for almost 7 seconds?

this is in github and including also the usage code in form1: https://github.com/chocolade1972/Downloading-Test the problem is once I click the button to start downloading the application not freezing but the actual download does not start yet and it's…

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,272 questions
asked 2023-12-12T07:03:42.0766667+00:00
Daniel Lee 61 Reputation points
answered 2024-01-20T17:56:25.9266667+00:00
Marcos Simoneli Souza 0 Reputation points