Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasocket help, want to use the same(one .ocx only) in VB and HTML at the same time

I want to create one ActiveX control that can be use in VB and HTML. My control will consist 1 CommandButton, 1 TextBox and 1 Label.
My Objective is to have real time data passing between the same control which will be used at VB and HTML at the same time.
For example, from HTML if I click a button, the text at textbox at HTML will be pass to the label at VB at the same time. And vice versa where when button at VB is click, the text at textbox at VB will be pass to the label at HTML.
 
Help me.
0 Kudos
Message 1 of 6
(8,098 Views)

Hey HaveName,

What environment are you using to code in?  Are you talking about having some sort of script that will update the label in VB from HTML?  So basically the Command button updates both the label and the textbox?  How are you using DataSockets in this control?

Thanks,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 6
(8,077 Views)

Hello Sam R.,

The ActiveX will be written in VB6 with Measurement Studio6. It's some sort of tutorial lesson for me to test the capability of DataSocket.

I want to create 1 control which will act as reader and writer. I am using Windows XP with IIS as web server and testing using 1 open VB6 Form with the control and 1 HTML file with the control using Data Socket Server with dstp://localhost/something. I dont know whether I need to have the script or not, what ever can do. tell me if it is the way to do. If it can be program directly in the control is better.

Basically, yes. the command button inside the control should updates both label and textbox.

If you can say that 1 datasocket control is enough, I will follow your advice because you are the expert. 

I try before by using the example in DSReader and DSWriter but I cannot do the 'real time' updating when I click either button in VB6 or HTML page. It can only updated when I click again the commandbutton     

0 Kudos
Message 3 of 6
(8,070 Views)

Hello Sam R.,

The ActiveX will be written in VB6 with Measurement Studio6. It's some sort of tutorial lesson for me to test the capability of DataSocket.

I want to create 1 control which will act as reader and writer. I am using Windows XP with IIS as web server and testing using 1 open VB6 Form with the control and 1 HTML file with the control using Data Socket Server with dstp://localhost/something. I dont know whether I need to have the script or not, what ever can do. tell me if it is the way to do. If it can be program directly in the control is better.

Basically, yes. the command button inside the control should updates both label and textbox.

If you can say that 1 datasocket control is enough, I will follow your advice because you are the expert. 

I try before by using the example in DSReader and DSWriter but I cannot do the 'real time' updating when I click either button in VB6 or HTML page. It can only updated when I click again the commandbutton and     

0 Kudos
Message 4 of 6
(8,069 Views)
I've not seen HTML directly support ActiveX or controls that use ActiveX.  Mostly this is done through a scripting language such as JavaScript or VBScript if it is client side.  There is a Java Bean that will support datasockets.  As far as the VB side of things it's pretty straight forward.  Just do the same as the read and write examples. 
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 6
(8,057 Views)
One more thing.  You need to make sure your DataSocket server is running correctly and that you are pointing toward the right URL when reading and writing.
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 6 of 6
(8,054 Views)