formatcurrency

format a text field into a $ currency field. Original Author: Vikramjit Singh Inputs text box name Assumptions Call teh module by passing any text box name that you want to have as a currency text box. Returns formatted value in $ API Declarations ‘put as many text boxes as you want…say text1‘call the class by using the following… Read More »

***UPDATED*** Window SPY

***UPDATED*** Gets tons of information on the window your mouse is over. Original Author: Matt Evans API Declarations Public Declare Function GetCursorPos Lib “user32” (lpPoint As POINTAPI) As LongPublic Declare Function GetWindowText Lib “user32” Alias “GetWindowTextA” (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As LongPublic Declare Function GetModuleFileName Lib “kernel32” Alias “GetModuleFileNameA” (ByVal hModule… Read More »

2 MINUTE WEB BROWSER!!!

This is similar to the 15 minute web browser, but is MUCH easier and has many more options!!! Original Author: Matt Evans API Declarations Code Step 1) Start up a project in VB… Make a new oneStep 2) Goto ‘Add Form’, Double-Click on Web BrowserStep 3) Goto Project1 Properties… And change the startup form to wWebBrowser1Step 4) Remove form1… Read More »

View a playing card using VBCARDS.OCX

Simple code shows how to display any playing card image using the VBCARDS.OCX. Original Author: Patrick K. Bigley Assumptions Create a form (Form1)Create a command button control (Button1)Create an image control (Image1)Create a label control (Label1)Create a VBCARDS control (Deck1)A free copy of the VBCARDS OCX control can be downloadedat http://bargainbd.com/opusopus/vbcards.htmorhttp://www.geocities.com:80/SiliconValley/Grid/7284/cardocx1.zipDon’t crowd the screen with the controls, spacethem neatly… Read More »

EZ – .ini

Access .ini files in the blink of an eye. Use one line of your input to quickly retrive .ini values. With the same one line of code write to your .ini file. If you have any improvements on this code, E-Mail me at “karatebob@hotmail.com”. Original Author: Frank Joseph Mattia Assumptions When you call this in your code, this is… Read More »

DBGrid Dropdown Listbox

Ever wondered what the button_click event was for in a DBGrid? Well, this is it! You have to populate a listbox control and display that with the selection information. This will simulate a dropdown box within the dbgrid. This is an excelent way to input specific information into the dbgrid. Original Author: Jason J. Martin Returns Nont Side Effects… Read More »

Create New Controls At Runtime !

This code will allow you to create a new instance of a controlat runtime !Imagine. When your app is RUNNING you can create a new command buttonor a textbox on the fly ! The code they didn’t want you to know 😉 Original Author: Marc A. Foumberg API Declarations NONE Code ‘Create a new project.’Add a command button.’Name the… Read More »

Print Screen (take a picture of the screen!)

Take a picture of the screen Original Author: Brent w. Assumptions Found off the web API Declarations Declare Sub keybd_event Lib “user32” _(ByVal bVk As Byte, ByVal bScan As Byte, _ByVal Flags As Long, ByVal ExtraInfo As Long) Code Sub ScreenToClipboard()Const VK_SNAPSHOT = &H2CCall keybd_event(VK_SNAPSHOT, 1, 0&, 0&)End Sub

Set ACL using low-level access control functions

This module provides a function that uses the Windows NT low-level access control functions to set the access rights on a folder (directory). The High-level access control functions (GetNamedSecurityInfo etc) do not function properly. They merge all ACEs for each SID. MS only acknowledges one of the four functions as malfunctioning, in fact they all are not suited… Read More »

CipherII

A StreamCipher encryption similar to the first ‘Cipher’ but now it can encrypt any text or binary file. Original Author: John Cui Inputs PlainText(the text to be encrypted/decrypted), Secret(the password) Assumptions There is only one function to Encrypt/Decrypt the strings. It is to this point stable that you can encrypt the same string multiple times using different passwords every… Read More »