Tools Links Login

Browsing Visual Basic 6

Prev   Next

FASTEST GoodRound function (Revision D) 2010-06-10 Update!
Provides a good mathematical rounding of numbers instead of VB's "banking" round function.
Posted:2002-06-01, 162 views

Updated - 27 VB Hints and Tricks you should know
Just a bunch of VB6 hints and tricks I thought I could share with you.
Posted:2002-06-01, 308 views

AutoComplete textbox and comboboxes like Explorer does
Auto-fills a textbox as you type in.
Posted:2002-06-01, 476 views

speedcheck - calculates a functions runtime in ms (4 code-optimization)
Just one line of code is needed to test a functions speed -> With this class-module.
Posted:2002-06-01, 145 views

WordWrap in only 5 codelines
I hope that this is the shortest and easiest wordwrap-function in vb you have ever seen, that you enjoy it and use it in all your projects :-)Original Author: Max Christian PohleCodeOption ExplicitPrivate Sub Form_Load()  MsgBox WordWrap("This is a long testtext that doesn't make any sense really.
Posted:2002-06-01, 238 views

create a Shelllink (also known as Shortcut) with a few lines of code
It creates a shortcut and lets you define all important parameters.
Posted:2002-06-01, 241 views

primechecker
prime number || not? Interesting: The fastest possibility 2 find out is not the recursive one!Original Author: Max Christian PohleInputsa numberReturnstrue or falseCode'1 : as recursive functionFunction IsPrime(Num As Long, Optional Start As Long = 3) As Boolean If Num Mod 2 If Num Mod Start   If Start > Sqr(Num) Then _  IsPrime = True Else _  IsPrime = IsPrime(Num, Start + 2) End If End IfEnd Function'2 : as standard-functionFunction IsPrime(Num As Long) As Boolean Dim L As Long If Num Mod 2 For L = 3 To Sqr(Num) Step 2 If Num Mod L = 0 Then Exit For Next L If L > Sqr(Num) Then IsPrime = True End IfEnd Function'example how2 callSub StartAndWrite() Do Me.
Posted:2002-06-01, 116 views

Prev   Next