Articles of level

A TextBox control is used to display, or accept as input, a single line or multiline of text. In many situations you need to enter only numeric only values in the Textbox. Here you can see some useful techniques that accept only numbers in the textbox.

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 pick a color from the color dialog box, you need to create an instance of the ColorDialog box and invoke to the ShowDialog() method. The code to display the color dialog box and set the BackColor property of the Label control similar to the color selected in the color dialog box control is:

There are not that many tools out there that will support both client-side and server-side debugging. Below is some information on the client-side debuggers on some of the commonly used browsers-
Firefox/Mozilla/Netscape - Have a built in debugger Venkman which can be helpful but there is a Firefox add on known as FireBug which provides all the information and AJAX developer would ever need including the ability to inspect the browser DOM, console access to the JavaScript runtime in the browser, and the ability to see the HTTP requests and responses (including those made by an XMLHttpRequest). I tend to develop my applications initially on Firefox using Firebug then venture out to the other browsers. 
Safari - Has a debugger which needs to be enabled. See the Safari FAQ for details. 
Internet Explorer - There is MSDN Documentation on debugging JavaScript. A developer toolbar for Internet Explorer may also be helpful. While debuggers help a common technique knowing as "Alert Debugging" may be used. In this case you place "alert()" function calls inline much like you would a System.out.println. While a little primitive it works for most basic cases. Some frameworks such as Dojo provide APIs for tracking debug statements.

In the code chamber, you need to write the code, like whatever the TextBox contains is printed in the form of the bardcode on a button click. To make this application you first need to install the IDAutomationCode39.exe file. Open your code section and start writing the following code so that you can get to the solution.

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

In this article I will show you how to make Login Form in Windows Application using C# where I will enter a dummy data in the form of username and password and will check that the entered data by the user is correct or not. if it is correct, the user gets into his account.

The DateTimePicker control offers a more compact user interface than the MonthCalendar control by displaying the current date in a text box that is similar to a drop-down combo box control. When the user clicks the down arrow, a MonthCalendar control is displayed. Unlike the MonthCalendar control discussed in the previous section, the DateTimePicker control displays only a single month at a time.A DateTimePicker control displaying a month calendar.The date reflected by the control is available through the Value property, which is typed as a DateTime object, as shown here:
DateTime selectedDate = startTimeDatePicker.Value;
In addition to the Value property, which can be used to set or read the current status of the DateTimePicker control, the Value property’s type has the following read-only properties, which can be used to retrieve time and date components:

  • Year
  • Month
  • Day
  • DayOfWeek
  • Hour
  • Minute
  • Second
  • Millisecond

Displaying 1 of 2Next
1 2
Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*