advertisement
Center a form on the screen on load. Centers the form that the code is put into when it first loads up.
Select code
Check if a value is decimal. Accepts values in both long/integer and string data types. Using this function a value such as 25.0 is not counted as a decimal.
Select code
Clears a form of all drawings (namely those greated with the .line method)
Select code
Remove all the whitespace from a string. This removes every instance of a space in the given string returning the new string as a string for Visual Basic 6 (VB6)
Select code
Create a file called example.txt and write the text Hello world! into it
Select code
Convert a string to either upper or lower case with the LCase and UCase functions
Select code
Disable text box on commandButton click. Be sure to update the control names to make it work!
Select code
A Visual Basic 6 code snippet to check if a given file name exists
Select code
Need coding help? Tips, tricks or advice? Check out our webmaster forums
advertisement
