Estimated lesson time: 45 minutes in .NET

Create QR Code in .NET Estimated lesson time: 45 minutes

Estimated lesson time: 45 minutes
Denso QR Bar Code Generator In Visual Studio .NET
Using Barcode printer for ASP.NET Control to generate, create QR Code 2d barcode image in ASP.NET applications.
www.OnBarcode.com
Create Barcode In VS .NET
Using Barcode creator for ASP.NET Control to generate, create bar code image in ASP.NET applications.
www.OnBarcode.com
User Assistance Controls and Components
QR Printer In Visual C#.NET
Using Barcode creator for VS .NET Control to generate, create QR Code JIS X 0510 image in .NET applications.
www.OnBarcode.com
Encode QR Code ISO/IEC18004 In .NET Framework
Using Barcode generation for .NET Control to generate, create QR Code image in .NET applications.
www.OnBarcode.com
The .NET Framework provides controls and components that provide a wide range of functionality when designing your user interface. In this lesson, you will learn about a variety of different controls and components that serve to enhance the user experience.
Printing QR Code ISO/IEC18004 In VB.NET
Using Barcode creation for .NET Control to generate, create QR Code 2d barcode image in .NET applications.
www.OnBarcode.com
Encoding Bar Code In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create barcode image in ASP.NET applications.
www.OnBarcode.com
The PropertyGrid Control
Printing EAN 13 In .NET Framework
Using Barcode maker for ASP.NET Control to generate, create GS1 - 13 image in ASP.NET applications.
www.OnBarcode.com
Create Code-128 In .NET Framework
Using Barcode encoder for ASP.NET Control to generate, create Code 128 Code Set B image in ASP.NET applications.
www.OnBarcode.com
The PropertyGrid control is essentially a user-configurable version of the Properties window in Visual Studio. The PropertyGrid control allows the user to set the proper ties of controls or components in a graphical interface at run time. Figure 12-1 shows the PropertyGrid control in a form.
Data Matrix Generation In VS .NET
Using Barcode creation for ASP.NET Control to generate, create DataMatrix image in ASP.NET applications.
www.OnBarcode.com
Encoding UPC Symbol In VS .NET
Using Barcode generation for ASP.NET Control to generate, create UPC-A Supplement 2 image in ASP.NET applications.
www.OnBarcode.com
Lesson 2: Using User Assistance Controls and Components
Code 39 Creator In .NET
Using Barcode generator for ASP.NET Control to generate, create Code 39 Extended image in ASP.NET applications.
www.OnBarcode.com
GTIN - 8 Maker In VS .NET
Using Barcode maker for ASP.NET Control to generate, create EAN 8 image in ASP.NET applications.
www.OnBarcode.com
Figure 12-1 The PropertyGrid control in a form
Code 3/9 Reader In None
Using Barcode reader for Software Control to read, scan read, scan image in Software applications.
www.OnBarcode.com
QR Code JIS X 0510 Printer In Java
Using Barcode generation for Java Control to generate, create QR Code image in Java applications.
www.OnBarcode.com
The PropertyGrid control that is shown in Figure 12-1 is configured to access the prop erties of Button1. At run time, the user can change properties for Button1 by changing the appropriate value in the PropertyGrid. Changes to properties in the PropertyGrid are immediately passed on to the affected control. The most important property for configuring the PropertyGrid control is the SelectedObject property. This property represents the control or class instance whose proper ties are exposed in the PropertyGrid. At run time, you can set the SelectedObject property to any object and allow the user to view its properties and set any read-write properties in the user interface. The following code example demonstrates how to set the SelectedObject property.
European Article Number 13 Creation In Objective-C
Using Barcode creator for iPhone Control to generate, create GTIN - 13 image in iPhone applications.
www.OnBarcode.com
Encode Bar Code In Objective-C
Using Barcode creator for iPhone Control to generate, create barcode image in iPhone applications.
www.OnBarcode.com
' VB PropertyGrid1.SelectedObject = Button1 // C# propertyGrid1.SelectedObject = button1;
Drawing EAN128 In None
Using Barcode generator for Software Control to generate, create GTIN - 128 image in Software applications.
www.OnBarcode.com
EAN 128 Creation In Java
Using Barcode creation for Android Control to generate, create EAN 128 image in Android applications.
www.OnBarcode.com
The PropertySort property determines how the properties displayed in the PropertyGrid are sorted and can be set to a member of the PropertySort enumeration. Table 12 3 displays the members of the PropertySort enumeration.
Draw EAN 128 In None
Using Barcode creator for Online Control to generate, create EAN / UCC - 13 image in Online applications.
www.OnBarcode.com
Decoding UPC-A Supplement 5 In Visual C#
Using Barcode scanner for .NET framework Control to read, scan read, scan image in Visual Studio .NET applications.
www.OnBarcode.com
12
Enhancing Usability
Table 12-3 PropertySort Enumeration Values
Value Alphabetical Categorized CategorizedAlphabetical NoSort
Description Properties are displayed in alphabetical order. Properties are sorted into categories. Properties are sorted into categories and then alphabetized. Properties are displayed in the order in which they are returned from the TypeDescriptor.
You can set the PropertySort property to a member of the PropertySort enumeration at run time, as shown in the following example.
' VB PropertyGrid1.PropertySort = PropertySort.NoSort // C# propertyGrid1.PropertySort = PropertySort.NoSort;
The ProgressBar Control
The ProgressBar control allows you to visually indicate progress for a time-consuming operation. For example, you might use a ProgressBar control to indicate the progress of a computationally intensive operation such as copying files or printing documents. The ProgessBar appears as a bar that is gradually filled in from left to right as a cue to indicate the progress of a task. Important properties of the ProgressBar control are shown in Table 12-4.
Table 12-4 Important Properties of the ProgressBar Control
Property Maximum
Description The maximum value of the ProgressBar control. This property represents the value that the Value property will return when the ProgressBar is completely full. The minimum value of the ProgressBar control. This property represents the value that the Value property will return when the ProgressBar is completely empty.
Minimum
Lesson 2: Using User Assistance Controls and Components
Table 12-4 Important Properties of the ProgressBar Control
Property Step Value
Description The amount that will be added to the Value property when the PerformStep method is called. The current value of the ProgressBar. The Value property will be a value between the Minimum and Maximum properties.
You can configure the ProgressBar by setting the Minimum and Maximum properties to represent the range of values that you want the ProgressBar to represent. When the Value property is the same value as the Minimum property, the ProgressBar control appears completely empty. Likewise, when the Value property is the same value as the Minimum property, the ProgressBar control appears completely filled. When the value is between the Minimum and the Maximum properties, the ProgressBar appears par tially filled, proportional to the value of the Value property. You can increment the ProgressBar by using either the PerformStep method or the Incre ment method. The PerformStep method causes the Value property to be advanced by the value of the Step property. Thus, if the Value property is currently 100 and the Step property is set to 10, calling the PerformStep method will advance the Value property to 110, and the UI will change correspondingly. You can also use the Increment method to advance the value by a specified amount, as shown in the following example:
' VB ' Adds 5 to the Value ProgressBar1.Increment(5) ' Adds 10 to the Value ProgressBar1.Increment(10) // C# // Adds 5 to the Value progressBar1.Increment(5); // Adds 10 to the Value progressBar1.Increment(10);
The following example demonstrates how to use the ProgressBar control to indicate progress to the user on a time-consuming task.
' VB ' Assumes a ProgressBar control named ProgressBar1 and a time-consuming ' method called CopyFiles. ProgressBar1.Minimum = 0 ProgressBar1.Maximum = 100 ProgressBar1.Step = 1
Copyright © OnBarcode.com . All rights reserved.