Microsoft Q&A

Windows Forms

1,593 questions

A set of .NET Framework managed libraries for developing graphical user interfaces.

Browse all .NET tags

1,593 questions with Windows Forms tags

Sort by: Updated
4 answers

ASP.NET Web API : How Can I Return Object of System.Type

I have an assembly which is created using ASP.Net Framework Class Library Project. This assembly has lot of Types. Each Types has its own Methods, Fields and Properties. Now I have written an ASP.Net Web API in which I am loading this assembly using…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
234 questions
asked 2022-02-07T15:09:59.72+00:00
Harsha C S 1 Reputation point
edited an answer 2023-09-01T11:52:41.89+00:00
god Mpandou 0 Reputation points
1 answer

InvalidProgramException in Windows Forms application

Hello, I'm a developer of the desktop .NET Windows Forms application. I faced a strange exception thrown by .NET runtime on a single production PC. On a component initialization phase .NET throws the following: System.InvalidProgramException: Common…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,929 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,034 questions
asked 2023-08-29T18:10:10.3533333+00:00
Vadym Lenda 0 Reputation points
commented 2023-09-01T11:05:18.9633333+00:00
Vadym Lenda 0 Reputation points
0 answers

After adding webview 2 control to one of the tab in my winforms app using c# while running the application is closing automatically

I made my application to have a webview 2 control inside one of the tabs page and whenever the user opens the tab a particular web page will be opened and from the web page i have link that will redirect the user to open some of the tasks in the WinForms…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,929 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.
8,805 questions
asked 2023-07-27T06:10:51.9+00:00
Dineshkumar.S 426 Reputation points
commented 2023-09-01T08:41:44.1233333+00:00
Jiale Xue - MSFT 8,686 Reputation points Microsoft Vendor
3 answers

C# Winforms how to set Datagridview DataGridViewCheckBoxCell via code

I am stumped on finding a solution to allow me to set a hidden DataGridViewCheckBoxCell checked state with code. The application is using a DataGridView to present a recipe on the form. Users are allowed to add/change the rows of the recipe. I want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 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.
8,805 questions
asked 2023-08-28T18:00:42.5866667+00:00
Pat Hanks 81 Reputation points
commented 2023-09-01T01:33:49.82+00:00
Jiale Xue - MSFT 8,686 Reputation points Microsoft Vendor
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,593 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,661 questions
asked 2022-09-14T20:22:54.647+00:00
Nicholas Piazza 476 Reputation points
commented 2023-08-31T15:01:11.53+00:00
David Lowndes 860 Reputation points MVP
1 answer

error after changing main form name in windows forms

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,661 questions
asked 2022-05-23T09:03:48.257+00:00
haha yes 1 Reputation point
commented 2023-08-31T14:24:23.9233333+00:00
GLH 0 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,593 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,275 questions
asked 2023-08-19T14:21:42.4366667+00:00
Jessie Cudiamat 0 Reputation points
commented 2023-08-31T08:43:21.48+00:00
Jiachen Li-MSFT 19,086 Reputation points Microsoft Vendor
0 answers

Unable to select a month from the date picker list of months in report viewer.

In a WPF application, we are using report viewer to remotely connect to SSRS reports. In report viewer the month selection is not working in the date picker, however it works fine in reporting server. I am able to click on the arrows to change the month…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 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,450 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,502 questions
asked 2023-08-15T18:27:59.9266667+00:00
Monie 0 Reputation points
commented 2023-08-30T09:39:20.7233333+00:00
Hui Liu-MSFT 20,956 Reputation points Microsoft Vendor
0 answers

Why "Choose toolbox items" window fail to load items and makes Visual Studio 2022 version 17.7.1 restart

I recently updated my Visual Studio 2022 to version 17.7.1. The problem is that when I right-click the Toolbox to select 'Choose Toolbox items' window appears for a moment, then Visual Studio just restarts without indicating anything. I am using windows…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,661 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.
8,805 questions
asked 2023-08-19T15:04:26.2066667+00:00
Khaled Boudia 0 Reputation points
commented 2023-08-30T09:31:02.6733333+00:00
Karen Payne MVP 32,501 Reputation points
0 answers

How to fix the password reset in windows application using C#

In My Windows application developed using C# if the user resets the password using the reset token and the reset token is valid for 24 hours and after successfully resetting the password. The new password is getting reverted to the old password…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,929 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.
8,805 questions
asked 2023-08-26T05:14:52.7266667+00:00
Dineshkumar.S 426 Reputation points
commented 2023-08-28T16:32:42.5266667+00:00
Johan Smarius 80 Reputation points
2 answers One of the answers was accepted by the question author.

