1,879 questions with Windows Forms tags

Sort by: Updated
1 answer

How to copy current project & assign New Name ?

Hello & Thanks ; I have a current project named GetElementsByTagname and from it I would like to make a new project named GetElementsByTagname-Copy-01 . I want to try different versions of same code . Thanks for your Help...

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
asked 2020-08-28T17:03:25.297+00:00
vmars316 621 Reputation points
commented 2024-08-18T14:08:13.3+00:00
mc mike 0 Reputation points
1 answer

how to use CoreWindow in winforms?

I want to use Direct2D and the link of CreateSwapChainFromCoreWindow says I should Use CreateSwapChainFromCoreWindow and If I use CreateSwapChainForHwnd I can not publish to microsoft store. so Can I use CoreWindow in winform?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,734 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,547 questions
asked 2024-08-18T00:09:10.34+00:00
mc 4,116 Reputation points
commented 2024-08-18T08:48:13.92+00:00
Darran Rowe 666 Reputation points
2 answers

How to display menu by notification 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,879 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,547 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,696 questions
asked 2024-08-10T19:15:01.1466667+00:00
Mansour_Dalir 1,796 Reputation points
commented 2024-08-16T07:23:11.6633333+00:00
Jiachen Li-MSFT 30,286 Reputation points Microsoft Vendor
5 answers

VISUAL STUDIO 2022 REPORT PROJECT ADDING EXTERNAL LIBRARIES PATH

i am trying to add my rdl files to new report project . the report has got calls to external assemblies for priting barcode, q.r.code on running the report i am getting error that assmbles can not be found i have copies them to bin\debug folder of…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 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,895 questions
asked 2023-12-23T03:00:08.09+00:00
Sushil Agarwal 406 Reputation points
answered 2024-08-09T17:34:37.72+00:00
Sushil Agarwal 406 Reputation points
2 answers

Datetime picker databindings not updating the value in c# .net

In an windows c#.net form for a field supp_docno which is a date type filed in grn table is bound to a dtpSupplierbill_dt.DataBindings.Add("Value", bs, "supp_docdt", true); default value is assigned to it at the time of…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 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,732 questions
asked 2024-08-02T15:09:25.9033333+00:00
Sushil Agarwal 406 Reputation points
commented 2024-08-09T09:36:38.76+00:00
Jiale Xue - MSFT 43,696 Reputation points Microsoft Vendor
1 answer

Adding a Watermark Overly on Windows 11 System-Level UI

