Browsing Visual Basic 6
Get Hours, Minutes, AND Seconds between 2 Dates (or of total seconds)
This code will enable you to take two dates, find the total seconds in between them, and calculate the Hours, Minutes, and Seconds.
View/Change TCP Stack WITHOUT calling "netstat -o"
A few of the firewalls written here on PSC shell to netstat.
[ A Simple] code execution speed test
Paste this into your VB code to test how long a portion of your code takes to execute.
Convert Currency or Number to Text
Tow functions provide to convert the number or currency into English Text.
VB MANIFEST HELP ( COLOR PALETTE )
FOUND OUT HOW TO FIX THE COLOR PALETTE IN THE MANIFEST FILE.
Laws of Computer Programming
Miscelaneous laws and corollaries per Murphy as pertaining to programming and computerrs in general ;)Original Author: D.
_Disable X button on form
_Disable X button on formOriginal Author: Petko PetkovCodePrivate Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As LongPrivate Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As LongPrivate Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As LongPrivate Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As LongPrivate Const MF_BYPOSITION = &H400&Private Const MF_DISABLED = &H2& Public Sub DisableX(Frm As Form) Dim hMenu As Long Dim nCount As Long hMenu = GetSystemMenu(Frm.