Improved circle drawing
Here's my code for drawing a circle, that has significant improvements over the internal VB6 circle drawing commands. Code: Private Sub DrawCircle(ByVal X0 As Long, ByVal Y0 As Long, ByVal Radius As...
View ArticleUsing OERN (On Error Resume Next)
This isn't any substantial piece of code, but it points out a potential problem I see experienced programmers making on these forums. Also, I must give Bonnie West some credit for pointing this out to...
View Article[CODE] Responsive applications in VB6 (and immune to resolution changes)
Make VB6 applications look, feel and work state-of-the-art. See this video for more: https://youtu.be/2RPnJotSYj0 I HAVE HEAVILY MODIFIED THE CODE NOT COMPLETELY CODED IT. THE CREDITS CAN BE FOUND...
View ArticleVB6 Build-in types extension library (FTypes)
This project aim is to extend Visual Basic 6.0 build-in types (like Integer, Long, String and etc.) in order to make work with it more convinient ("one-liner" style if needed) and support extended...
View ArticleVB6 Built-in types extension library (FTypes)
This project aim is to extend Visual Basic 6.0 built-in types (like Integer, Long, String and etc.) in order to make work with it more convinient ("one-liner" style if needed) and support extended...
View ArticleVB6 - Simple Sock
SimpleSock basically performs the same functions as NewSocket. Like NewSocket, it supports IPv6 as well as IPv4. This more or less restricts it's use to Windows Vista or better, as older operating...
View Article[VB6] SAX: Not just for XML
MXHTMLWriter is a handy feature added to MSXML SAX2 in version 6.0, but few have probably heard of SAX and few still of MXHTMLWriter. See MXHTMLWriter CoClass for an overview. There are several ways to...
View Article[VB6, Vista+] Remember Open/Save state per-dialog instead of per-app...
This code tip applies to the new Common Item Dialog interfaces, IFileOpenDialog and IFileSaveDialog, that replace the old Common Dialog control and GetOpenFileName/GetSaveFileName API calls in Windows...
View Article[VB6, Vista+] Direct access to the system-wide image thumbnail cache
While in general you want to use IShellItemImageFactory to get these thumbnails, as that will also return icons, if you're interested in more control or better performance, you can use IThumbnailCache...
View Article[VB6, Vista+] Add the Windows Send To submenu to your popup menu
So at first I set out to just duplicate the functionality, but then immediately saw the FOLDERID_SendTo special folder, and realized that it should be possible to add a fully functional SendTo menu....
View Article[VB6] SHBrowseForFolder - Custom filter for shown items:...
It's possible to have complete control over what items are shown in the SHBrowseForFolder dialog. The picture above shows a filter of *.exe applied to a dialog with the BIF_BROWSEINCLUDEFILES option,...
View ArticleResizeable VB6 UserForms (and Unicode Form Captions)
This system uses a small amount of code in a form module plus a small class module shared by all of your forms to enable you and the user to be able to move and size any form and have all of the...
View ArticleVB6 - NAT Traversal
A NAT router is an excellent way to protect your computer network from outside hackers. The normal way to allow an outside host to connect with an internal host sitting behind a NAT router is to...
View ArticleCompression in VB6: modern solutions
Compression has always been a cumbersome task in VB. Microsoft provides very weak support in their standard libraries, and while there are good 3rd-party solutions for VB developers, they are either...
View ArticleCustom Scrollbar (vbRichClient)
As requested here http://www.vbforums.com/showthread.p...using-Pictures This is a custom scrollbar class that requires only to be given a reference to a picture box, as illustrated in this demo. The...
View ArticleSend email in a simple VB6 project using a command1 button gmail smtp
i want a project code example using command1 button to submit a email using gmail smtp to submit a email to my destinated gmail email address using a single click
View Article[VB6] ListView / TreeView Extended and Custom Checkboxes
So I've mentioned this and posted snippets in a few threads, but thought it would be good to do a formal sample project on this, especially since I've never seen one done before. By default, the...
View Article[VB6, Vista+] Core Audio - Change the system default audio device
Changing the system-wide default input and output audio devices WARNING: This feature is not designed to be accessible to programs and uses a COM interface that is undocumented and unsupported by...
View ArticleDetermining when two numeric ranges overlap
The code below will report True if 2 ranges (x1-x2 & y1-y2) overlap. You can put the two range parameters in either ascending or descending order. The function will rearrange them to ascending...
View ArticleMulti Bit Manipulation Class
This submission is a class that handles bit manipulation in the following VB data types: Byte, Integer, Long, Single, Double, Currency, Date and One dimensional Long Arrays. (These are VarTypes 2 thru...
View Article