vb6

How to Raise Keyboard Events for Special Characters/ Extended ASCII? (Visual Basic 6)

Hello everybody, How to a raise a keypress event for Special Character for typing extended ASCII Characters ? Sample code snippet : keybd_event vbKeyE, 0, KEYEVENTF_KEYDOWN, 0 Is there any alternative so that I can use KeyCode for Special character [ E.g. Chr$(122) ] instead of predefined and limited VbKeyA, VbKeyB, VbKeyC ..... etc...

VB6 IE frame / WebBrowser causing NT.dll error

We have a legacy VB6 application which has worked just fine on Windows XP Professional SP 3 until just recently when we added an IE frame control so that we could display static local HTML files on a form. And, it works fine until I go to close the application. And, then it reports the following error message (consistently): Faulting ...

Setting form as back-most. A form that always stays in background - vb6

Hi! Is there a way to set a form as back-most (form wich always stays in the back no matter what you click on the form) I am writting a shell replacemement and just using topmost on every window I start really messes some things up for some applications. Thanks! ...

connection string in (windows authentication mode) vb6

i am using this connection string for server authentication , Dim rs As New ADODB.Recordset strConnectionString = "Provider=SQLOLEDB.1;Persyst Security Info=False;User Id=fileade;Password=fileade;Initial Catalog=Fileade;Data Source=10.237.225.170;Command Properties='Command Time Out=45'" what will be the connection string in windo...

print msflexgrid with picture in cell in vb6

Hello guys, how do i print msflexgrid with picture in some of its cells in vb6 ...

Equivalent of VLookup in VB6

Dear All, I want to use the vlookup function in VB6. what is the code for it? I am currently using this code: WorkSheetName.Application.VLookup(20,WorkSheetName2.Range("A2:B20").Address,2,False) WorkSheetName2 contains the lookup table. WorkSheetName is the sheet that contains a list of values to be looked up for their corresponding v...

error in connection string in vb6.0

Dim rs As New ADODB.Recordset strConnectionString = "Provider=SQLOLEDB.1;Integrated Security=True;Initial Catalog=Hospital_ABC;Data Source=ITEM-47791\SQLEXPRESS;Persyst Security Info=False;Command Properties='Command Time Out=45'" Set connexion = New ADODB.Connection connexion.ConnectionString = strConnectionString connexion.Co...

Visual Basic: How to declare an array of array ?

Hi there. I've googled this question several times, but I can't find something that works. I want to declare an array of arrays (arrArr) of unspecified length. Actually, I work with Excel: if the sheet exists, fetch its array and store it in the array of arrays. I've declared this arrArr like this, and the program basically works this ...

Converting VB6 Custom Type (with Fixed Length Strings) to VB .NET

I have upgraded some VB6 code, which uses fixed length strings in custom types, to VB .NET by using the UpgradeWizard and am having trouble with the use of the LSet method that I was hoping someone could help me out with. The Existing VB6 code (type declarations); Public Type MyType PROP1 As String * 15 PROP2 As Str...

Transfer data from Excel file to Access File using VB6

Dear All, I have an excel file (.xls) with data in the first Sheet that is named "Customers". I also have an Access.mdb database that contains a table called " CustomerDetails". I would like to transfer the data from the excel sheet into the Access database using VB6 code. How can I do that? Thanks in advance, ...

How to determine Local Port for a socket established in VB6

In a VB6 Application, I am looking for a way to determine the Local Port for the duplex socket. I have the remote Ip and Port, but I need to know an print out the local port as well. ...

How do I determine which forms are using a particular VB6 user control?

I have a VB6.0 application in which I have forms and user controls. I need to know in which form a particular user control is being used. Can anyone tell me how to do this? ...

reading xml files in vb6

I know it is easier to read xml files in vb.net but since our appl is still on vb6, i need a work around. but somehow, i am stuck. also i do not have control over the xml file as it is being generated from another application. Short code from the xml file is below, <Report> <Categories> <Category name="...

VB6 IDE Is Locking The Loaded Project's DLL

I'm responsible for maintaining legacy VB6 code, and have encountered an annoying problem with regard to the locking of a project's COM DLL. (We'll call it MyProject and MyProject.dll) When I load MyProject into the VB6 IDE, I am able to compile the resulting binary-compatible DLL MyProject.dll. I can then run my (Classic ASP) web appli...

How to track down unmanaged heap corruption caused by VB6 application on Windows XP Pro?

Hello all. I've been having trouble with VB6, of late. I'm receiving heap corruption errors on closing the legacy VB6 application that we maintain. What I see, when I close the app, is that there was an error during run-time which, for whatever reason, didn't get reported during run-time (as we do have a pretty standard error handli...

interactive panel help in vb

Hello! I am new to visual basic and I have to program a form application for a university project. The application has a 2d array of panels that make up a grid that user can interact with. I have some experience with java, so what I am trying to ask is if there is anyway to translate this line into visual basic: pnl[x][y].addMouseListen...

VB Collection cannot be indexed because it has no default property? How to iterate a collection?

Dim RS2 As iHistorian_SDK.TagRecordset ... For intI = 1 To RS2.Item.Count .... HistEngHigh = RS2.Item(intI).HiEngineeringUnits Now this gives the error Interface 'VBA.Collection' cannot be indexed because it has no default property. Now it used to work when I ran the code in VBA 6.5 via iFIX but now that...

SYSBASE CONNECTIONSTRING

Dear Friend I want to connect Sybase 12.5 using vb 6.0, then what should be provider i can use to connect the Sybase 12.5. thanks ...

What is the C++/CLI equivalent to a VB6 Collection?

I already tried ArrayList^ and VB6 gives me a 'Type mismatch' error. I don't see a C++/CLI 'Collection' or 'List'. So what is the equivalent, if there is one? ...

[VB6] Post Method + WinHttpRequest + multipart/form-data

I'm stumped why this doesn't work can't seem to find any problems. Here is the code. Public Const MULTIPART_BOUNDARY = "speed" Function getBalance() As String Dim sEntityBody As String Dim postBody() As Byte Dim username As String Dim password As String username = CStr(frmMain.txtUser.text) password = CStr(frmMain.txtPass.text) sEnti...