1,821 questions with Windows Forms tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Trying to figure out why ocx file wont load form.

Program is able to run perfectly fine, but when trying to edit the form you get: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))Class not…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
asked 2024-04-15T19:15:47.7333333+00:00
Zach M 0 Reputation points
accepted 2024-04-19T17:56:13.59+00:00
Zach M 0 Reputation points
0 answers

Why WebBrowser doesn't show up in toolbox?

I want to make an own custom web browser so i looked for tutorial, when i at the insert WebBrowser extension, it's not shown up. I tried to reset and added it again, but it shows up "Added sucessfully but can't see or use in designer". I tried…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 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,578 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
173 questions
asked 2024-04-19T08:05:06.3166667+00:00
Ocean 0 Reputation points
commented 2024-04-19T08:16:34.4633333+00:00
Viorel 111.8K Reputation points
2 answers

Appropreate message to initiate window move with the mouse button up

Unfortunately I was asking the wrong way. I know how to move the form by setting its Location property. I have a working solution without p/invoke on github although quite convoluted for my taste. My question is "can I avoid this convolution by…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 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,412 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,204 questions
asked 2022-12-17T11:19:29.73+00:00
adamstyl 1 Reputation point
edited an answer 2024-04-18T22:03:36.0866667+00:00
Gavin Landon 0 Reputation points
1 answer

Microsoft point of sales for .net solution's can't create new PosExplorer Object

I'm Trying to use Microsoft point of sales for .net 1.14.1 version and trying to use it's Cash drawer capabilities for my Windows form application. But when i'm trying to create PosExplorer new object it throws "System.NullReferenceException:…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
asked 2024-04-17T12:11:00.1366667+00:00
Lasitha Lankajeewa 0 Reputation points
answered 2024-04-18T09:36:23.16+00:00
Jiale Xue - MSFT 30,811 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Multiple forms with common buttons

I need to create multiple winforms in an application with two buttons previous and next. When I click on the next button in a form the next form should open up. Similarly when I click on previous button previous form should open up. I don't want to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
asked 2024-04-16T11:10:28.12+00:00
Prash 61 Reputation points
accepted 2024-04-18T08:40:51.2833333+00:00
Prash 61 Reputation points
1 answer One of the answers was accepted by the question author.

Is control.TrayLocation in resource file is really required?

whenever I add a non visual control(tooltip, dataset etc) to windows form, an entry control.TrayLocation gets added in the resource file. is it really required? is it okay to delete this entry before checking-in into source control?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
asked 2024-04-18T05:31:12.0666667+00:00
Prash 61 Reputation points
accepted 2024-04-18T08:38:51.3533333+00:00
Prash 61 Reputation points
1 answer

i cannot open windows default application?

i am trying to open snipping tool ,Paint and Notepad but attached will pop up.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 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,724 questions
asked 2024-04-15T06:21:15.2+00:00
Askari Hassan 0 Reputation points
edited the question 2024-04-17T08:45:21.9433333+00:00
Roy Li - MSFT 31,551 Reputation points Microsoft Vendor
0 answers

how can my pc allow certain apps to work without ruinning my router?

hello so i have docker and another app and whenever i launch them the internet in the house stop working, some websites like telegram or so still work but other then that the internet doesnt work at all, my question is can i allow the pc in settings or…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
Internet Information Services
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,747 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,103 questions
asked 2024-04-16T22:33:22.31+00:00
MadGhost21 0 Reputation points
edited the question 2024-04-16T23:23:37.63+00:00
ChaitanyaNaykodi-MSFT 22,311 Reputation points Microsoft Employee
0 answers

The Application installed on customer not responding on developer environment working properly

My application working, with limitation of a beginner in Visual Studio C# programmer, working properly from 10 months. After last security updates of March the application not responding. I have developped three programs: the first program is a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
asked 2024-04-13T09:53:08.9533333+00:00
Org-Inf 0 Reputation points
commented 2024-04-15T09:31:14.33+00:00
Jiale Xue - MSFT 30,811 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,821 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,204 questions
asked 2024-04-12T17:01:22.2533333+00:00
Santos, Mark Jairo (Student) 0 Reputation points
commented 2024-04-13T08:56:30.3966667+00:00
Karen Payne MVP 35,031 Reputation points
1 answer

