1,923 questions with Windows Forms tags

Sort by: Updated
0 answers

How to fix the problem of controls disappearing from the screen design window.

I am using Visual Studio Community 2022 version. In the C# WinForm framework environment, when changing the position or size of the screen design window control, an error occurs where the control disappears. In that case, if I close and open the Form…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 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.
11,306 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,779 questions
asked 2025-02-18T01:56:00.6033333+00:00
재웅 이 0 Reputation points
1 answer

How is it possible to implement a complete semblance of a console (online compiler) in win fomrs?

Good time! Faced such a task as implementing code execution as in a console application in C # (with classes, methods, the ability to read data, etc.). Everything went super until I started testing my application. The problem is that I can execute code…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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.
11,306 questions
asked 2025-02-11T14:53:37.4833333+00:00
Efrem 20 Reputation points
edited a comment 2025-02-13T10:21:42.4+00:00
Efrem 20 Reputation points
2 answers One of the answers was accepted by the question author.

Can not move my buttons in forms

i am learning C# and i got to microsoft forms. so in my book it tells me to create a "TabControl" and add 3 simple buttons in the first tab of the TabControl. everytime i add a button, i can not reposition it anymore within the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
asked 2021-08-15T23:55:51.45+00:00
Artjom Schmitke 26 Reputation points
commented 2025-02-12T08:23:34.05+00:00
John Hola 0 Reputation points
1 answer

The keyboard inputs are not updating correctly in the hosted WinForms application

Hi, We are encountering an issue in a WPF application hosted within a WinForms application. The keyboard event is triggered correctly, but the values are not updating properly in the UI.   Here’s the setup: Create a WinForms application with a user…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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,827 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 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.
11,306 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,779 questions
asked 2025-02-04T09:07:39.76+00:00
Yathavakrishnan 0 Reputation points
commented 2025-02-12T03:08:01.5633333+00:00
Jiale Xue - MSFT 48,886 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

How to display menu by NotifyIcon without displaying the form in Taskbar

I have a form with a NotifyIcon and a ContextMenuStrip and I want to display the menu by clicking on the notification, but unfortunately it is displayed in the taskbar. Why? I tried setting the ShowInTaskbar property to false, but it didn't work.Tip Only…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,737 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,781 questions
asked 2024-08-10T19:15:01.1466667+00:00
Mansour_Dalir 2,016 Reputation points
answered 2025-02-06T10:38:05.2+00:00
Stephan Berger 0 Reputation points
1 answer

Attempting to register a 64-bit Enterprise Architect DLL with built-in windows

Hello, I am attempting to create a 64-bit DLL as an add-in for Enterprise Architect. However, in order to do what I need it to, I have to include some form of additional window. Is there any possible way to add in these extra windows in a way so that…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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.
11,306 questions
asked 2025-02-04T10:17:45.18+00:00
Alun Buss 0 Reputation points
commented 2025-02-04T15:35:56.39+00:00
RLWA32 47,246 Reputation points
1 answer One of the answers was accepted by the question author.

setWindowCompositionAttribute After setting transparency, how to restore

When I use setWindowCompositionAttribute to set a window to be transparent, what is the correct way to restore the window to its original state when I can not make the window transparent

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
asked 2022-12-10T14:22:59.777+00:00
XUWANBIN 201 Reputation points
commented 2025-02-02T14:08:51.36+00:00
szx0427 101 Reputation points
1 answer

windows.opener() handling with WebView2

In the webform, I have used window.opener for opening a new window that acted as a dialog which required user input, and needed to pass information back to the main window. I am trying to embed this in winform using WebView2 control.The…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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.
11,306 questions
asked 2025-01-13T06:37:06.7133333+00:00
Neha 20 Reputation points
edited the question 2025-01-31T01:58:47.11+00:00
Roy Li - MSFT 34,006 Reputation points Microsoft Vendor
7 answers

How can I fix the error: System.NullReferenceException: 'Object reference not set to an instance of an object.'

