Saturday, January 13, 2024

Hello

Would try to update this blog from now.

many links are broken like platnet source code and many websites shutdown.

Monday, June 9, 2014

Microsoft Declines VB6 Petition

Microsoft has Declined the VB6 Uservoice Petition with 7,400 Votes. Group Program Manager Left a Note and Closed the suggestion. Visit the site to read his comments.

http://visualstudio.uservoice.com

Saturday, September 17, 2011

Windows 7 Compatibility for VB6 Apps

These articles show how to make your VB6 apps compatible with Windows Vista, 7 and its UAC.

Modifications Required for VB6 Applications to Work on Vista/7 [Visit]

SysFolders - Code to get system folder location [Visit]

Where to put data under Vista? [Visit]

Help Authoring Tools & Code

These tools help you make helpfiles for your applications and controls.

HTML Help COM Assistant - Nice tool to automatically generate HTML Help documentation for your COM/ActiveX component. [Visit Website]

HTML Help Workshop - Freeware from microsoft to generate HTML Help Files. [Visit Website]

Help Visual Basic Class Module - Complete VB6 Module to work with HTML Helpfiles [Visit Website]

Tuesday, September 13, 2011

VB6 on Windows 8

VB6 Will Work on Windows 8 :D




Summary:
  • No specific mention of VB6 or other legacy technology.
  • Win32 and COM still available.
  • VB6 Runtimes wont be there in Windows 8.
  • Windows 8 will run all application that ran on Windows 7.
  • x86 application wont run on ARM based Windows 8, including VB6 Apps.
  • They are going to provide compilers to C, C++ developers to compile for Arm Windows 8.
Windows 8:
  • Available for x86, x64, ARM
  • Hardware requirement same as Windows 7
  • Target of running all application that ran on Windows 7
  • Includes new UI style called Metro
  • Includes new Metro UI style Touch based Desktop (Along with Old Desktop)
  • Metro application are written in HTML5, JavaScript, XAML (.NET)
  • New APIs (WinRT) for Metro apps callable from JavaScript similar to desktop gadget engine.
Update:
VB6 Runtimes are included in the Alpha Release.

Screenshot of VB6 running on Windows 8.

Monday, August 29, 2011

Remove Icon from VB6 Form

Many times we set icon on form which we dont want, and there is no option to remove, you can only replace it. But sometimes we need to let the default VB icon remain like when we are setting the icon using code. To remove icon from VB6 form, open your form .frm file in notepad and under " Begin VB.Form Form1 " look for " Icon = "Form1.frx":0000 "

Remove this line and save, open your project and VB6 will display an error, now save the project. This will remove the icon.

Note: Be careful while editing files using notepad.

Saturday, August 20, 2011

Tools: Add-In to make Console Apps using VB6

The 'PowerVB Console Application Add-In' provides an integrated mechanism for turning a Standard Exe application into a console application.

Using this add-in to generate a Windows Console application is equivalent to running 'EditBin /SUBSYSTEM:CONSOLE MyExe.Exe' from the command line.
 

[Visit Website]

Friday, August 12, 2011

Chart Control for VB6

RMChart is ActiveX control to add a various range of Modern looking business charts (Bar, Line, Pie/Donut, XY scatter) to your applications. It comes with RMCDesigner, using this tool you can create chart without coding. You Also print your charts or save them as .jpg, .png files. License: Freeware

[Download Here]

Saturday, July 23, 2011

Sending Email From VB6 App

Email Sending UserControl - This UserControl is for sending emails with attachments via SMTP server, there is no dependencies like Winsock OCX, CDO, MAPI, Outlook.
[Visit Website]

Sunday, November 14, 2010

Use XP Icons in VB6 Apps

This code shows how you can use Windows XP style icon (32-bit alpha icons) in your VB 6 application. VB6 only supports icons up to 24-bit true color and this code shows the workaround.



[Download]

Temporarily Disable AutoRun

This code shows how you can temporarily disable autorun using your VB6 application.

[Download]

Drop Shadow on Form

This code shows how to add drop shadow to you VB6 form without using any subclassing. All using Windows APIs. Just 8 Lines of code.

[Download]

Add Build Button to VB6

Ever wished you had a 'Build' button on your VB 6 toolbar just like VC++, now you can add a build button to your VB 6 toolbar, without using any addins.



[Download]

Tuesday, November 9, 2010

Draw System Icons

This code shows how you can Draw System Icons like - Critical, Exclamation, Question, Information and new Shield icon introduced in Windows Vista, 7.



[Download]

Sunday, October 10, 2010

C to VB6 Converter

Program to convert C syntax to VB6 code, useful when working with APIs.



[Download]

Monday, September 27, 2010

Detect 64-Bit Windows

This code shows how to Detect if you are using 64-Bit Edition of Windows in VB6.

[Download]

Disable DEP

DEP (Data Execution Prevention) is a new feature that was introduced with Windows XP SP2 and above, to prevent running of malicious codes, it marks certain memory locations as non-executable. But sometimes it creates problem with applications that are not doing anything harmful and they crashes. In XP SP3 and above Microsoft introduced new APIs that allow us to disable or enable DEP on our applications. This code shows how you can disable or enable DEP at runtime for your applications.

'API In General Declaration Section
Private Declare Function SetProcessDEPPolicy Lib "Kernel32.dll" (ByVal dwFlags As Long) As Long

'To Disable DEP
SetProcessDEPPolicy(0)

'To Enable DEP
SetProcessDEPPolicy(1)

'Note: Once Enabled Using API you cannot disable it Again
More on MSDN
SetProcessDEPPolicy Function [Visit]

New NX APIs added to Vista SP1, XP SP3 and Server 2008 [Visit]

Sunday, September 26, 2010

Draw Text with Shadow

This code shows how you can draw text with shadow. It uses DrawShadowText function in ComCtl32.dll to draw the text with shadow. Only works on Windows XP+ with manifest file.



[Download]

Hello

Would try to update this blog from now. many links are broken like platnet source code and many websites shutdown.