Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Multimedia > VB.NET

VB.NET - Page 4

61-80 of 419     Previous     Next
Convert from feet to meters, and vice versa
by Marco Bellinaso
Convert from feet to meters, and vice versa
Convert from miles to kilometers, and vice versa
by Marco Bellinaso
Convert from miles to kilometers, and vice versa
Convert from pounds to kilograms, and vice versa
by Marco Bellinaso
Convert from pounds to kilograms, and vice versa
Convert from yards to meters, and vice versa
by Marco Bellinaso
Convert from yards to meters, and vice versa
Adding Design-Time support to your classes
by Marco Bellinaso
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 properties can be set through the Properties Window. This saves you from writing the instance declaration and the code to set the ...
ExtractFirstAndLastName - Extracting the first/last name from a string will the full name
by Marco Bellinaso
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 last name with byref output parameters. Example: Dim firstName, lastName As String ExtractFirstAndLastName("Marco", ...
FileToArray - Reading all lines from a text file into a String array
by Marco Bellinaso
Read all lines from a text file into a String array Example: Dim lines As String() = FileToArray("D:\test.txt") Dim line As String For Each line In lines Debug.WriteLine(line) Next
GetRandomPassword - Generating a random password with the specified length
by Marco Bellinaso
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 password As String = GetRandomPassword(8)
GetScreenSnapshot - Retrieving the current contents of the screen or the active window
by Marco Bellinaso
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), which dumps the screen to the clipboard. Example: PictureBox1.Image = GetScreenSnapshot(True)
MoveCursorToControl - Moving the cursor to the center of the input control
by Marco Bellinaso
Move the cursor to the center of the input control Example: MoveCursorToControl(Button1)
Changing the font for the VS.NET IDE's dialogs and windows
by Marco Bellinaso
If you do presentations/trainings and have to use VS.NET, and actually want your students to see the text on the IDE's windows and dialog, you'd be better off changing the default font. You have two ways to do this: Start the IDE by launching devenv.exe with the /fn and ...
ImageFormatUtils class - Find the ImageFormat for a filename or MIME type
by Richard Deeming
/// /// Provides static (Shared) methods to find the /// ImageFormat for a filename or MIME type. ///
JoinBinaryFiles - Joining a variable number of binary files into a single file
by Marco Bellinaso
Join a variable number of binary files into a single file Params: - resultFile: the complete path of the result file you want to create - sourceFiles: the sequence of files whose content will be joined together Example: JoinBinaryFiles("D:\Test.bin", "D:\Source1.bin", "D:\Source2.bin", ...
Migrating the VS.NET's settings from an older to a newer version of the IDE
by Marco Bellinaso
When you install a new version of the VS.NET IDE, you lose the settings you used in the older version, such as project's and solution's defaults, debugging options, fonts and colors, and various options of the VB.NET / C# / HTML / CSS / WindowsForms editors and designers. To migrate the old ...
Animation - A class to extract all the frames of an animated image
by Marco Bellinaso
This class loads an animated image and gives access to all its internal frames as Bitmap objects Example: load the animation and extract its frames Me.Cursor = Cursors.WaitCursor Dim anim As New Animation("D:\SampleAnimation.gif") Me.Cursor = Cursors.Default get a reference to the first ...
GetAnimationFrameCount - Retrieve the number of frames contained in the specified image
by Marco Bellinaso
Retrieve the number of frames contained in the specified image. For non-animated images the function returns 1 Example: Dim frameCount As Integer = GetAnimationFrameCount("D:\sample.gif")
GetGreyScale - Convert a color to greyscale
by Marco Bellinaso
Convert a color to greyscale Example: Me.BackColor = GetGreyScale(Color.Red)
GetGreyScaleImage - Convert a bitmap to greyscale
by Marco Bellinaso
Convert a bitmap to greyscale - the function returns a new bitmap, it does not directly modify the input image. Note: requires the GetGreyScale function Example: Dim bmp As New Bitmap("D:\sample.gif") PictureBox1.Image = GetGreyScaleImage(bmp)
GetImageFormat - Retrieve the format of the input image, according on its extension
by Marco Bellinaso
Return the format of the input image, according on its extension Example: Dim imgFormat As System.Drawing.imaging.ImageFormat = GetImageFormat("D:\sample.gif")
ResizeImage - Resize an image, and optionally keep the original ratio automatically
by Marco Bellinaso
Resize the specified image file - The new dimensions are expressed in percentage of the original size. The resized image overwrites the original file. Note: requires the GetImageFormat function Example: ResizeImage("D:\sample.gif", 50.0, 50.0) ' make the image half the original size
61-80 of 419     Previous     Next
Sitemap