The following is my code: namespace RegistrationForm { public partial class Rent : Form { AptId aptId; Payment payment; public Rent(AptId apt) { InitializeComponent(); …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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.
11,306 questions
asked 2022-07-27T13:15:08.23+00:00
flowerforlife 56 Reputation points
commented 2025-01-29T18:02:02.68+00:00
FARJONA KHATUN 0 Reputation points
3 answers

How to troubleshoot "designer load encountered an error"

Is there a good reference to assist with design time form load errors?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
asked 2025-01-26T19:04:53.7533333+00:00
Henriksen, Keith (NTSHQ) 0 Reputation points
answered 2025-01-29T05:45:26.37+00:00
Jiachen Li-MSFT 33,451 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Does System.Text.Json Deserialize into DataTable?

Hello .Net Gurus - I have checked MS Documentation and I couldn't find any example of serialize json data using System.Text.JSON into DataTable. I have .Net Framwork 4.7.2 and did install the System.Text.Json NuGet package. The desrialization is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
asked 2020-08-13T21:11:57.34+00:00
Khushi Shaikh 86 Reputation points
answered 2025-01-28T16:59:01.05+00:00
Sławek 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix SystemLoadExecption

Exception has occurred: CLR/System.TypeLoadException An unhandled exception of type 'System.TypeLoadException' occurred in Winappli.dll: 'Could not load type 'Microsoft.Toolkit.Uwp.Notifications.NotificationActivator' from assembly…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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.
11,306 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,779 questions
asked 2024-07-23T23:13:08.8466667+00:00
Nat323 25 Reputation points
commented 2025-01-24T15:38:19.6066667+00:00
Max Schmidt 0 Reputation points
6 answers One of the answers was accepted by the question author.

How To Post Question On social.msdn.microsoft.com?

I am trying to post on social.msdn.microsoft.com but every time I click on ask question it redirects me to learn.microsoft.com. Please help.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
asked 2021-04-08T13:48:49.163+00:00
feddea cbrolleru 26 Reputation points
answered 2025-01-21T04:52:58.8566667+00:00
akams suthapp 0 Reputation points
0 answers

Ordinal 129 could not be located in DLL (loadlibrary | peak PCAN passthru | winforms application)

Hello all, I'm facing an issue with latest version of Peak PCAN driver, when I try to load the DLL of the latest driver in my winforms project the above error is shown. The catch is using the same loadlibrary function in any other project…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 questions
asked 2025-01-17T06:04:13.94+00:00
Soul 0 Reputation points
commented 2025-01-20T20:21:29.9766667+00:00
RLWA32 47,246 Reputation points
2 answers

Visual Studio: Publishing Windows Application to ftp no longer works - please help!

I have been successfully publishing my Windows Applications built in Visual Studio for years now, to my website with an ftp account. I can connect to the ftp with Filezilla and Windows 10, no problem, but not in the publish. I've looked online for…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,092 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,094 questions
asked 2021-05-21T06:52:20.72+00:00
James Parsons 1 Reputation point
answered 2025-01-17T20:07:50.9633333+00:00
Márton Görög 0 Reputation points
1 answer

how to fix To prevent possible data loss before loading the designer, the following errors must be resolved: ?

|Here is the call stack:at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateVariableKindUnknownException(XmlElementData xmlElement, String name)at …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
asked 2023-09-09T17:39:10.5133333+00:00
cdog78 0 Reputation points
commented 2025-01-14T19:32:25.9533333+00:00
Roque, Rudy 21 Reputation points
1 answer One of the answers was accepted by the question author.

Close and then open a new tab page or window asks authentication

I am trying to embed a webform application in WinForm using Webview2 control. The new window opens in a tab page with webview2 child ( e.handled=true). But when destroying the child tab wm_destroy is not calling properly. so each time while open a new…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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,811 questions
Universal Windows Platform (UWP)
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.
11,306 questions
asked 2025-01-11T04:26:32.7333333+00:00
Neha 20 Reputation points
accepted 2025-01-13T02:00:16.2866667+00:00
Neha 20 Reputation points
2 answers One of the answers was accepted by the question author.

visual studio windows form call error

when i try to add windows form to my project , it outputs errors i make clr empty project .net framework Instances of this error (1) Hide Call Stack at Microsoft.VisualStudio.Designer.Interfaces.IVSMDCodeDomProvider.get_CodeDomProvider() …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,856 questions
asked 2021-04-26T10:43:01.043+00:00
shams 21 Reputation points
commented 2025-01-03T10:50:28.1133333+00:00
Giovanni Arzedi 0 Reputation points
2 answers

How do I make a richTextBox have a transparent background / show the image beneath it? (C#, Windows Forms App)

Hello, as per the title, I want to make the richTextBox in my project transparent, or have a way to show the image beneath it. Whenever I try to set the backcolor to transparent, i always get "Property value is not valid" with "Control…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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.
11,306 questions
asked 2024-12-27T06:00:17.44+00:00
dorian tester 0 Reputation points
edited the question 2025-01-02T02:52:02.77+00:00
Tianyu Sun-MSFT 33,346 Reputation points Microsoft Vendor
2 answers

Advice on Signing and Certificate Options for a WPF Project

Hi, I have a WPF project based in Dublin, initially intended for approximately 100 users in Ireland, with plans to expand both inside and outside the EU over the long term. The business was established in September 2022. I’d like advice on the best…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,923 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,827 questions
Azure Trusted Signing
Azure Trusted Signing
Trusted Signing is a Microsoft fully managed, end-to-end signing solution that simplifies the certificate signing process and helps partner developers more easily build and distribute applications.
166 questions
asked 2024-12-21T17:48:00.1666667+00:00
Mustafa Walid 0 Reputation points
answered 2024-12-26T22:09:36.44+00:00
Ken Tucker 5,856 Reputation points