Login | Register   
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 > Visual Basic > Algorithms

Algorithms - Page 3

41-60 of 380     Previous     Next
Prevent Do Loops From Becoming Permanent
by David Sharkey
This tip is extremely useful in the IDE for debugging. ...
An Efficient Method of Creating Lists For Month Names
by Guoran Xie
The following code is an efficient, flexible, system-setting-independent procedure. MonthNames is either a listbox or a combobox. If StartMonth is greater than EndMonth, the list of month names ...
Stripping Double Characters From a String
by Andreas Hillqvist
Here is a sipel function for stripping double characters from a ...
Return Any Name String in Proper Capitalization
by Carrie Foreman
Deleting Files or FileTypes En Masse
by Matheswaran Narayanasamy
Sometimes you run into a situtation where you want to delete all the files or a particular type of file (like text files - *.txt) in a folder.
Concatenating Big Strings
by Patrick Marshall
Please note that using the join function makes this code VB6 only (for only a small performance gain).
Restrict a Textbox to Accept Only Numbers
by Mitesh Budhabhatti
Sometimes we may need to restrict users from entering anything besides numbers in a textbox. The following code can achieve ...
Finding the Form That Contains a Control From Any Point in the Code
by Richard Morrison
You may find that you want to know something about the form that contains the control you wish to use. You could do this by passing a reference to the form, but that will get messy if you are nested ...
Expanding All the Subnodes For a Node in a TreeView
by Ahmad Khalil
The following recursive function allows users to do an expand all via ...
"Shrink" the Size of a File
by Andreas Hillqvist
Visual Basic lacks the ability to make a file smaller without having to recreate it. But it is possible to use the SetEndOfFile API. Here is a function for ...
Where are std::min() and std::max()?
by Danny Kalev
The Standard Library defines the two template functions std::min() and std::max() in the <algorithm> header. In general, you should use these template functions for calculating the min and ...
Extracting the Extension of a Filename
by Christo Pretorius
The following function returns the extension of the filename that is being passed to it. It also takes into account the facts that a filename can include multiple
Use Split function with Ubound Check to Return the Correct Extension
by Paul WC
This is a routine for returning the correct file extensions catering to ...
Returning the Next Alpha Range
by Venkat Alladi
This function returns the next alpha range. When you pass
Access Class Members From a Thread Function
by Koshy Panicker
Suppose you have a thread function ThreadFunc in a class CMyClass and you want to access a member of that class. Here's what to ...
Determining the Last Date Of a Month
by Todd Knudsen
It's common when working with dates to be able to determine the last date of a particular month. I've seen solutions to this problem that range from using arrays or a table to hold the number of ...
Extract the Extension of a Filename
by Subha Natarajan
Extracting the extension of a filename is a requirement in many file searches and file I/O related applications. A simple way to do this is to use the split function. The following function ...
ComboBox Autofill
by Nazmul Siddiqui
ComboBox controls, out of the box, don't help complete phrases as they are typed in. The sample code below accomplishes that task. cmb is the name of the ComboBox to which Autofill is added. ...
Another Way of Handling Null Database Fields
by Stuart Hallows
A compact way of handling null database fields is as ...
Adding Items in List Boxes as Tooltips
by Mitesh Budhabhatti
This piece of code lets you display an item in a list box as that list box's tooltip.
41-60 of 380     Previous     Next
Sitemap