Adding Design-Time support to your classes
If you use VS.NET you know that there are a number of classes that offer visual design-time support, i.e. they can be dragged and dropped on your form, and their
If you use VS.NET you know that there are a number of classes that offer visual design-time support, i.e. they can be dragged and dropped on your form, and their
‘ Move the cursor to the center of the input control’ Example: MoveCursorToControl(Button1)Sub MoveCursorToControl(ByVal target As Control) ‘ calc the x/y coords relative to the control Dim x As Integer
‘ Generate a random password with the specified length. The password will only ‘ contain digits and letters (either lowercase or uppercase)” Example: generating a password of 8 chars’ Dim
‘ Return the current contents of the screen or the active window’ It works by simulating the typing of the Print-Screen key (and Alt key if ‘ activeWindowOnly is True),
‘ Read all lines from a text file into a String array” Example:’ Dim lines As String() = FileToArray(“D: est.txt”)’ Dim line As String’ For Each line In lines’ Debug.WriteLine(line)’
‘ Extract the first and last name from a string will the full name.’ The routine handles the “LastName, FirstName” and “FirstName LastName” ‘ formats, and returns the first and