vb6

Any suggestions of a VB6 Source Code library?

I'm looking for a good VB6 source code library (to extend the language) for things like parsing a path into root, directory, filename, extension, does a file exist, etc. I'm happy to pay for such a resource if it's a good one (ideally with some sort of reviews/feedback). I've found one already: SourcePlus from AxTools Only downside is...

Registration Free COM Interop: The application has failed to start because its side-by-side configuration is incorrect

Background. I've got a COM Wrapper assembly called ComWrapper.dll written in C#, and Visual Basic 6 application called Project1.exe. I've added the Project1.exe.manifest file (contents of which are shown below), and I'm getting an error that says "the application has failed to start because its side-by-side configuration is incorrect. ...

vb6 winsock control RemoteHostIP truncates the last digit from IP address

Hi i am writing a socket client/server application in VB6. i have the following code Private Sub sockMain_ConnectionRequest(ByVal requestID As Long) If sockMain.State <> sckClosed Then sockMain.Close End If sockMain.Accept requestID Debug.Print "Accepted connection from: " & sockMain.RemoteHostIP & vbCrLf End...

VB6/IRC PING & PONG Problem

I am not able to PONG back the PING to IRC, which sends back a "You must register first" error, here is the code I'm using: Private Sub wsConnect_DataArrival(ByVal bytesTotal As Long) Dim strData As String wsConnect.GetData strData If InStr(strData, "PING") <> 0 Then MsgBox ("Success!") 'Check it's receiving it. ...

Place boolean function in if statement expression

I'm maintaining a VB6 app. For boolean functions, the original authors store the return value in a boolean variable before checking the result in an If Statement. I prefer to place the function directly in the If Statement. Is this a matter of preference or am I missing a potential pitfall in my style? Original Author Style bRetur...

SetWindowPos Not Working On Windows Server 2003?

I've got a legacy VB6 app that I recently added SetWindowPos to the application to keep it on top. Long story why, but customer requested it. On "normal" Windows machines (2000, XP) it keeps the window on top, but on the Server, it does not. Does anyone have any idea why? Are there any security settings, patches, etc that have disabled ...

How to pick/read data from .pdf file using vb 6.0 with ado

i need a vb code for this want to read data from .pdf file using vb6 as front end as ms access as a backend thanks regards Nasir ...

WEBpages to EXE

Hello friends, i have 1) couple of HTML files in which javascript is embeded..... My Requirements 1) I want my whole website to be in exe format so that i can protect my javascript code. 2) or tell me how to open website inside the vb6 program ...so that i can build a exe. And yeah i want the webpages to use the Internet Explorer b...

Change text characters

i want to replace the alphabets with numbers from a text box and display in the result in another test box.Do not know how to achieve this.Please help. Private Sub Form_Load() txtID.Text = "a s d f" txtSerial.Text = txtID.Text End Sub Private Sub cmdGet_Click() Dim i as Integer fsID = UCase(Replace(txtID.Text, " ", "")) ' Remove al...

How do i open a webpage in vb6

How do i open a webpage in vb6.... inside the window frame ?? (i hope the question is clear and it is program related...sad my 1st 2 posts were closed so soon) Thanks in advance -subanki ...

VB 6: How do I find the area inside a form?

In VB 6 I'm trying to make a control automatically resize based on the form's size. Unfortunately Form.Width is the total width of the form, not just the client area. So how do I find out the interior heigth and width? ...

How to navigate using WebBrowser Control

How to navigate using WebBrowser Control. I wanna open a C:\file1.html..... a example code would be appreciated Thanks in advance - Miss subanki ...

WPF, VB , and the Application object

Scenario: The VB 6 form has a InteropControl (WinForms). The InteropControl has a ElementHost The ElementHost has my WPF control Everything seems to be working except that Application.Current seems to be null when I need it. All I really want to do is hook into the unhandled exception event before the first form is fully displayed. ...

Converting WPF width/heigth into VB 6 width/heigth

My WPF controls need to expose a MinWidth and MinHeigth for the hosting VB 6 application to consume and honor. What's the most reliable way to convert from one to the other. (If it will help, I can change the ScaleMode property in VB 6 to whatever.) ...

Is there a way to enumerate all properties in a vb6 class module?

In .Net you can use reflection to get access to an enumeration of all properties of a class. Can this be done too with a VB6 class module? ...

how to decrease my volume using vb6

how to decrease my volume using vb6? ...

In vb6, how do I have the open file dialog display files in detail mode?

Need to set the default file display in a vb6 openfiledialog. ...

Global exception handler in VB 6

I'm pretty sure the answer is no, but does anyone know of a way to create a global exception handler for VB 6? ...

How do I return an array/list/collection of objects from C# to VB6

I am creating a COM Visible C# object to proxy calls to a webservice for VB6 application. I have a method that returns an array of objects. public DocActionReport[] DocActionReportByDateRange(System.DateTime reportStartDate, System.DateTime reportEndDate) { object[] results = this.Invoke("DocActionReportByDateRange", new obj...

Changing Line Color in MSChart Control using Visual Basic 6

Hi, I am working on a Growth Chart using MS Chart Control in VB6. Can someone tell me how can I change color of each line in the diagram. Also I am trying to get the value of the data in the line graph. Thanks, AG ...