Search - Articles - Dev Forums - Favorites - Member Login  
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Thursday, March 18, 2010

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Knowledge Base > C-Sharp
Search:
What's New - What's Hot
Listings for About C-Sharp About C-Sharp (8)
Listings for Automation Automation (14)
Listings for C# and XML C# and XML (30)
More Categories for Database Database (72)
Listings for Errors Errors (1)
More Categories for Errors and Bugs Errors and Bugs (25)
Listings for Exception Handling Exception Handling (3)
More Categories for File Management File Management (2)
Listings for Miscellaneous Miscellaneous (28)
More Categories for Office Documents Office Documents (6)
More Categories for Server Controls Server Controls (16)
Listings for Windows Form Windows Form (29)


How to: Create a Custom Double-Click Event    Version: 0.00       Price: $0.00   
Total Hits: 16  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Access Design-Time Support in Windows Forms    Version: 0.00       Price: $0.00   
Total Hits: 22  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Access Design-Time Support in Windows Forms    Version: 0.00       Price: $0.00   
Total Hits: 12  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Access Design-Time Support in Windows Forms    Version: 0.00       Price: $0.00   
Total Hits: 13  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Play a Wave File Using Platform Invoke (Devices)    Version: 0.00       Price: $0.00   
Total Hits: 10  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Implement Events in Your Class    Version: 0.00       Price: $0.00   
Total Hits: 15  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Add Rows to a DataTable    Version: 0.00       Price: $0.00   
Total Hits: 15  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Get Specific Versions of a DataRow    Version: 0.00       Price: $0.00   
Total Hits: 15  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Insert New Records into a Database    Version: 0.00       Price: $0.00   
Total Hits: 11  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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)....

How to: Update Records in a Database    Version: 0.00       Price: $0.00   
Total Hits: 15  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Save Data from an Object to a Database    Version: 0.00       Price: $0.00   
Total Hits: 11  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Commit In-Process Edits on Data-Bound Controls Before Saving Data    Version: 0.00       Price: $0.00   
Total Hits: 11  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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...



DevASP.Net - Disclaimer - Privacy
© 2002-2010 DevASP.net