" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Using VB 6.0 DLL In .NET Framework:

Posted on November 23rd, 2015 by Pallavi Praharaj

To Create and register the COM object in VB6.0 1.File -> New Project -> ActiveX DLL -> OK 2.Change project name to ComProject. 3.Add class named it as COMClass 4.then in Code Editor Add a Function: Public Function AddingTwoNumbers(num1 As Integer, num2 As Integer) As IntegerAddingTwoNumbers = num1 + num2End Function 5.Save the Project. 6.File […]

Set default location for Internet explorer download directory in VB 6

Posted on November 23rd, 2015 by Amrita Dash

To specify the default location where downloaded files from Internet explorer are saved , we need to set the default location (directory path in registry). The registry key location is [HKCU\Software\Microsoft\Internet Explorer] Here is the code sample in VB 6.0 [VB 6.0 Code Starts] ‘ — Declaration and API calls for writing to registry Private […]