control

Add a Button Control Pragrmatically in C#

Submitted by donbermoy on
Today in C#, we will create a program that will add a button pragmatically in windows form using C#. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2. You don't have to design a button in your form because we will just code to have a button when loading the form. 3.

Get Name of Multiple TextBoxes Control in C#

Submitted by donbermoy on
This is a simple tutorial in which we are going to get all the name of multiple textboxes in C# using a loop. So, now let's start this tutorial! 1. Let's start with creating a Windows Form Application in C# for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2. Drag any textbox that you want and only one Button.

JTextArea Component in Java GUI

Submitted by donbermoy on
This is a tutorial on how to use the JTextArea Component of Java. JTextArea is different from JTextField. Unlike JTextField that will only be used for one line of text, the JTextArea Component can hold more than one line to display text. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of jTextArea.java. 2.

How to Bind Data to the Windows Forms DataGridView Control

Submitted by admin on
[inline:DataGridView Control.jpg=How to Bind Data to the Windows Forms Datagridview Control] The DataGridView control provides a customizable table for displaying data. The DataGridView class allows customization of cells, rows, columns, and borders through the use of properties such as DefaultCellStyle, ColumnHeadersDefaultCellStyle, CellBorderStyle, and GridColor. (Source: MSDN)