vb6

How to use Microsoft Office Access's Subform control in a VB6 Form?

I like the subform/subreport control in Access, and I want to put an instantce of the control on my VB6 form. I reference the msacc.olb in my VB6 project, and put the following codes in my form module. Private Sub Form_Load() Dim aa As Access.SubForm Set aa = Me.Controls.Add("Access.SubForm", "sf1") aa.Name = "vvvddvv" aa.Visible ...

VB6 Regex Replace

Dim strPattern As String: strPattern = "[^a-zA-Z0-9]" Dim regex As New RegExp regex.Pattern = strPattern result = regex.Replace(pFileNameWithoutExtension, "_") It does work but it replace only 1 char. How can I replace more than one char. Example : "ÉPÉ" should be "P" but currently the result is : "_PÉ"? ...

VB 6 COM+ <-> .NET Enterprise Services, 'Multiple-Step operation generated errors.'

I have a legacy VB 6 client app, which uses a VB ActiveX control, which then communicates via DCOM to a VB component registered in the COM+ Catalog. The VB COM+ component communicates with a .NET component, also registered in the COM+ Catalog. I have an issue when our COM+ application Activation is set to Server, which is required to m...

Method or Data Member not Found Error?

Using VB 6 and Crystal Report 9 I want to display an output in the crystal report. Last week I used VB 6 and Crystal Report 8.5, it was worked fine, but last day I reinstall my Windows XP, VB 6 and crystal report 9. After that While executing the code it showing “Method or Data Member not Found Error”. I checked the Component and Refe...

VB datatypes size

In VB 6,is there any way to get the variable size greater than Long? I have to display the data which is exceeding the size of Long on the same page? ...

VB6 application won't shutdown when .net form open. Instead it displays message "Cannot Quit".

I have a VB6 application that uses several components written in .net. The application must shutdown gracefully when windows is shut down. The problem is that if the .net part of the code is displaying a window, the application displays the message "Cannot Quit" and fails to exit. (It is then terminated by the OS) I've managed to reprod...

How to disable the form extend tab in run time?

Using VB 6 While running the Project, we cannot able to extend the form. In run time, we put the mouse pointer in the Project form Layout border, it showing <-->. It should not show to extend the form in the run time. Am New to VB 6, How to write a code or set a condition? Need VB 6 help? ...

How to show the picture box in front of textbox, combo box inside the Frame?

Using VB 6 Am using Frame, Inside that frame am using textbox, combo box, labels. When I am running the project it will show like "processing". So I used the picuture box also inside that frame. But Picture box is not showing in the front of textbox, combobox, labels. I tried, but it is showing only the picture layout, it is not showi...

How to get selected rows in vb6 Datagrid

I have a vb6 application I am supporting and we need to add a method that grabs data from multiple selected rows in a databound grid. Can anyone point me in the direction to loop through the datagrid to find out what rows are selected? ...

Currency data type of VB 6 to C++

hi, I am calling a C++ function from VB6. In which I need to pass variable of Currency datatype. But in C++ we do not have such datatype. what should I use in C++ fuction to make the compatibilty with currency datatype? ...

How to exit the program immediately?

Using VB 6 and Access 2003 I using two command button (process, cancel) When I run the Program, then I press cancel button – The form is unloading immediately. If I press the Process Button then I Press cancel button. The form is not unloading immediately. In Process button, I wrote the code like this Getting the data from the datab...

Is it really wise to close connections immediately with Jet/ADO?

I've done extensive research on this topic and intensive discussions with my co-workers. The general consensus seems to be, that a database connection should be opend when needed and closed immediately. Any caching/pooling of connections should be done by the database driver or some other layer, but not by the application itself. But ...

table access query

In our server client software in vb6 with sql 2005, On server side one sql table is continously updated by data and we need to display data from this same table on client at running time. Pls help how to acceess this same table from server and client so that data is continously updated from server side and records in this table show on c...

Passing command line parms to VB6 IDE in console app

I have a VB6 console app and it uses command line parameters. For debugging, I would like to be able to start it from the IDE and ideally be able to pass it those parameters to see how it normally operates. I realize I could set a breakpoint at the appropraite place and use the Immediate window to set the values outside the command lin...

Limit of display in vb6

Do we have any limitation in displaying the no. of records in VB6? Like if the no. of records exceeds the size of long,then will it create problem? ...

EXE running on server

Exe made in vb6 will hang if its continously run on server? This exe has winsock component which is used to received data from biometric readers and saved in sql server 2005. Actually this shows real time list for acceess made on biometric readers means in this exe we have used datagrid component which display saved records in sql. How t...

Marshalling out array of user-defined type between VB6 and .net

Hello, I'm creating a COM callable .net assembly and now trying to use it from legacy COM clients (VB6 client in my case). Assembly should expose API style interface, so typical function declaration would look like this: int myRoutine (object inParam, out object result); The problem is when I trying to use function declared as: ...

Visual Basic Typing and Casting Question

I am new to developing with Visual Basic, but have lots of experience in C#/C/C++/JAVA/Haskell and a few others. Is there some reason I am maintaining code and finding code examples where the type declaration just seems lazy? I have seen countless Strings, that are only ever used as the String type, declared as an object. Before the o...

RS 232 Break Signal

I got a RS232 signal capture device. and it working great. I need some help making sense of the data. Basically we bought it because we are dealing a late 80's machine controller that uses serial communication. We had little luck despite knowing the port parameters. From the data I dumped machine control is using the break signal as p...

working with crystal report 10 and vb6.0

hi I have created a sample report with crystal report 10. Now, I wanna to add it to my vb6.0 project but when I try to do so by add file from project menu, it says that sampleReport.rpt could not b loaded.... what's wrong? ...