vb6

getting a blank data report vb6

Hi, I am new to vb6. I am working to create the invoice generation application. I am using data report to show the generated invoice. The step by step working of process is Entering the data in to Invoice and ItemsInvoice tables. Then getting the maxId using (Adodc) from the data base to show the last generated Invoice. Then passing t...

VB6: Regular Expressions - Problem under Win7

hi all, i have a little application which uses regular expressions under VB6. It works perfectly under XP but under Win7 i'm experiencing massive problems. sometimes, when the text which is passed to the regex function is > 20KB it freezes the application and also the whole win7 system: it's getting really slow, almost completely freeze...

Hide Cursor on Form in VB6

I'm currently using the ShowCursor API call to hide a cursor for an application after a set period of inactivity. This works fine, except that the cursor is hidden over both the menus and status bar (which I don't want). I'm also using a Form_MouseMove to switch the cursor back on, but this doesn't work over the menus or status bar. I...

Has anyone had success with Visual Studio 6 on Windows 7?

VS6 popped off a series of errors before bombing out completely during install on Windows 7. I specifically need to get VB6 functioning on Windows 7. Anyone having any luck? ...

VB6 and ActiveMQ

Hi, how can I consume topics in ActiveMQ with VB6? Is there any other way besides using the REST API? ...

Add watermark to various documents investigation

I've been asked to investigate the feasibility of adding watermarks to documents when printed through our application. The documents will consist of word, pdf and cad. The interface of the application is vb6 with a plethora of vc6 dll's. I can see a couple of possible solutions: Convert all documents to PDF, add a watermark and the...

Event handling for dynamic controls in VB6

How can i achieve event handling for dynamic controls in VB6? Any ideas? ...

Receive a Jagged Array in VBA (VB6)

I currently have a VB.NET dll that returns a jagged array of double. This is the declaration: Public Function CalcMatching(ByRef dataArray1 As Object, ByRef dataLen1 As Integer, ByRef dataArray2 As Object, ByRef dataLen2 As Integer, ByRef matchingType As String) As Double()() It works well inside VB.NET, but when I insert it...

Is there a way to display line numbers in the VB6 / Visual Studio 6.0 IDE?

In the VB6 / Visual Studio 6.0 IDE, is there a way to display line numbers in the code editor like there is in recent versions of Visual Studio .NET? For example, I would like to ask someone a question about their code and be able to say "In lines 10 through 13 of your MyClass.bas file, I noticed this happened." ...

What does putting an exclamation point (!) in front of an object reference variable do?

What does putting an exclamation point (!) in front of an object reference variable do in Visual Basic 6.0? For example, I see the following in code: !RelativePath.Value = mstrRelativePath What does the ! mean? ...

Automation Error - Not enough storage is available to process this command

VB6 CreateObject() is advising this error msg: "Automation Error" - "Not enough storage is available to process this command" The object being created is a DLL written in C. I'm running the application that's trying to create the object on my machine, and the object itself is being created on my machine also. I'm running Windows Vi...

.NET Object from VB6 without use of regasm.exe?

Hello, The software company I'm working for builds software for schools, and so our client machines are usually locked down in such a way it makes it pretty impossible for us to install anything on it. Our old system is primarily based on a (very large) MS Access project and so it gets around the access problems by just running from a...

unable to register flash10c.ocx

When I use Package and Deployment Wizard to make an installer of my vb6 application. When I test it and installed it, upon reaching 100% installation, it was unable to register Flash10c.ocx. I tried to ignore it and try to run the installed application. The application runs but the flash movie does not work. ...

Wrap text around image in rich textbox control

Ok, basically i have a vb6 app and i want to wrap the text in a rich text box around an image i have inserted into the rich text box from the clipboard. At the moment when you insert an image, the text does not wrap around the image... let me know if you need a screenshot of what i am trying to explain. Kind Regards, ...

Unable to correctly retrieve Date value from Word Template VB6 Macro

I've modified a Word Template's VB6 Macros to retrieve a Date of Birth Field. Unfortunately, when the value is retrieved it has a string value prefixed by a little square block and a lot of right-padded spaces which I can't seem to trim (eg. "1/3/57 "). Can anyone here see what the problem is? Here's the code - If ActiveDocument.B...

Ultragrid in vb6 Small help

hi .. it is very difficult to find any answer on Ultragrid .. ...i hv small small issue and could not solve ..if u can help me out plz help me... 1) how to insert new row when click on add button...if any previous row is there has to clea out and add only 1 new row.. how to delete row on click of delete button (i tried using deleteselec...

Vb6 project files and source safe

A part of the application that I am working on is a legacy Vb6 Windows forms application. All the files in the project are under source control (VSS) except the Vb6 project file. From what I can establish from the other developers working on the project the reason for this is that the com components used in the projects have different ...

AllocHGlobal equivalent in VB6

All, I have to write some share permission code in a legacy VB6 application. I know I will have to use API calls, and found a good example here. But I'm not clear on how to achieve some of the same functionality from VB6, mostly with memory allocation. For example: pTrustee = Marshal.AllocHGlobal(Marshal.SizeOf(t)) BuildTrusteeWithSid(...

Disable Beep Sound in Vb 6

When I press Ctrl+other keys in a TextBox in VB 6.0, the system plays a beep sound. How can I disable this in VB 6.0? ...

How can I send an e-mail from a vbs script

How can I send an e-mail from a vbs script - on a machine that cannot connect to the internet (it's in my non-internet zone). I've hacked the following together from my googling, but is seems to require a call to Microsoft's server. What about the situation where I'm not able to reach microsoft.com? sch = "http://schemas.microsoft.com/...