|
ExplodeForm - Showing a form with an explosion effect
|
Total Hit (3978) |
«Code LangId=2»
' Show a form with an explosion effect.
' the numSteps parameter is the number of steps to increase the form size from
' 0 to the original size
' the stepDuration argument is the number of milliseconds between each step
' Example:
' Private Sub Form1_Activated(...) Handles
....Read More |
Rating
|
|
|
|
|
IsValidUsZip - Validating a US ZIP code
|
Total Hit (2792) |
«Code LangId=2»
' Validate a US ZIP code
' Example:
' MessageBox.Show(IsValidUsZip("12345")) ' => True
' MessageBox.Show(IsValidUsZip("12345-1234")) ' => True
' MessageBox.Show(IsValidUsZip("12345-12345")) ' => False
Function IsValidUsZip(ByVal zip As String) As Boolean
Re
....Read More |
Rating
|
|
|
IsImageFile - Returns whether the file is an image
|
Total Hit (3668) |
«Code LangId=2»
' Returns a boolean indicating whether the file is an image
Function IsImageFile(ByVal filePath As String) As Boolean
' add more extensions if you wish
Dim extensions() As String = New String() {".bmp", ".jpg", ".jpeg", ".gif", _
".tif", ".tiff", ".png", ".tga",
....Read More |
Rating
|
|
|
SaveTextFile - Save or append text to a file
|
Total Hit (3658) |
«Code LangId=2»
' Saves a text file. If the destination file already exists,
' its content can be replaced, or the new content can be appended
' at the end of the file, according to the last parameter
' Note: the destination directory must exist, otherwise the file is not
' saved and th
....Read More |
Rating
|
|
|
|
|
|
|
|
|
|
Make read-only properties visible to Web Services clients
|
Total Hit (2052) |
Read-only and write-only properties in a Web Service class aren't visible to the Web Service client. The reason is that XML serialization doesn't support these sort of properties, and read-only and write-only properties aren't included in the Web Services Description Language (WSDL) documentation.
....Read More |
Rating
|
|
|
Determine type and number of CPUs
|
Total Hit (4424) |
There is no method call that directly retuns information about the number and type of installed CPU(s). However, this information is stored in a few environment variables, so it's just a matter of extracting it with the Environment.GetEnvironmentVariable method:
«Code LangId=2»
' this code is me
....Read More |
Rating
|
|
|
ArrayInsertElement - Inserting an element in any type of array
|
Total Hit (2615) |
«Code LangId=2»' A generic routine that inserts an element in any type of array.
' Example: inserting an entry of value 5 between the 1st and 2nd entry of the
' array arr
' ArrayInsertElement(arr, 1, 5)
Sub ArrayInsertElement(ByVal arr As Array, ByVal index As Integer, _
Optional By
....Read More |
Rating
|
|
|
|
|
|
|
How Do I...Build a .NET COM Server Callable from COM clients?
|
Total Hit (1671) |
This section explains how to build and install managed code that will be used from COM applications. The steps involved in the build process are as follows:
«LI»Write and compile the managed code.
«LI»Generate a type library for the assembly using the tlbexp.exe utility.
«LI»Install and regi
....Read More |
Rating
|
|
|
Custom Actions - Part 2
|
Total Hit (1889) |
Custom Actions are deployment projects .NET programs written by your team that execute near the end of the installation process. You can use them to perform installation shores hard to implement with the existing features exposed by the setup project, in this order of ideas a custom action can insta
....Read More |
Rating
|
|
|
|
Using Visual Basic .NET to Access Google's Web Service
|
Total Hit (1571) |
Learn how to access the Google Web APIs service from a Visual Basic .NET Windows front end. This article describes how to call a SOAP Web service, execute a Google search, access a page in Google's cache, and call the Google spell checker.
|
Rating
|
|
|
Display Multiple reports using single ReportViewer control
|
Total Hit (1110) |
It is easy to get the ReportViewer Control to report off of a DataSet that is set during design time. But what if you want to use code to cause one ReportViewer control to display many totally different reports using your own O/R mapper collection instead? It is not easy to see how to do this, but i
....Read More |
Rating
|
|
|
|
.NET Outlook Style ListBar Control
|
Total Hit (1801) |
The .NET ListBar control aims to provide the most accurate reproduction of the Microsoft Outlook bar control. All the features of the Outlook bar control are supported and more: in particular the control provides nicer drag-drop operation, has more display modes and provides an extensible object mod
....Read More |
Rating
|
|
|
|
How Do I...use multiple XmlReaders
|
Total Hit (1020) |
In some situations, you may have one reader that reads part of an XML document, and one or more other readers that read the rest of the document. For example, an e-commerce ordering system may have orders submitted as XML documents. In processing these orders, one reader may process information at t
....Read More |
Rating
|
|
|