Category "winforms"

Why are these controls not visible in designer?

In winform, why does a tabcontrol not visible in designer? I have tried a simple example where a tabcontrol is visible in designer whether it's visibility is f

Powershell GUI auto generate buttons with functions

TLDR: How can I make a generated variable, and then call that variable later within a Add_click. I am sure some kind of serialization of each Object/button I ma

Play video using DirectX in C# WinForm

I want to achieve almost something similar here. I want a control that supports both images or video. This will play for some duration. I am able to show the v

Validate 5 digits in the textbox

I am trying to make the textbox valid when just the user writes 5 digits but the problem is if I for example input (11111) it will be correct, the program will

Best Practice winforms async/await keywords

Testing a bit TPL. I use this code and it works: async void button1_Click(object sender, EventArgs e) { MyClass2 mc2 = new MyClass2(); la

Infragistics Selected Node

Would like to know if I am the error or I have encountered a bug. I have a grid with parents and children. I have made buttons to move the nodes from top to bot

Adding launch conditions to Microsoft Visual Studio Installer Projects (check app is running)

I'm using Microsoft Visual Studio Installer Projects for my Hybrid Widndows Forms/WPF project. I need to make sure the user has closed the Application (an older

Split an Image into different PictureBoxes

I have a Image with size 187x16 which contain 10 smaller Images in a row. I want split those Images into 10 different PictureBoxes. Original Image: Dim

Running .dtsx file via command line programmatically from a winform c#

I am new to programming. I was hoping for some help to correct the below code. I have a WinForms application using an Azure SQL database. overall I am trying to

Enabling and Disabling DataGridView button cell

I have made a DataGridView in a Windows Form with the Name serverListand then added a selection of columns then at the end of each row I have added a button cel

Is there a way to dynamically change the text of a textBox in Visual Studio with C# so that the value is a sum of values from other textboxes?

I need to have a text box that dynamically changes as values in other text boxes are being changed, and the value (would be an integer converted to string) of t

C# Winform Webbrowser not updating after document text update

Good Morning, I have a Web browser embedded within a C# winform. When loading the web-browser, it loads in a local file and displays the page with no issues. I

Textbox text disappears when transparency turned on and control loses focus

I have researched creating a custom winforms Textbox that allows a transparent background. I read the StackOverflow post: Link to post. In that post dkiefer

Check Keyboard Input Winforms

I was wondering if instead of doing this protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode == Keys.A) Console.WriteLine("The A key

'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I want to access root url of a Web application from a Windows forms Application. string rooturl = Billing_XML_WebTracking.WebForm1.RootUrl; string url = rootur

Placeholder in TextBox in Window Forms using VB.NET

I'm working on a Windows Forms application in VB.NET and I am currently making a login screen using labels and TextBoxes. What I need is the Placeholder in Text

Hiding particular datagridview cell in c#

I have a datagridview in windows form. Datagridview looks like below: In this, have one Checkbox column, two textbox column. My requirement is need to hide che

Add panels dynamically to form

I'm trying to add panels to a form according to the ids quantity that is received. At running, the panels are added to the form, but only the first one has the

Focus a child Control of a User Control when a combination of keys is pressed

I have a Form that contains a Panel where I placed a UserControl. I want that when the Ctrl+F Keys combination is pressed, a TextBox Control, child of my UserCo

Transparent background image for Form - Smooth edge shape for the Form

When I tried from with transparent background, it's not completely transparent. I tried two code blocks for this issue. First i tried like this code: public F