vb6

Display Progress Bar at the Time of Process

If am getting a Data from the Database from start date to end date – at that time, I want to display progress bar like “Process please wait” How can I write a code? Need Help? ...

Documenting a dependancy tree

I have a requirement to document the assembly dependencies in a vb6/dotnet application. What techniques / tools are good for performing this sort of document. I was planning on using Visio for drawing. ...

Stack overflow when replacing ' with '' in VB 6.0

I'm looking into some legacy VB 6.0 code (an Access XP application) to solve a problem with a SQL statement by the Access app. I need to use replace single quotes with 2 single quotes for cases where a customer name has an apostrophe in the name (e.g. "Doctor's Surgery": Replace(customerName, "'", "''") Which will escape the single qu...

Connect VB 6.0 application to Oracle

Hi, Currenly I am using Oracle 9i Lite Client to connect my VB 6.0 application to Oracle database. The Oracle 9i Lite Client is installed on all the user's machine. (around 200) The VB 6.0 application also needs to talk to SQL Server 2000 database I am trying to think for replacement of Oracle 9i Lite client so that I can bring down...

Automation Error in VB 6.0 from a C# class

Hi, I have created a C# class library and I am using it through a VB 6.0 application. But when I try to call any method (which returns a string) it gives me an automation error. The C# class is running fine otherwise. Any idea why? ...

How do I read data from an xBase/Clipper file in VB6?

DBF file is in C:\dbase\clip53\PRG\stkmenu\WPACK3\ DBF file is called WPACKS.CFG (deliberately not .DBF) The VB6 code in an ActiveX EXE for opening the database and recordset: Function OpenDatabase(sFile As Variant, Optional sProvider As Variant = "Provider=Microsoft.Jet.OLEDB.4.0") As Variant ' ADODB.Connection Dim nErr As Long...

How to convert Unicode characters to escape codes

So, I have a bunch of strings like this: {\b\cf12 よろてそ } . I'm thinking I could iterate over each character and replace any unicode (Edit: Anything where AscW(char) > 127 or < 0) with a unicode escape code (\u###). However, I'm not sure how to programmatically do so. Any suggestions? Clarification: I have a string like {\b\cf12 よろてそ...

Using ImageList from VB6 application causes crash on Windows 7.0 64-bit

I have an old VB6 application that uses an ImageList control from COMCTL32.OCX ("Microsoft Windows Common Controls 5.0 (SP2)") to provide icons for TreeViews and ListViews. The app won't even launch on Windows 7.0 64 bit. The minute it tries to load the form that has the ImageList on it, it crashes (well, actually, the app winks out, ex...

How to use VB6 debugger on Outlook property page OCX?

Using VB6, I have created an Outlook plugin, that has a property page. The property page is an OCX control. When I compile the project to an OCX file, and then run OUTLOOK, things work fine: I am able to see my OCX as a tab in the Outlook options. However, when I try to debug by running the OCX in VB6 I get an error. My debugging is st...

Saving notepad file into a database (Microsoft Access)

How do i import a Notepad file into VB 6.0 and then save the content into a database (Microsoft Access database) ...

Detect if the contents of a folder have changed?

Conditions: Windows 98 SE WMI not available I have code that looks like this, written using my steroidal wrapping of VBScript using MSScript. do a = files.collectfiles( "c:\userver", "" ) for i = 0 to ubound( a ) f = a(i) if strings.endswith( f, ".usv" ) then d = files.readfilee( f ) on error resume next executeglobal...

Stop VB application from running in background

I have a console application (written in VB6 ) which is behaving strangely on my machine. I kick it off from the command line and what should be a two minute job drops straight back to the prompt - if I run this on another machine the executable will sit and wait until the job finishes before returning control back to the prompt. If I ch...

How can I embed a printer control code into a crystal report?

When you send a crystal report (XI) to a pos receipt printer, Is there a way so that we can pass along a printer control code such as partial cut? We using VB6 ...

Print Bitmap Visual Basic 6

Hi all, I needed to print a .bmp file to a printer using visual basic 6. Does anyone know how i can do this using the Printer.Print method. Thanks ...

The event BeforeNavigate2 in Windows Internet Explorer 7 does not fire

I have a VB6 Application which creates an instance of the internet explorer and implements drag and drop for this instance. I am using the event BeforeNavigate2 so that when user drops a file or a folder on the explorer, the event will return the path. ...... Public WithEvents myIExplorer as new SHDocvW.InternetExplorer ...... Private S...

webbrowser disable script debugging in Visual Basic 6

Hi, I want to disable script errors from popping up in a VB6 application. (I have VB6 installed on this machine). Currently, if I navigate to a particular page, it pops up saying "INternet Explorer Script Error: An error has ocurred in the script on this page" ... "Do you want to continue running scripts on this page?" Setting the we...

How do I add .Net controls to a vb6 application dynamically.

I work on an application which is extendable using VBScript. I have access to the VB6 form and can add controls and reference other controls on the form. I am also able to launch .Net forms via interop. What I would like to be able to do is to create a reference to a .Net component and hand it a reference to a VB6 Frame or SSTab and t...

XP Look-and-feel for VB6 Outlook Property Page?

I am writing a PropertyPage for Outlook using VB6. This is implemented as a VB6 OCX. When running in a newer version of Outlook (like 2007) on XP (or newer), my dialog looks weird because it doesn't have XP look and feel. Is there a way to do this? Preferably without adding a manifest file for Outlook.exe. ...

How to display Message box in C# as System Modal

Hi, How to display Message box in C# as System Modal, something like vbModal in VB6 Thanks ...

VB6 migrating to .Net with Visual Studio 2010

Has anyone migrated a VB6 project to .Net with Visual Studio 2010? I have tested the migration in VS2005, but the resulting .Net code was so messed up, that we decided not to migrate to .Net. So has the VS2010 migration wizard been improved over the wizard in VS2005 or VS2008? ...