Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Knowledge Base > Visual Basic.Net > Miscellaneous


Search:
What's New - What's Hot
HOW TO: Connect to a Database and Run a Command Using VB .NET - Q301075     
Total Hits: 1458  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes how to use ActiveX Data Objects (ADO) .NET to connect to a database and run a command (such as UPDATE, INSERT and DELETE) by using a Visual Basic .NET console application....

How to: Get Specific Versions of a DataRow  Version: 0.00     Price: $0.00  
Total Hits: 139  |  Today: 0Author: 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: Define a Generic Method with Reflection Emit     
Total Hits: 132  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The first procedure shows how to create a simple generic method with two type parameters, and how to apply class constraints, interface constraints, and special constraints to the type parameters. The second procedure shows how to emit the method body, and how to use the type parameters of the generic method to create instances of generic types and to call their methods....

How to: Define a Generic Type with Reflection Emit     
Total Hits: 118  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This topic shows how to create a simple generic type with two type parameters, how to apply class constraints, interface constraints, and special constraints to the type parameters, and how to create members that use the type parameters of the class as parameter types and return types....

How To Retrieve Values from DataRows That Are Marked "Deleted" by Using Visual Basic .NET     
Total Hits: 141  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

You can use ADO.NET DataTable objects to delete rows and mark them as "Deleted." This article demonstrates how to retrieve the values of a row whose DataRowState enumeration is set to DataRowState.Deleted.You can use the DataRowVersion.Original enumeration value to retrieve the values of a row that has the DataRowState.Deleted enumeration value. You must use DataRowVersion.Original because the values of a deleted row are not available for the current state (DataRowVersion.Current)....

HOW TO: Locate a Specified DataRow by Using the Find Method of DataRowCollection in Visual Basic .NET     
Total Hits: 122  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The Find method queries the primary key column of the DataTable, and locates the record that exactly matches the value that is passed in the search criteria. If the DataTable does not have a primary key, a MissingPrimaryKeyException is raised. The Find method has the following limitations:
• The Find method is not case sensitive.
• You cannot use Wildcard characters in the Find method. For example, when you use the following code, you may not find all the rows starting with Ch. Instead, yo...

How To Render DataTable Columns as XML Attributes Instead of Elements by Using Visual Basic .NET     
Total Hits: 139  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to render DataTable columns as Extensible Markup Language (XML) attributes. A DataTable represents one table of in-memory relational data. You can create a DataTable and use it independently, or other Microsoft .NET Framework objects can use the DataTable, most commonly as a member of a DataSet object....

How to make a DLL with VB.NET Standard Edition     
Total Hits: 177  |  Today: 0Author: George Poth      Rating:  
Read Reviews | Write Review |  Your Rating: 

When you ask in forums which edition of Microsoft Visual Basic .NET you should buy, most experienced programmers will tell you to go for anything but the standard edition. Why? Well, they say that you can't make .dll's and all the good pro stuff with the standard edition. I got news for you: you can make your .dll's with the standard edition. In fact, you can use the Class Library, Windows Control Library, Web Control Library, yep, and even Windows Service....

How to marshal an object to a remote server by reference by using Visual Basic 2005 or Visual Basic .NET     
Total Hits: 143  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to marshal an object by reference to a remote server. When you marshal an object by reference, the runtime creates a transparent proxy so that the server can make calls back to the object on the client. The only thing that is sent to the server is the proxy. The proxy marshals the call backs to the client. This article is broken into three parts: The server object, the server application, and the client application....

HOW TO: Create a Remote Server by Using Visual Basic .NET (Q300951)     
Total Hits: 476  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article illustrates how to create a simple, remote server that another application can access. The application that accesses this server can be located on the same computer, on a different computer, or on a different network. The remote server is broken into two parts: the server object and the server application. The server object is the object with which the client communicates, and the server application is used to register the server object with the Remoting runtime....

HOW TO: Use the DialogResult Property in Visual Basic .NET (Q315711)      
Total Hits: 578  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to use the DialogResult property in Windows Forms. You can use the DialogResult property to create dialog boxes in Windows applications.

...

HOW TO: Automate Internet Explorer to POST Form Data (Q311293)      
Total Hits: 1353  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

An automation controller, such as Microsoft Visual Basic, can automate Microsoft Internet Explorer to send data by using the POST method to an HTTP server (such as Microsoft Internet Information Services [IIS]). This article explains how to automate Internet Explorer to perform a POST of form data from a Visual Basic .NET application. Although the examples illustrate automation of the whole Internet Explorer application, the same techniques can be applied to the Web Browser ActiveX control when ...

HOW TO: Use the Visual Basic Upgrade Wizard (Q317885)      
Total Hits: 1781  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This step-by-step article explains how to create a simple Visual Basic 6.0 application, and then upgrade the application to Visual Basic .NET by using the Visual Basic Upgrade Wizard in Visual Studio .NET.
...

HOW TO: Compute and Compare Hash Values Using Visual Basic .NET (Q301053 )     
Total Hits: 2309  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

The System.Security.Cryptography classes in the Microsoft .NET Framework make it easy to compute a hash value for your source data. This article shows how to obtain a hash value and how to compare two hash values to check whether they are identical....

How to: Change Cached Data in a Workbook on a Server  Version: 0.00     Price: $0.00  
Total Hits: 153  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

You can change data in the cache of a Microsoft Office Excel workbook that is part of a document-level project without running Excel. This makes it possible to change data in Excel workbooks that are stored on a server.

The code to change the data must be outside of the main project assembly that is associated with the document you are working with, for example in an ASP.NET Web page, a console application, or a Windows Forms application....

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

Each row in a data table has a RowState property that keeps track of the current state of that row using the values in the DataRowState enumeration. You can return changed rows from a dataset or data table by calling the GetChanges method of a DataSet or DataTable. You can verify changes exist prior to calling GetChanges by calling the HasChanges method of a dataset. For more information on HasChanges, see How to: Check for Changed Rows....

How to: Locate a Specific Row in a DataTable  Version: 0.00     Price: $0.00  
Total Hits: 54  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Most applications that consume data need to access specific records that satisfy some kind of criteria. In order to find a particular row in a dataset, you can invoke the Find method of the DataRowCollection object. If the primary key exists, then a DataRow object is returned. If the primary key cannot be found, then a null value is returned....

How to: Add Validation to Entity Classes  Version: 0.00     Price: $0.00  
Total Hits: 33  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Validating entity classes is the process of confirming that the values entered into data objects comply with the constraints in an object's schema, and also to the rules established for the application. Validating data before you send updates to the underlying database is a good practice that reduces errors. It also reduces the potential number of round trips between an application and the database....

How to: Use an InPlaceMetadataWriter to Change Metadata     
Total Hits: 218  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The following example uses an InplaceBitmapMetadataWriter to write metadata into an image. For the complete sample, see BitmapMetadata Sample....


1  2  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net