472,363 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,363 software developers and data experts.

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

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
4 6419
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: vinoth | last post by:
Hi, I have created WindowsService Project.In that Project OnStart Method i have written the following Code. In this code the Server is waiting for the connection from client. When the Client...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
0
by: tom.andersen | last post by:
What we want to do is send a message to all windows in our .net application. They all are based on System.Windows.Forms.Form, and we might have, say 5 of them open in our application at once....
22
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one...
2
by: iloveprincess | last post by:
Hi, I'm developing windows application using VB.Net 2005. I would like to send 'save' message using 'SendMessage' API to the excel appication. I've already got a handle of the excel window with...
1
by: Gurunadh | last post by:
Hi friends, we have developed a windows desktop application in vb.net 2005 with MS-Access as backend ,our problem is we have to display data from a datagridview to a crystal report,we have...
2
by: Mesan | last post by:
Hello everyone, Thanks to many useful posts in this newsgroup and others, I've been able to come very close to something I've been wanting to do for a very long time. I've figured out how to...
8
Atran
by: Atran | last post by:
Hello Everybody, I want to send a message to somebody email using C# I have the right code but when I run the application it shown the "ArgumentExecption was unhandled" error, it is been yellow, it...
1
by: =?Utf-8?B?RGFydGgtQ3ot?= | last post by:
Hi, I'm beginner in Visual C++ so I want to ask you a question. And I'm not good in English:D So I have the program which communicates over sockets. The program has to connect to the server and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
0
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.