Grouping and Summing the Values in XML Using XSLT
In this column, I have grouped the XML based on the GroupID element by using the generate-id() function. This generates unique keys used for indexing the key value. The key
In this column, I have grouped the XML based on the GroupID element by using the generate-id() function. This generates unique keys used for indexing the key value. The key
First, place the function ischaralpha in the proyect. In this example it’s in the general declarations section of the form: Private Declare Function IsCharAlpha Lib “user32” Alias “IsCharAlphaA”(ByVal cChar As
Use this function for binary file copying. Call it to copy files of any type?executables, images, not just text files. The argument infilename represents the (full) path to the original
With some classes, it doesn’t make sense to instantiate the class itself but overriding of any of its methods will result in a usable class. This is the case for
‘ Return the Tag value of the selected RadioButton from the input array of ‘ controls.’ This is useful when you have many radio buttons, with a value associated to
‘ Return the name of the method that calls this function.’ The function is useful for logging purposes, for example.” Example:’ Private Sub Button4_Click(…) Handles Button4.Click’ MessageBox.Show(GetCurrentMethodName()) ‘ => Button4_Click’
‘ Return a random color’ Example: Me.BackColor = GetRandomColor()Function GetRandomColor() As Color Dim rand As New Random Return Color.FromArgb(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, _ 256))End Function
‘ Return a case-insensitive hashtable containing all the members in a type’ Note: requires Imports System.Reflection” Example:’ Dim ht As Hashtable = GetAllMembers(GetType(String), False)’ For Each key As Object In
System.Windows.Forms.SystemInformation is a little known class that exposes a number of static properties that return information about many system settings, such as: Icon and cursor size (IconSize and CursorSize properties)