Category "winforms"

MouseDown Event After Seconds

I'm working on a project that have a touchscreen monitor. I have 4 picturebox with two event(Mouse Down , Mouse click ). in this case, when i click on the pictu

How to detect whether the Mouse Hovers above a drawn line in C#

I have a panel on a form. On this panel there are drawn a few lines. I would like to know how to detect when the Mouse is above one of the lines and get the det

sendkeys doesn't work inside github API (command line)

I'm trying to automate the creating of remote repos using powershell and gh repo create and the first thing that happens after running that command is an option

Create a function that shows user controls in a panel

I created several user controls that i want to display on a main panel. Thus, I have this function that takes in input the control I want to display by setting

Create a function that shows user controls in a panel

I created several user controls that i want to display on a main panel. Thus, I have this function that takes in input the control I want to display by setting

Is it possible to show Hyperlink in System.Windows.Forms.NotifyIcon?

I'm using System.Windows.Forms.NotifyIcon in WPF app, I need to show Hyperlink in System.Windows.Forms.NotifyIcon, I tried to set the Hyperlink in BalloonTipTex

How to disable scrolling of comboBox from keys arrow Up\Down when it closed?

The arrow keys should scroll only pictureBox (placed in panel). It works fine. But it also scroll through comboBox items though it is closed (droppedUp). How to

How to get the value of date cell datagridview into the datetimepicker?

First thing go to datagridview event MouseClick, and write the code below: DateTime dateValueOftheCell = DateTime.Parse(dataGridView1.CurrentRow.Cells[4].Value.

Create a Powershell ListBox Sticky Notes Backup Utility

I'm building a PowerShell utility that will backup and restore sticky notes using a powershell script to pull the Get-localuser command from a local device into

DLLs not working after installing Visual Studio Setup Project

I have a C# project that I am creating which uses a few DLLs located in a separate folder in my project. I have added these files into the application folder on

How to check if some text in a RichTextBox is selected

I am creating a text editor and I want to add copy, paste and cut functions in the Edit Menu. I want these MenuItems to only to be enabled when there's an activ

How to elevate my winform privileges (at runtime) to admin on button press

I am developing an application that should not require elevated privileges unless the user wants to change a network adapter's IP address. I would like to allow

c# how to add Button to array and set text of all buttons

Hi my problem is i want to add buttons to array size: 65 and there is a problem here's my code: Button[] buttonsa = new Button[65]; for (int d = 0; d <= but

Set a default form backgroundimage in Visual Studio WYSIWYG editor

Context Viusal Studio 2019, Windows 11 .NET 5.0 Winforms Project I have a VB.NET application with 3 form backgroundimage depending on working environment (Produ

Why would console display different received string than message box in c#?

This is a follow up to my previous question. But it appears that for a reason I don't understand, the os is interpreting a received string differently than a me

BackgroundWorker.IsBusy staying true at all times during serial port operations?

I am working on a Data Acquisition and Logging project which has two windows (forms). On the main window, there is a trigger button which opens another form (se

How to open the Property dialog of selected objects in Management Console?

I am searching for the possibility to open default property dialogues for particular Windows objects, like: the property dialogue for a particular service in se

Why materialSkin.2 buttons are kind of fixed design winforms?

i have a problem when i want to edit a button from MaterialSkin.2 winforms, why this is happening, are they fixed from developers or what

How does one create text that can overlay all windows like the Windows Activation Watermark?

I would like to create a count down timer that displays in the lower right hand of the screen with slightly transparent text that can be seen no matter what you

Windows forms c# connect to specific accesspoint by BSSID

I have a windows form written in c#. I've made a listview that finds and sums up every wifi network it can detect, giving the SSID, BSSID, and more. I'm using M