I try change <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net6.0-
I am new in c# programming. I am trying to scrape data from div (I want to display temperature from web page in Forms application). This is my code: private voi
I am trying to create a new node when I right click on the treenode. private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { i
How can I toggle the checkbox of an item in a CheckedListbox if CheckOnClick is True, but SelectionMode is None..? If I set SelectionMode to One it works as exp
An object reference is required for the non-static field, method, or property 'Form1.level' public Form1( int level ) { this.level = level; playtune()
I'm trying to insert record into my database through a form made by Winforms. At first I try to insert it directly in SQL Server: INSERT INTO item (name, price,
From the JSON file, I was able to build a treeView in windows forms. Now I need to do the reverse process - save the tree to a JSON file after pressing the butt
I have a FlyoutPanel and I want to hide it according to a condition. For example: I want to hide it when a counter is equal to 3. What I have tried is: private
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
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
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
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
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
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
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
First thing go to datagridview event MouseClick, and write the code below: DateTime dateValueOftheCell = DateTime.Parse(dataGridView1.CurrentRow.Cells[4].Value.
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
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
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
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