Can I host my dotnet winform application to azure app service?

I have my winform application created in Visual studio 2022. I am trying to publish it to azure app service. I successfully deployed and published it but when I access the url it shows nothing on the page but message "Your web app is running and…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,586 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.
8,805 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,466 questions
asked 2023-08-24T20:36:30.2233333+00:00
shiwani upadhyay 20 Reputation points
accepted 2023-08-27T21:22:20.64+00:00
shiwani upadhyay 20 Reputation points
1 answer

Visual Studio 2022 not responding when saving a design file

I am trying to add a new component to a design file, but whenever I try to save after adding it, Visual Studio stops responding and I have to close it. I have tried even deleting things from the design, but saving after that also leads to the same…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
asked 2023-04-26T15:52:41.9833333+00:00
61921288 0 Reputation points
commented 2023-08-27T08:48:23.11+00:00
Karen Payne MVP 32,501 Reputation points
1 answer

c# Dynamic Linq Query

How can i get compoiste primpary key value at run time for a audit purpose. in my application when user modies record i save that tables old and modied values for audit purpose . using two tables ChangeRecord and crdetail table. for simple single key…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 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.
8,805 questions
asked 2023-08-24T07:14:39.0666667+00:00
Sushil Agarwal 361 Reputation points
edited an answer 2023-08-25T12:05:40.72+00:00
Sushil Agarwal 361 Reputation points
2 answers

how can i encrypt app.config when deploying a windows forms app?

The app.config file is plain language and contains passwords for data connection strings. How can I encrypt it for deployment?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,929 questions
asked 2023-08-16T15:45:10.18+00:00
James Foy 25 Reputation points
commented 2023-08-24T08:56:39.3966667+00:00
Jiale Xue - MSFT 8,686 Reputation points Microsoft Vendor
1 answer

VS2022 C# rdlc(report view) can't display data in some cells

I using VS2022 C# RDLC(report viewer), the running result can't display data in some cells , but I can view the data record in the sql query analyzer; Please refer to the following figure for details, I can't found the reason,help me please, thank you…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 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.
8,805 questions
asked 2023-08-16T08:30:40.8033333+00:00
pxesoft198007 0 Reputation points
commented 2023-08-24T08:55:49.4433333+00:00
Jiale Xue - MSFT 8,686 Reputation points Microsoft Vendor
0 answers

Can Maui display a WinForms app that is built as a dll?

We have a WinForms application that loads sub applications as dlls. Can Maui load a dll that is a WinForm app and display it?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,761 questions
asked 2023-08-23T13:56:14.9133333+00:00
Chad Bryant 0 Reputation points
commented 2023-08-23T18:17:44.63+00:00
Rob Caplan - MSFT 5,052 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to refresh the form icon?

When I edit the form icon, how to reflect the new changes on the old forms?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 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.
8,805 questions
asked 2023-08-13T13:10:14.2866667+00:00
BenTam 941 Reputation points
accepted 2023-08-23T07:45:33.8166667+00:00
BenTam 941 Reputation points
3 answers

Toolbox has no items

Visual Studio 22 Windows Forms App has the following message in the Toolbox, "There are no usable controls in this group. Drag an item onto this text to add it to the toolbox." I have tried the reset toolbox and choosing items but neither…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,661 questions
asked 2022-01-05T11:35:59.977+00:00
cshermak 1 Reputation point
answered 2023-08-22T22:44:19.4866667+00:00
molnarorso 0 Reputation points
1 answer

How can i deploy my custom fonts with my Hybrid (Windows Form & WPF) C# setup?

I currently created a Desktop Hybrid C# project which its User Interface is using Fonts that are not available in my Users Computer, Using Advanced Installer i created the setup and after running the setup on another machine i found the fonts missing…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 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,450 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.
8,805 questions
asked 2023-08-16T17:59:05.5633333+00:00
Mesh Ka 120 Reputation points
commented 2023-08-21T13:04:20.8+00:00
Castorix31 75,636 Reputation points
1 answer One of the answers was accepted by the question author.

DatagridView BindingList PropertyChanged

When the button_click changed the NIndex property ,And i want to change the cell's background . The problem is the CellValueChanged don't work. Could tell me how to change the cell'background when the cell's value changed,please.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,593 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.
8,805 questions
asked 2023-08-14T03:46:11.3033333+00:00
GuoLearn 231 Reputation points
commented 2023-08-18T05:40:42.4766667+00:00
Jiale Xue - MSFT 8,686 Reputation points Microsoft Vendor