Search - Articles - Dev Forums - Favorites - Member Login  
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Sunday, March 14, 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 > Visual Basic.Net
Search:
What's New - What's Hot
Listings for Automation Automation (15)
Listings for Base Class Libraries Base Class Libraries (8)
Listings for Compiling Compiling (2)
Listings for Component Component (12)
More Categories for Database Database (102)
Listings for Debugging Debugging (2)
Listings for Error Handling Error Handling (8)
More Categories for Errors and Bugs Errors and Bugs (69)
Listings for Exceptions Exceptions (5)
More Categories for File Management File Management (12)
Listings for Migration to VB.NET Migration to VB.NET (12)
Listings for Miscellaneous Miscellaneous (41)
Listings for Object Pooling Object Pooling (13)
More Categories for Office Documents Office Documents (23)
Listings for Operating System Operating System (17)
Listings for Reference Reference (2)
Listings for Regular Expression Regular Expression (4)
Listings for Server Application Server Application (8)
More Categories for Server Controls Server Controls (20)
Listings for Threading Threading (7)
Listings for User Controls User Controls (11)
Listings for VB.Net and XML VB.Net and XML (70)
Listings for Windows Form Windows Form (33)
 


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

How to: Access Members of a Web Server Control's Naming Container    Version: 0.00       Price: $0.00   
Total Hits: 13  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Set HTML Server Control Properties Programmatically    Version: 0.00       Price: $0.00   
Total Hits: 9  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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...

How to: Retrieve Resource Values Programmatically    Version: 0.00       Price: $0.00   
Total Hits: 9  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Copy Images    Version: 0.00       Price: $0.00   
Total Hits: 11  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

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

How to: Provide a Toolbox Bitmap for a Control    Version: 0.00       Price: $0.00   
Total Hits: 14  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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#....

How to: Control the Output Window    Version: 0.00       Price: $0.00   
Total Hits: 9  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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...

How to: Handle Concurrency Errors    Version: 0.00       Price: $0.00   
Total Hits: 14  |  Today: 1 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Fill a Dataset with Data    Version: 0.00       Price: $0.00   
Total Hits: 12  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

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

How to: Turn Off Constraints While Filling a Dataset    Version: 0.00       Price: $0.00   
Total Hits: 15  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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...



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