Hello everyone, I have been trying to implement a (C# WinFrom) application that adds a watermark over all user’s screens (as a TopMost overly which does not affect user’s interactions) to make it easier to know from where the leak originated (if the user…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,734 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,732 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,224 questions
asked 2024-08-08T05:07:00.7733333+00:00
Abdulrahman Aldwsri 0 Reputation points
answered 2024-08-09T01:13:39.37+00:00
S.Sengupta 18,026 Reputation points MVP
2 answers

Send email from a .Net Framework Winforms application and service using Microsoft accounts.

Hello. We provide a .Net Framework Winforms application with a service. Both share code which allows our customers to send email from their own email accounts, currently using MailKit, although we could use another client if necessary. Where they want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,734 questions
Microsoft Entra
asked 2024-06-28T11:56:45.4266667+00:00
Fortecho Solutions Ltd 0 Reputation points
commented 2024-08-06T08:30:16.9766667+00:00
Raja Pothuraju 3,205 Reputation points Microsoft Vendor
1 answer

All Toolbox Options Greyed in Visual Studio 2022

I have recently upgraded my WinForm C# application from .Net 4.7.x to .Net 6 I wish to make a change to one of the Forms, however when I try to add any control to any form, I find that all options are greyed out in the Toolbox, so I can modify any of the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 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,732 questions
asked 2024-04-20T11:10:48.4966667+00:00
Tony Hedge 6 Reputation points
commented 2024-08-05T07:27:39.4366667+00:00
Nasir Uddin 0 Reputation points
0 answers

Modifying multiple Microsoft forms easily

Hello, I am managing 200 Microsoft forms for different processes in my company. They all share the same base but then branch out at some point. I want to modify the base shared amongst the 200 forms. Is there a way to modify them all in one go? Via…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,623 questions
asked 2024-08-01T12:37:26.42+00:00
Ferre Nael 0 Reputation points
edited a comment 2024-08-03T06:13:52.56+00:00
Viorel 115.9K 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,879 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,732 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,224 questions
asked 2024-07-23T23:13:08.8466667+00:00
Nat323 20 Reputation points
accepted 2024-08-01T10:59:51.24+00:00
Nat323 20 Reputation points
3 answers

Rename a form in Visual Studio 2022

Hello, trying to rename a form. The guidance here appears to still be good but even though I renamed the form in solution explorer, told VS2022 to rename it everywhere, and set the startup object in project properties, I still get the error,…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
asked 2023-03-27T21:23:08.4866667+00:00
Steev43230 5 Reputation points
commented 2024-07-29T17:54:47.6666667+00:00
Brayan 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to set AllowUserToAddRows with ToolStripButton1.Click without adding rows in DataGridView

hi What is the best way to toggle the AllowUserToAddRows variable between true and false based on a ToolStripButton1.Click event, without adding rows to the DataGridView? I have implemented the button click event, but it currently adds a row to the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 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,696 questions
asked 2024-07-29T08:08:15.6333333+00:00
Mansour_Dalir 1,796 Reputation points
commented 2024-07-29T09:58:54.8566667+00:00
Jiachen Li-MSFT 30,286 Reputation points Microsoft Vendor
1 answer

How to fix error CS0246 (AxMSInkAuTLib) missing

After copying all of the Winforms from 1 project to another, I was not able to compile the 2nd project. Getting error CS0246 for AxMSInkAutLib.AxInkPicture (see below for the detailed error description). I think I am missing a Reference, but am unable to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 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,964 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,732 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,224 questions
asked 2024-07-28T01:33:46.62+00:00
Giacomo Raucci 341 Reputation points
commented 2024-07-28T22:25:45.3433333+00:00
RLWA32 44,116 Reputation points
0 answers

Digital signature exe, slow startup

After I used the certificate to digitally sign my client program, it took me 20 seconds from double clicking the program to start to running to the first line of the main function. If I don't sign, I can immediately open the client. What is the reason…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,734 questions
asked 2024-07-26T09:29:41.7666667+00:00
Chaip 0 Reputation points
commented 2024-07-26T12:32:01.3833333+00:00
Jiale Xue - MSFT 43,696 Reputation points Microsoft Vendor
1 answer 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,879 questions
asked 2020-08-13T21:11:57.34+00:00
Khushi Shaikh 86 Reputation points
commented 2024-07-24T14:18:55.0633333+00:00
Schubert III, William 0 Reputation points
1 answer One of the answers was accepted by the question author.

Difference between PrintDocument.PrinterSettings.DefaultPageSettings and PrintDocument.DefaultPageSettings

// Tricky! Very confusing! These statements are similar: // (1) printDoc.PrinterSettings.DefaultPageSettings.Margins.Left = 75; // (2) printDoc.DefaultPageSettings.Margins.Left = 75; // In pd_PrintPage, ev.MarginBounds.Left will be equal to the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,734 questions
asked 2024-07-22T13:55:27.91+00:00
Ken Smith 125 Reputation points
commented 2024-07-22T22:10:31.4566667+00:00
Ken Smith 125 Reputation points
3 answers One of the answers was accepted by the question author.

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

I am having Windows 64 Bit os build 19043.1826 21H1, i have office 21 64 bit on this pc, but when i want to open an xls file i am getting the above error, if i build application 32bit it open file correctly, but if i make it 64 bit i can not install…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 questions
asked 2022-07-25T18:21:25.197+00:00
Sushil Agarwal 406 Reputation points
answered 2024-07-22T11:51:42.32+00:00
Hagar Mofeed 0 Reputation points
0 answers

MSWord closes unexpectedly when clicking "Print" button in "Envelopes and Labels" dialog

I'm embedding MSWord in my WinForms app using Microsoft Library, and I'm following this guideline to set the window style to ws_child to support the child window. However, when I click the "Print" button in the "Envelopes and Labels"…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 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,191 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,547 questions
asked 2024-07-19T12:06:41.3133333+00:00
Prasanth Vimalanathan 0 Reputation points
commented 2024-07-22T07:48:41.7433333+00:00
Jiale Xue - MSFT 43,696 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Save Picturebox image to datagridview

looking for a way to save an image to a datagridview cell, image is loaded into the picturebox then when form is closed saves it to the datagrid.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,879 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,964 questions
asked 2024-07-07T03:11:49.5266667+00:00
Ben Ramsay 20 Reputation points
commented 2024-07-17T09:55:26.2966667+00:00
Ben Ramsay 20 Reputation points
3 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,879 questions
asked 2021-04-08T13:48:49.163+00:00
feddea cbrolleru 26 Reputation points
answered 2024-07-16T07:57:17.8866667+00:00
Meri Nukkri 0 Reputation points