1,914 questions with Windows Forms tags

Sort by: Updated
1 answer

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,914 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,804 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.
133 questions
asked 2024-12-21T17:48:00.1666667+00:00
Mustafa Walid 0 Reputation points
commented 2024-12-26T04:38:47.0133333+00:00
Givary-MSFT 34,521 Reputation points Microsoft Employee
1 answer

Visual Studio 2019 Crashes When Closing Windows Form in Design View

Maintaining a Windows Forms application in Visual Studio 2019 (version 16.11.42) that uses Janus controls. Recently, there is a form within the application that when opened in design view indicates there are changes as soon as it is opened. Closing and…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,306 questions
asked 2024-12-12T20:49:16.4+00:00
Euris 0 Reputation points
commented 2024-12-24T07:05:11.7633333+00:00
Anna Xiu-MSFT 30,386 Reputation points Microsoft Vendor
1 answer

Testing a Windows Form @ design time

Hi All, When you're working on a dialog under the resource view for a Windows Desktop Application/C++ you can any time test your dialog at design time simply clicking Ctrl+T. There is no need to build the project and run it. I tried to find…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 questions
asked 2022-11-09T20:43:56.423+00:00
C V 46 Reputation points
commented 2024-12-23T16:22:22.96+00:00
Marton Bardos 0 Reputation points
2 answers

How to Append Data to a Text File in a Windows Forms Application?

In a Windows Forms application, data is read from a text file and displayed in a list box. The goal is to add a new item from a textbox to the same text file when a button is pressed, but the item is not being appended to the file as expected. The button…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,152 questions
asked 2024-12-21T19:15:40.1266667+00:00
Cenk 1,021 Reputation points
answered 2024-12-23T11:16:33.8466667+00:00
Karen Payne MVP 35,461 Reputation points
2 answers

Visual Studio 2022 WinForm Designer throws 'Object reference not set to an instance of an object' exception when loading child Winform Window

Hi all, I have a C# project in .Net Framework 4.8 with WinForm as UI. I use upgrade assistent to convert the project from .Net Framework 4.8 to .Net 6.0. The project is able to compile an execute and run. However, when I try to open the WinForm in…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,306 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,152 questions
asked 2023-04-28T10:39:42.7766667+00:00
KaLun Leung 0 Reputation points
answered 2024-12-21T21:34:42.8066667+00:00
reasra 0 Reputation points
2 answers One of the answers was accepted by the question author.

visual C# windows form project, cannot assign to a "using variable"

