Category "winforms"

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

How can I Delete an Item from a Data Grid View and Reflect the Deletion in the MySql Database

UPDATE There has been quite a few changes in the code, but the problem still persists. I was able to delete from the customer table (and the entire row on the D

Run a different installer with my ClickOnce installer

I was searching about how to do this but no avail. I have a Winforms application and published it by mean of ClickOnce. It works, however, that application uses

How to use the Monaco editor inside a Windows Forms application?

I have a windows form app (.net framework) and I want to use Monaco editor inside it. Scouring the internet does the provide much help and stackoverflow does no

Winforms-Configuration Manager fails to replace the App.Config's AttachDbFilename |DataDirectory| with the application startup folder

App.Config <?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add name="myConnectionName"

How to make the graphics for a Graph theory undirected graph

I have been trying for the last few days to implement a graph into a C# Windows Forms app, but I have been unsuccessful at this task. I haven't been able to fin

C# - Theard.Sleep skips over lines of code

I'm working on a small C# Windows Form application. In this application, I've used Thread.Sleep to wait on the current screen before moving to the next one. The

How to export a DevExpress PivotGridControl to Excel

I have a button click that attempts to export a DevExpress pivot grid to an excel file however when you open the file in excel or google sheets it zeroes some o

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