issue on toolbox menu. im now working on a project that need videosource player on my windows form. i already add it but why the menu didn't show up in toolbox. and already try to repeat it too but the result is still same. or there is another way to add

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
asked 2024-03-31T05:50:17.7+00:00
abdul rahman alif putra 0 Reputation points
commented 2024-04-10T09:40:54.25+00:00
Jiale Xue - MSFT 30,811 Reputation points Microsoft Vendor
1 answer

C# Webview2 WebMessageReceived event not firing anymore after update of MS Edge browser and Webview2 runtime

I am developing a WinForms project using VS2022 IDE. as per our requirement I am using Webview2 to embed the browser in our WinForms. web site load properly. my requirement was if user select any data from Webview2 at runtime then I need to capture the…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,114 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 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,204 questions
asked 2024-03-20T19:43:04.9433333+00:00
T.Zacks 3,986 Reputation points
edited a comment 2024-04-10T05:40:02.0833333+00:00
Jiale Xue - MSFT 30,811 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Visual Studio 2022 considering Desktop application as ASP.Net & generating errors

I have developed a desktop application using Visual Studio 2022. I then developed a web application ASP.net with Visual Studio 2022. Now, whenever I launch the desktop application, VS considers it an ASP.net application, and is generating errors by the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 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,578 questions
asked 2024-04-02T23:56:19.5466667+00:00
Simon 286 Reputation points
accepted 2024-04-09T17:41:01.4533333+00:00
Simon 286 Reputation points
1 answer

l cannot find the Windows.Devices.Sensors Namespace.

l wish to access the Windows Ambient lights sensors on a windows forms app using C# but l cannot find the reference for system device sensors

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 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,204 questions
asked 2023-09-14T23:56:15.7266667+00:00
kil_dren 02 0 Reputation points
edited an answer 2024-04-09T09:53:23.5966667+00:00
Castorix31 81,461 Reputation points
1 answer

System.ArgumentException: 'Password not Supported: 'trust server certificate'.'

SqlConnection conn = new SqlConnection(@"Data Source=<SERVERNAME>;User ID=erp;Password=***********;Encrypt=True;Trust Server Certificate=True"); This is the line of code where i get the error, i have tried taking off the Trust Server…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 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,654 questions
asked 2024-03-27T15:36:45.3766667+00:00
Gonçalo Cruz 0 Reputation points
edited the question 2024-04-09T08:37:49.09+00:00
Anna Xiu-MSFT 25,466 Reputation points Microsoft Vendor
5 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,821 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,578 questions
asked 2022-01-05T11:35:59.977+00:00
cshermak 1 Reputation point
commented 2024-03-31T17:41:31.91+00:00
Andrés J 0 Reputation points
1 answer

ClickOnce Publishing Issues-Cannot Copy Files

I keep getting this error when publishing files. It does not matter if its to a local directory or URL server. The project builds correctly, and I can run the application. I have administrator rights to all locations. I've tried to delete bin an obj…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
asked 2023-03-07T00:42:35.89+00:00
Groz 5 Reputation points
commented 2024-03-28T13:55:04.0533333+00:00
Groz 5 Reputation points
2 answers One of the answers was accepted by the question author.

What is the alternative of GetWebLoginClientContext in the current PnP.Framework?

Following this issue, I have copied the code for GetWebLoginClientContext and implemented it in my project. However, I get this out-of-date browser error because the code uses System.Windows.Forms.WebBrowser which uses the old built-in browser. What…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 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,204 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,655 questions
asked 2023-02-03T01:04:49.1433333+00:00
Jack Le 45 Reputation points
commented 2024-03-28T02:33:58.0566667+00:00
Ken Netherland 6 Reputation points
1 answer

C# windows form crash

Hi, I'm writing my Windows forms project in C# using the latest versione available of Visual Studio Community (17.9.3). The project manages a Modbus TCP client connection using the NModbus library to a proprietary and tested server. The connection is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 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,204 questions
asked 2024-03-13T10:22:08.48+00:00
Isacco Simonini 0 Reputation points
commented 2024-03-26T07:50:43.0666667+00:00
Jiale Xue - MSFT 30,811 Reputation points Microsoft Vendor
1 answer

Hi im currently working on project that using Windows form app and im using The newest Net Framework 8.0 but why i cant add chart on my project. The worse is the menu even does not exist.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 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,578 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,103 questions
asked 2024-03-01T17:11:17.4766667+00:00
abdul rahman alif putra 0 Reputation points
edited a comment 2024-03-26T02:38:04.9966667+00:00
Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor