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

The .NET Compact Framework does not support the Windows Forms DoubleClick event for a button. But you can create a control that derives from the Button class to implement the event....
|
|
|
|
Total Hits: 22 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Your custom components and controls are designable, which means they have settings that users can configure with a graphical user interface (UI) at design time. These settings usually affect instances of the component at run time.
If your class implements the IComponent interface, it can participate in a design environment like Visual Studio.
To access the design-time support provided by the .NET Framework, you need to complete the following steps....
|
|
|
|
Total Hits: 12 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Your custom components and controls are designable, which means they have settings that users can configure with a graphical user interface (UI) at design time. These settings usually affect instances of the component at run time.
If your class implements the IComponent interface, it can participate in a design environment like Visual Studio....
|
|
|
|
Total Hits: 13 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Your custom components and controls are designable, which means they have settings that users can configure with a graphical user interface (UI) at design time. These settings usually affect instances of the component at run time.
If your class implements the IComponent interface, it can participate in a design environment like Visual Studio.
To access the design-time support provided by the .NET Framework, you need to complete the following steps....
|
|
|
|
Total Hits: 10 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

This example code plays a sound file by using PlaySound on the mobile device. This code uses System.Runtime.InteropServices to invoke the PlaySound method of the Compact Framework's CoreDll.DLL....
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The following procedures describe how to implement an event in a class. The first procedure implements an event that does not have associated data; it uses the classes System..::.EventArgs and System..::.EventHandler for the event data and delegate handler. The second procedure implements an event with custom data; it defines custom classes for the event data and the event delegate handler....
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

To add new records into a dataset, a new data row must be created and added to the DataRow collection (Rows) of a DataTable in the dataset. The following procedures show how to create a new row and insert it into a DataTable. Examples are provided for both typed and untyped datasets....
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

When changes are made to data rows, the dataset retains both the original (Original) and new (Current) versions of the row. For example, before calling the AcceptChanges method, your application can access the different versions of a record (as defined in the DataRowVersion enumeration) and process the changes accordingly....
|
|
|
|
Total Hits: 11 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

To insert new records into a database, you can use the TableAdapter.Update method, or one of the TableAdapter's DBDirect methods (specifically the TableAdapter.Insert method). For more information, see TableAdapter Overview.
If your application does not use TableAdapters, you can use command objects to interact and insert new records in your database (for example, SqlCommand)....
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can use the TableAdapter.Update method to update (edit) records in a database. The TableAdapter.Update method provides several overloads that perform different operations depending on the parameters passed in. It is important to understand the results of calling these different method signatures....
|
|
|
|
Total Hits: 11 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can save data in objects to a database by passing the values from your object to one of the TableAdapter's DBDirect methods (for example, TableAdapter.Insert). For more information, see TableAdapter Overview. To save data from a collection of objects, loop through the collection of objects (for example, a for-next loop) and send the values for each object to the database using one of the TableAdapter's DBDirect methods....
|
|
|
|
Total Hits: 11 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

When editing values in data-bound controls, users must navigate off the current record to commit the updated value to the underlying data source that the control is bound to. When you drag items from the Data Sources Window onto a form, the first item that you drop generates code into the save button click event of the BindingNavigator. This code calls the EndEdit method of the BindingSource. Therefore, the call to the EndEdit method is generated only for the first BindingSource that is added to...
|
|
|
|
|
|