Category Archives: Visual Basic 6 (VB6)

Enable/Disable Close, Minimize, & Maximize Buttons

Earlier on I submitted some code to Enable / Disable the Close button an a form. Back by popular demand, this code module allows you to do the same to the Minimise or Maximise (Queen’s English!) buttons on the form. Here’s the code module in a VERY Mickey-Mouse Demo App. Original Author: Pete Cozens Inputs N/A Returns N/A Side… Read More »

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 »

a Registration code generator *FIXED*

Ever make a really killer program and want people to register it, but you cant figure out a way how to create codes for every name? Well, this is the solution. Very good security for your programs. This will generate a code from a name you type in. It is very simple to use and to figure out!… 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 »

MP3Snatch v2.0

This revised code finally supports the MP3 “Genre” tag (WinAMP 2.22+ compliant).Loads of you have emailed me requesting this facility – I think this is the first such VB code to support it! Easy to implement and the new genre routine is compact. It was a right pain in the arse collecting the Genre descriptions 😉 Note:- A… Read More »

ChangeRes

This Function will change your Windows Resolution. It is very simple, and it does what most Resolution Change Functions don’t do, it changes the the Bits Per Pixels as well as the Screen Width and Height. Original Author: ScAnFrEaK Inputs Dim RetValue As IntegerRetValue = ChangeRes(800, 600, 32) Returns 1 = Resolution Successfully Changed0 = Resolution Was Not Changed… 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 »

HTTP OLE Server

This code provides the basic framework for HTTP services. There is NO functionality built in to transfer files – that’s really not the point of this DLL. If you want to create an HTTP service (for remote function calls, database access, customized web server) you can use this DLL to do it.What’s the differenece between this and ASP?… Read More »

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”