Articles of level

Intermediate

We use one GridView and a database. We enter some data into the database and then bind that data to a GridView.


The RichTextBox control contains the Lines array property, which displays one item of an array in a separate line. Each line entry has a Length property, which can be used to accurately position the cursor at a character, as shown in the following code :

To load a Picture into the PictureBox control drag a PictureBox control and a Command Button from the Toolbox. When you click the Command Button, the picture you specified will be loaded into the Picturebox. The following code is a demonstration: 

ErrorProvider control is used in Windows Forms application. It is like Validation Control for ASP.NET pages. ErrorProvider control is used to provide validations in Windows forms and display user friendly messages to the user if the validation fails.
E.g.If we went to validate the textBox1 should be empty, then we can validate as below
You need to place the errorprovide control on the form

The ProgressBar control is used to provide visual feedback to the user regarding the status of a task, usually for tasks that exceed a short duration. For example, a ProgressBar control can be used to display the progress of a task that copies a number of files or populates a database table.The ProgressBar control consists of a bar that’s filled as an operation progresses. Because the progress bar is often used to display the percentage of a task that’s been completed, the default minimum and maximum values are optimized for this common case. 
The default minimum value is set to 0, and the default maximum value is set to 100.

Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*