Category Archives: Microsoft

A little clock that sits on your desktop

This gives the code for a little arlarm clock that sits on your desktop. The soul purpose of this application is to give the current time. Very Simple. Original Author: Mike-Ejeet 9t9 Inputs 1 timer- Interval 500 and name timer 1 Code I(n the form itself enter this code:Private Sub Form_Click()  AlarmTime = InputBox(“Enter alarm time”, “VB Alarm”, AlarmTime)  If AlarmTime… Read More »

Forms Unloader

This code unloads all the forms of the program returning the resources back to the computer Original Author: rbennett Inputs Optional force input as a boolean Assumptions This code is pretty straight forward and an understanding of loops and arrays is will help. Code Private Sub unloader(Optional ByVal ForceClose As Boolean = False)  Dim i As Long  On Error Resume Next  For… Read More »

Ping, Resolve Host by IP and Resolve Hostname

This code will allow you to Ping a server based on ipaddress or hostname. You can also cross-reference ip to hostname or vice-versa. Makes use of the wsock32 and Icmp dlls. Calls gethostbyname, gethostbyaddr and IcmpSendEcho functions. Please Vote! Original Author: Paul Mather Attachments File Uploaded Size CODE_UPLOAD47954142000.zip 9/3/2020 3:45:00 PM 7177

A GOOD WAY TO: Save&Load a Rich Text Box contents!

This code is VERY usefull! It can load a files contents into a Rich Text Box and also save the contents! Original Author: ThUgGy Code ‘Add a Rich Text Box to your project first. Then read below.’To save a rich text box:RichTextBox1.savefile “file.txt”‘To load a rich text box:RichTextBox1.loadfile “file.txt”

Add Wav Files To Your App.

Add Wav Files To Your App. This sample is in .zip formatYou need a versio of Winzip to open it. You can download it @winzip.com Original Author: Mike-Ejeet 9t9 Attachments File Uploaded Size CODE_UPLOAD236312161999.zip 9/3/2020 3:45:00 PM 1438

Set Icons for any Form or Program

With this code you can place any Icon in the title bar of any Window, just by reffering to a .ico file or to the position of the Icon in a DLL. Original Author: J. van Gils Inputs Handle of the window you want to change the icon of. Assumptions You need to have the Window Handle (hWnd) of… Read More »

Form bouncing against the Start Menu at exit! 2.0

This code is a must have! It’s cooler than the “Cool Form Close” code , cooler than the “Implode and Explode” code! So what does it do? When you close you program a really cool effect will appear. Your form will shrink so just the Titlebar is being showned, then the titlebar accelerates and bounces againt the start… Read More »

Dictionary, or Anything Else to store stuff

you enter a word, or whatever else you want and it brings up a definition, or something else.Note: Saves into the registry key: HKEY_Current_UserSoftwareVB and VBA Program Setting whatever you set the path to Original Author: Tyler Robbins Assumptions create 4 textboxes name them:AddName, AddDefine, definition, Wordcreate 1 label, label3 (make its caption blank)make 2 command buttonsname them:LookUp, AddWord… Read More »

Run Crystal Reports within VB6 with Record Selecti

THis short piece of code illustrates how to imbed Crystal Reports into VB. While simple, it does not seem to be documented well anywhere. Original Author: Steven Smith Inputs If using record selection (printing a selected record) v_choice is a variable to be passed to the record selection part of Crystal Assumptions Crystal OXC from VB application is on… Read More »