Category "winforms"

C# forms check when a specific execute has been launched and then run my program

How would I make my program check if a certain application like "notepad" has focus and ultimately open my second form when it does have focus, closing that sec

VB.Net Windows Form UserControl misplaced after location exceeds Form Height

I have a Windows Forms Application with an MDIParent Form and Windows Form. The Form has a handful of controls and on Form_Load I add a User Control. Private S

Replacing System.Windows.Forms.WebBrowser with Microsoft.Web.WebView2.WinForms.WebView2 in WinForms apps

I am upgrading a WinForms C# .NET 4.8 Framework application and replacing the embedded browser System.Windows.Forms.WebBrowser with Microsoft.Web.WebView2.WinFo

Attempting to 'permanetly' save two user inputs into two seperate arrays, and display the array data in a listbox on a different form

Apologies I am a newbie, ill try to explain as best as I can. Im creating a game for a university assignment. My game is a maths game that asks the user maths q

Passing events to the parent panel

In a Windows Forms application, I want to create a UserControl that reacts to mouse events. But in some cases, I want the event to be passed to the parent that

Mouse Cursor on tablelayoutpanel

I have winform project that it has tablelayout panel. And i added pictureboxes to all cells. I want the mouse cursor style to cross while on the tablelayoutpane

Cannot display record to DataGridView in winforms

This is what my table "Item" look like in my database: Now, I want to display it inside my winforms application. My application include the main page that look

Crossthread databinding in NotifyPropertyChanged for DataGridView Control

When trying to update a displayTimer (duration for how long a specific orderline is taking), I get a Crossthread error in NotifyPropertyChanged for my DisplayTi

Problem with pictureboxes spawning and overlapping WINFORMS C#

I dont want the pictureboxes to spawn in each other or to overlap.

C# Console-Application with no console but winforms

We have an application that is a WinForms-Application. It accepts startup parameters and can perform certain jobs with no UI by using the command line. Now, we

C# WinForms | Can I detect specific Sounds with a Microphone Input and let my program detect that specific sound and respond to it?

I'm currently trying to make a C# programm that simulates a Dial-Up Connection. So this what the programm should do: When I play a DTMF Tone like 212 5678912 or

WinForm using webview2 with SSO

I have a client application that hosts a web browser control (WebView2). The client application is configured to use SSO so the current windows user is automati

Error Unabled to add User controls to a form

I get these two error messages, when trying to add a User Control to a Form. Worked fine for long, no problems. Now the Design won't show the already added User

Creating a KeyEventArgs field with the desired KeyCode value in C#

I wanna make an opportunity to rebind some buttons. I have "launchParametrs.txt" file so the KeyEventArgs field must get KeyCode from "Start: (bind button from

Fetching images from the CefBrowser - How many and what is their order?

I'm using the CefSharp browser to grab images off of an Html page and convert them to System.Drawing.Bitmaps. To do so, I've implemented a BrowserRequestHandler

First row is selected by default upon form loading

private void FormatdgvParts(DataGridView d) { d.SelectionMode = DataGridViewSelectionMode.FullRowSelect; d.MultiSelect = false; d.R

compare user draw to a bitmap defined

I'm trying to build an app like StrokePlus using bitmap to be able to check between two images if they're the same visually. The user can draw on the whole scre

How to add button to a specific DataGridView C# WinFrom

Hi, I am very new to C# and window forms. Just like this image showing, I added DataGridView_B to DataGridView_A, where DataGridView_B is usually invisible an

Hovering over a DataGridViewComboBoxColumn in a WinForms app in Windows 11 turns cell black (OK in Windows 10)

When we run our application on Windows 11 the DataGridView control seems to act differently. Hovering over a cell in a DataGridViewComboBoxColumn turns the cell

How to solve the infinite loop in reportviewer? winforms

I am working with reportviewer in visual studio 2010, but when I open the report for the first time the data loads correctly, but when I change to another repor