By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,953 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,953 IT Pros & Developers. It's quick & easy.

send windows message from Application to VB6 ActiveX UserControlsthat are a IE webPage .

P: n/a
Hello,

We have a number of VB6 ActiveX applicationmodule(s) that are loaded
into a IE6 WebBrowserControl . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodules that are in IEWebbrowser .

Contains Contains
Application X ------------> IE WebControl -------------> Vb6 ActiveX A
Contains
-------------> Vb6 ActiveX B

send message to ActiveX A,B,C,D,....
---------------------------------------------------->
How Can this be done ?

Hoping to hear from you .

Filip W.
C3
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
That sounds like something you'd want to do
with DHTML. If the controls have ID attributes
you can do it that way:

AXObj = WB.Document.all.item("Name1")

If not, you can go through the all collection:

For i = 0 to WB.Document.all.Length - 1
if WB.Document.all(i).tagname = "OBJECT" then
'-- send the message.

--
_____________________________

ma**********@mindYYspring.com
For return email remove XX and YY.
_____________________________
Filip Wtterwulghe <fi***********@nospamc3.be> wrote in message
news:41***********************@news.skynet.be...
Hello,

We have a number of VB6 ActiveX applicationmodule(s) that are loaded
into a IE6 WebBrowserControl . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodules that are in IEWebbrowser .

Contains Contains
Application X ------------> IE WebControl -------------> Vb6 ActiveX A
Contains
-------------> Vb6 ActiveX B

send message to ActiveX A,B,C,D,....
---------------------------------------------------->
How Can this be done ?

Hoping to hear from you .

Filip W.
C3

Jul 17 '05 #2

P: n/a
Hello,

thanks for your reply . I would also like to know how to send a message .

Greetings,

Filip W.
c3

mayayana wrote:
That sounds like something you'd want to do
with DHTML. If the controls have ID attributes
you can do it that way:

AXObj = WB.Document.all.item("Name1")

If not, you can go through the all collection:

For i = 0 to WB.Document.all.Length - 1
if WB.Document.all(i).tagname = "OBJECT" then
'-- send the message.

--
_____________________________

ma**********@mindYYspring.com
For return email remove XX and YY.
_____________________________
Filip Wtterwulghe <fi***********@nospamc3.be> wrote in message
news:41***********************@news.skynet.be...
Hello,

We have a number of VB6 ActiveX applicationmodule(s) that are loaded
into a IE6 WebBrowserControl . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodules that are in IEWebbrowser .

Contains Contains
Application X ------------> IE WebControl -------------> Vb6 ActiveX A
Contains
-------------> Vb6 ActiveX B

send message to ActiveX A,B,C,D,....
---------------------------------------------------->
How Can this be done ?

Hoping to hear from you .

Filip W.
C3


Jul 17 '05 #3

P: n/a
Maybe you could explain it more. Are you sure
you know exactly what it is that you want to do?

There's no such thing as an "applicationmodule" so I
assume you mean an ActiveX control. In that case, it's
in the webpage as an object and can be accesses
through DHTML by getting the document object. You can
then access the COM properties and methods of the
control that way. (If you want to send an API message then why
not just build that into the COM interface? That's what ActiveX
is for.)

Also, I notice that you also posted to a dotnet group.
If you're using "VB.Net":
This is a VB group, as are most of the groups that you
posted to. VB has very little in common with .Net. They are
both "VB" only inside the strange confines of the Microsoft
marketing dept.
Most of the people here don't use .Net. If you're using .Net
then you should just post to those newsgroups. The answers
here will probably not be relevant for you.

--
_____________________________

ma**********@mindYYspring.com
For return email remove XX and YY.
_____________________________
Filip Wtterwulghe <fi***********@nospamc3.be> wrote in message
news:41**********************@news.skynet.be...
Hello,

thanks for your reply . I would also like to know how to send a message .

Greetings,

Filip W.
c3

mayayana wrote:
That sounds like something you'd want to do
with DHTML. If the controls have ID attributes
you can do it that way:

AXObj = WB.Document.all.item("Name1")

If not, you can go through the all collection:

For i = 0 to WB.Document.all.Length - 1
if WB.Document.all(i).tagname = "OBJECT" then
'-- send the message.

--
_____________________________

ma**********@mindYYspring.com
For return email remove XX and YY.
_____________________________
Filip Wtterwulghe <fi***********@nospamc3.be> wrote in message
news:41***********************@news.skynet.be...
Hello,

We have a number of VB6 ActiveX applicationmodule(s) that are loaded
into a IE6 WebBrowserControl . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodules that are in IEWebbrowser .

Contains Contains
Application X ------------> IE WebControl -------------> Vb6 ActiveX A
Contains
-------------> Vb6 ActiveX B

send message to ActiveX A,B,C,D,....
---------------------------------------------------->
How Can this be done ?

Hoping to hear from you .

Filip W.
C3


Jul 17 '05 #4

P: n/a
Hello,

Thanks again for the reply . This "problem" that I have is in VB6 , not
in Dot.Net . I also do programming in Dot.Net but for this issue that is
not the case .

I understand what you are trying to say (use the COM properties using
the HTML DOM ) . But because the combination html/vbscript/activeX is
something new to me I had not thought about that .

I think that it would be better (as you said) to call a
function/propertie instead of sending a windows-message to each of the
controls ( ActiveX / OCX ) . This solution would be easier , this
because I should not subclass my OCX .

Because this new feature that I have to empliment is something for the
future I can't try it immediatly .

Thanks for your respond I will reply when I have something new to ask .

Bye,

Filip W.
C3


mayayana wrote:
Maybe you could explain it more. Are you sure
you know exactly what it is that you want to do?

There's no such thing as an "applicationmodule" so I
assume you mean an ActiveX control. In that case, it's
in the webpage as an object and can be accesses
through DHTML by getting the document object. You can
then access the COM properties and methods of the
control that way. (If you want to send an API message then why
not just build that into the COM interface? That's what ActiveX
is for.)

Also, I notice that you also posted to a dotnet group.
If you're using "VB.Net":
This is a VB group, as are most of the groups that you
posted to. VB has very little in common with .Net. They are
both "VB" only inside the strange confines of the Microsoft
marketing dept.
Most of the people here don't use .Net. If you're using .Net
then you should just post to those newsgroups. The answers
here will probably not be relevant for you.

--
_____________________________

ma**********@mindYYspring.com
For return email remove XX and YY.
_____________________________
Filip Wtterwulghe <fi***********@nospamc3.be> wrote in message
news:41**********************@news.skynet.be...
Hello,

thanks for your reply . I would also like to know how to send a message .

Greetings,

Filip W.
c3

mayayana wrote:
That sounds like something you'd want to do
with DHTML. If the controls have ID attributes
you can do it that way:

AXObj = WB.Document.all.item("Name1")

If not, you can go through the all collection:

For i = 0 to WB.Document.all.Length - 1
if WB.Document.all(i).tagname = "OBJECT" then
'-- send the message.

--
_____________________________

ma**********@mindYYspring.com
For return email remove XX and YY.
_____________________________
Filip Wtterwulghe <fi***********@nospamc3.be> wrote in message
news:41***********************@news.skynet.be.. .
Hello,

We have a number of VB6 ActiveX applicationmodule(s) that are loaded
into a IE6 WebBrowserControl . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodules that are in IEWebbrowser .

Contains Contains
Application X ------------> IE WebControl -------------> Vb6 ActiveX A
Contains
-------------> Vb6 ActiveX B

send message to ActiveX A,B,C,D,....
---------------------------------------------------->
How Can this be done ?

Hoping to hear from you .

Filip W.
C3


Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.