Page Inclusion (Screen Scraping)
-15
Simple loop through datatable
6
This is a function that receives a dataTable and return it in a pivoted way.
8
Converts a string representation of a number with any base(binary, octal, decimal, hexadecimal, up to base 36) to a long int.
8
Convert an ebcdic buffer to an ascii buffer.
9
Set the read-only attribute of a file to true or false.
9
Below is a bit of code which sets up drag and drop in a treeview. This is handy for if you have a list of items that can be sorted by the user.
Here is a bit of code to demonstrate how to do this. First create a new Windows executable project. Drop a TreeView component on the form, and let's name it 'myTree' for this demonstration. Go ahead and populate it with some dummy data; enough data to see the dragging and dropping in action. You will need a variable global to the form's scope.
private TreeNode sourceNode;
This is used to track the item we are dragging in our TreeView. Then define the event handlers listed below.
Here is a bit of code to demonstrate how to do this. First create a new Windows executable project. Drop a TreeView component on the form, and let's name it 'myTree' for this demonstration. Go ahead and populate it with some dummy data; enough data to see the dragging and dropping in action. You will need a variable global to the form's scope.
private TreeNode sourceNode;
This is used to track the item we are dragging in our TreeView. Then define the event handlers listed below.
-9
Write a set of bytes into a so-called binary file. The point is that we use BinaryWriter here and we have a byte array as input.
-8
A function to determine if the input filename is valid on Win32 platforms (that is, it does not include invalid characters, such as :\?...)
6
Write a set of bytes into a 'so-called' binary file. The point is that we use BinaryWriter here and we have a byte array as input.
13
This snippet effectively reads an XML document using XPathDocument (read-only) instead of using the DOM. This snippet returns the full element values in between elements. For example:
root element
code element
This is a test.
/code element
/root element
GetXmlString("/root/code"); //returns 'This is a test.'
root element
code element
This is a test.
/code element
/root element
GetXmlString("/root/code"); //returns 'This is a test.'









