|
|
|
|
|
Total Hits: 6 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

To create a button with an image, you must create a custom control that derives from the Windows Forms Control class. To create a button with an image
1.
Create a class that derives from the System.Windows.Forms..::.Control class. 2.
Define properties in the class for button images that show a pressed and not pressed state. 3.
Use the Invalidate method to cause the form to repaint when the button is clicked. 4.
Ov...
|
|
|
|
Total Hits: 13 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

At times, you need to access properties or methods of a control's naming container. For example, during data binding, the naming container makes available a DataItem property containing the data to which controls are bound. You can access the containing control in different ways, depending on context....
|
|
|
|
Total Hits: 9 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

HTML server controls are of two slightly different types. The HTML elements most commonly used in forms are available as individual HTML server controls, such as HtmlInputText, HtmlInputButton, HtmlTable, and so on. These HTML server controls expose their own, control-specific properties that map directly to HTML attributes. However, any HTML element can be converted to a control. In that case, the element becomes an HtmlGenericControl with base class properties such as TagName, Visible, and Inn...
|
|
|
|
Total Hits: 9 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can use declarative syntax to set the values of ASP.NET server control properties to a resource value. Alternatively, you can retrieve resource values programmatically. You might do this if the resource value is not known at design time or if you want to set the resource value based on a run-time condition....
|
|
|
|
Total Hits: 11 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The .NET Compact Framework does not support the Image..::.Clone method, but you can still copy images and parts of images. The following examples show how to do the following:
*
Define a method to create a bitmap. *
Define an overloaded method to copy a bitmap or to copy part of a bitmap. *
Call these methods and draw the images to the screen by overriding the OnPaint method of your form....
|
|
|
|
Total Hits: 9 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The predefined cultures provided with the .NET Framework and the Windows operating system provide information such as the language and calendar used in a country/region, and the text conventions used to format, parse, and compare strings, dates, and numbers. However, your application can create a custom culture if the predefined cultures do not provide the required information....
|
|
|
|
Total Hits: 14 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

If you want to have a special icon for your control appear in the Toolbox, you can specify a particular image by using the ToolboxBitmapAttribute. This class is an attribute, a special kind of class you can attach to other classes. For more information about attributes, see Attributes Overview in Visual Basic for Visual Basic and Attributes (C# Programming Guide) for Visual C#....
|
|
|
|
Total Hits: 9 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The Output window displays status messages for various features in the integrated development environment (IDE). These include build errors that occur when a project is compiled, and the results when T-SQL syntax in a stored procedure is checked against a target database. Certain IDE features, such as the external tools features or commands invoked in the Command window, deliver output to special Output Window panes. Output from external tools, such as .bat or .com files, normally displayed in t...
|
|
|
|
Total Hits: 14 | Today: 1
|
Author: Microsoft Corporation
|
Rating:
|
|

You can catch the DBConcurrencyException object to assist in resolving issues arising from concurrency violations. The DBConcurrencyException object returns the data row that caused the error. For more information, see DBConcurrencyException Members....
|
|
|
|
Total Hits: 12 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The phrase "filling a dataset with data" refers to loading data into the individual DataTable objects that make up the dataset. You fill the data tables by executing TableAdapter queries or by executing data adapter (for example, SqlDataAdapter) commands....
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

In order to edit an existing row in a DataTable, you need to locate the DataRow you want to edit, and then assign the updated values to the desired columns....
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

If a dataset contains constraints (such as a foreign-key constraint) it is possible to cause exceptions to be thrown depending on the order of operations performed against the dataset. For example, loading child records before loading the related parent records can violate the constraint and cause an exception. As soon as you load a child record the constraint checks for the related parent record and raises an error. If there were no mechanism to allow temporary constraint suspension, an error w...
|
|
|
|
|
|