Hi, this code I want to identify the ID of the PC (processor + motherboard), so that I can use later for the database of the users. Here code: using (ManagementObjectCollection objectList = null) { ManagementObjectSearcher objectSearcher = new…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,152 questions
asked 2024-12-17T21:21:39.8366667+00:00
Gennady Gurin 81 Reputation points
accepted 2024-12-19T23:40:43.94+00:00
Gennady Gurin 81 Reputation points
1 answer One of the answers was accepted by the question author.

Windows Form Project c#, checking if Key exist in Registry

Hi, I tried various things does not seem to work if key does not exist it gives exceptional error, but if it does it works. Here Code: private void Form1_Load(object sender, EventArgs e) {        RegistryKey Key =…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,152 questions
asked 2024-12-12T23:44:37.34+00:00
Gennady Gurin 81 Reputation points
commented 2024-12-15T01:54:03.4633333+00:00
Gennady Gurin 81 Reputation points
2 answers One of the answers was accepted by the question author.

Creating and displaying forms in VS 2022 Community 17.12.3

Hello I reopen under VS 2022 Community 17.12.3 an old WinForm application developed by me under VS 2010, which targets .Net Framework 4.0. Under VS 2022 it now targets .Net Framework 4.8.1. The compilation is Ok and I start the execution (in Debug and…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,306 questions
asked 2024-12-12T16:35:14.8133333+00:00
Amyco 35 40 Reputation points
commented 2024-12-13T17:14:50.0033333+00:00
Amyco 35 40 Reputation points
2 answers

Exception when using Firebase streaming

Hi, When I try to read data from Firebase using FirebaseDatabase.net Library I receive Newtonsoft.Json.JsonReaderException exeptionn this code works Imports Firebase.Database Imports Firebase.Database.Query Public Class Form1 Private Async Sub…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,760 questions
asked 2024-10-18T05:54:17.3033333+00:00
Yusuf-3141 50 Reputation points
edited the question 2024-12-13T12:18:35.1866667+00:00
TP 100.9K Reputation points
3 answers

i am getting this error

please give me some solution for SqlConnection, SqlCommand and Clear ()

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 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.
14,215 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,760 questions
asked 2024-11-30T11:08:29.9066667+00:00
sayali dhanawade 20 Reputation points
edited the question 2024-12-06T06:28:48.6433333+00:00
Zhi Lv - MSFT 32,736 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

DataGridView column alignment header vs data

In the pic below, the DataGridView column header (Column1) is misaligned with the data cell text below it (XXX). The misalignment is nearly one character width. It is more visually obvious with a larger font. The pic comes from a minimal Forms app. …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 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,760 questions
asked 2024-05-23T15:21:45.1333333+00:00
Andrew Mercer 486 Reputation points
edited a comment 2024-12-05T18:23:27.83+00:00
Dessert Bar 5 Reputation points
1 answer One of the answers was accepted by the question author.

How to enable TCP protocol of SQL Server Express 2019 through C# code?

I have MS SQLExpress 2019 installed in Windows 11 desktop. I want to enable SQLExpress TCP protocol programmatically from Windows Application using c#. So, I have written following simple code. using…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 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.
14,215 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,152 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,706 questions
asked 2024-12-04T07:17:35.38+00:00
Anoop Choudhary 20 Reputation points
accepted 2024-12-05T13:17:04.8633333+00:00
Anoop Choudhary 20 Reputation points
0 answers

'Form5' does not contain a definition for 'radioButton13' and no accessible extension method 'radioButton13' accepting a first argument of type 'Form5' could be found (are you missing a using directive or an assembly reference?)

how can i solve this to prevent me from creating a whole new windows form

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 questions
asked 2024-11-30T09:41:51.14+00:00
sameer ishfaq 0 Reputation points
commented 2024-12-05T09:49:47.97+00:00
Jiale Xue - MSFT 48,441 Reputation points Microsoft Vendor
1 answer

4.6.1 migrating to .Net Core 7 – How do I resolve error MC1000- cannot find type System.Management.Instrumentation.InstrumentedAttribute in Assembly ..path \.nuget\packages\system.management\7.0.0\lib\net6.0\SystemManagement.dll – Microsoft.WinFx.Targets

I am migrating a .netFramework 4.6.1 application to core. I have been able to get rid of all of the build errors except this one: Error MC1000 Unknown build error, 'Could not find type 'System.Management.Instrumentation.InstrumentedAttribute' in…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
767 questions
asked 2022-11-29T01:11:01.337+00:00
Dozier, Fletcher [US] (DS) 1 Reputation point
edited the question 2024-12-04T16:56:46.72+00:00
simo-k 1,350 Reputation points
6 answers

Winforms: C#: Show Build Date in Form.

I have a .net Winforms App I am using a Deployment Project to build an MSI installer. Here's what I want: When I do a build, I want the Build Date to be stored in the APPLICATION (not USER) Settings. I then want to display that on the main form. …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 questions
asked 2021-08-23T19:35:16.32+00:00
Bryan Valencia 1 Reputation point
commented 2024-12-03T00:08:00.6+00:00
ANDREW BOOLS 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to set custombutton default text?

i created a custom button control. the class code is inherited from a button. the problem is that in the class code i set the text to "REC" but when i drag the custom button control in form1 designer from the toolbox the default text is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,152 questions
asked 2024-12-01T23:58:42.29+00:00
Chocolade 536 Reputation points
accepted 2024-12-02T03:55:52.59+00:00
Chocolade 536 Reputation points
11 answers

Windows Forms Designer Problem When Renaming New Form Before Adding Controls

Note: I have reported the problem below in Visual Studio 2022 Feedback. Just wanted to see if any of you have a suggestion. Normally, when you create a new Form in Windows Forms and add controls to the form, the Designer automatically fills in the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,306 questions
asked 2022-09-14T20:22:54.647+00:00
Nicholas Piazza 541 Reputation points
commented 2024-12-01T16:24:39.8433333+00:00
M Madonna 0 Reputation points
1 answer

What causes this error: Designer load encountered an error. Please ensure that the project can be built successfully.

I did an in-place upgrade of my .NET Framework 4.8.1 VB .NET project to a.NET 9.0 project. I am unable to open the Windows Forms Designer for any of the forms in the project. I created a new Windows Form in the project to compare the new form's designer…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,306 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,760 questions
asked 2024-11-27T16:42:21.7166667+00:00
Mike Meinz 1 Reputation point
edited the question 2024-11-28T01:40:55.9033333+00:00
Jiale Xue - MSFT 48,441 Reputation points Microsoft Vendor
0 answers

how to fix "Designer load encountered and error. Please ensure that the project can be built successfully."

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 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,152 questions
asked 2024-04-12T17:01:22.2533333+00:00
Santos, Mark Jairo (Student) 25 Reputation points
commented 2024-11-27T19:46:28.29+00:00
Jonathan Wood 11 Reputation points
0 answers

DTPicker from Mscomct2.ocx is not accessible from Intune enrolled computer

For several years I have had VBA code running in Outlook 32bit-clients including a bunch of custom desigend forms. I have had a traditionally AD/DC setup which right now is hybrid. On some of the forms I use DTPicker from Mscomct2.ocx. If I run cutsom…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,914 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
4,218 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,103 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,363 questions
asked 2024-11-27T08:14:30.5+00:00
Allan Reese 6 Reputation points
edited the question 2024-11-27T13:53:44.2733333+00:00
Jiachen Li-MSFT 32,961 Reputation points Microsoft Vendor