|
41-60 of 419
Previous
Next |
|
Dragging & dropping files on a form
by Marco Bellinaso
Most document-based applications typically allow to open a document file in two ways: with the Open File menu command / toolbar button, or by dragging and dropping the file from Windows Explorer to the application's window. This works with MS Word, Winzip and many other applications. ...
|
|
Parsing strings with a custom pattern into a Date variable
by Marco Bellinaso
The Parse static method of the Date type does a good job in parsing an input string and returning a Date instance. It recognizes and accepts the commonly used separators for the date part, such as / or -, and : for the time. It also has overloaded versions that allow you to specify the culture ...
|
|
Export Crystal Reports to PDF
by
Export Crystal Reports to PDF
|
|
CSV2DataTable - Importing the data contained in a CSV file into a new DataTable
by Marco Bellinaso
Import the data contained in a CSV file into a new DataTable. By default the values are Tab delimited, but you can use the second overload version to use any other string you want.
Example:
Dim table As DataTable = CSV2DataTable("D:\Users.txt")
DataGrid1.DataSource = table
|
|
DataTable2CSV - Saving a DataTable to a CSV file
by Marco Bellinaso
Save the input DataTable to a CSV file. By default the values are Tab delimited, but you can use the second overload version to use any other string you want.
Example:
Dim ds As New DataSet
SqlDataAdapter1.Fill(ds, "Users")
DataTable2CSV(ds.Tables("Users"), "D:\Users.txt")
|
|
FindFiles - Finding all files with a given filespec
by Francesco Balena
Finding all files with a given filespec into an ArrayList. Optionally scan also subdirectories of the input dir
Example:
Dim files As New ArrayList
FindFiles(files, "D:\Articles", "*.doc", True)
For Each file As String In files
Debug.WriteLine(file)
Next
|
|
LoadAssembly - Loading an assembly identified by the path or the partial name
by Francesco Balena
Load an assembly identified by the path or the partial name
Note: requires Imports System.Reflection
Examples:
1) Dim asm As [Assembly] = LoadAssembly("System.Web")
2) Dim asm As [Assembly] = LoadAssembly("C:\MyApp\MyAssembly.dll")
|
|
SortedListFromHashtables - Creating a sorted list that combines the keys from 2 hashtables
by Francesco Balena
Create a case-insensitive sorted list that combines the keys from two hashtables
Example:
Dim slist As SortedList = SortedListFromHashtables(hashTable1, hashTable2)
|
|
Convert from cubic feet to cubic meters, and vice versa
by Marco Bellinaso
Convert from cubic feet to cubic meters, and vice versa
|
|
Convert from cubic inches to cubic decimeters, and vice versa
by Marco Bellinaso
Convert from cubic inches to cubic decimeters, and vice versa
|
|
Convert from cubic yards to cubic meters, and vice versa
by Marco Bellinaso
Convert from cubic yards to cubic meters, and vice versa
|
|
Convert from grains to grams, and vice versa
by Marco Bellinaso
Convert from grains to grams, and vice versa
|
|
Convert from imperial gallons to liters, and vice versa
by Marco Bellinaso
Convert from imperial gallons to liters, and vice versa
|
|
Convert from inches to centimeters, and vice versa
by Marco Bellinaso
Convert from inches to centimeters, and vice versa
|
|
Convert from ounces to grams, and vice versa
by Marco Bellinaso
Convert from ounces to grams, and vice versa
|
|
Convert from pints to cubic decimeters, and vice versa
by Marco Bellinaso
Convert from pints to cubic decimeters, and vice versa
|
|
Convert from square feet to square meters, and vice versa
by Marco Bellinaso
Convert from square feet to square meters, and vice versa
|
|
Convert from square inches to square centimeters, and vice versa
by Marco Bellinaso
Convert from square inches to square centimeters, and vice versa
|
|
Convert from square yards to square meters, and vice versa
by Marco Bellinaso
Convert from square yards to square meters, and vice versa
|
|
Convert from US gallons to liters, and vice versa
by Marco Bellinaso
Convert from US gallons to liters, and vice versa
|
|
41-60 of 419
Previous
Next |