473,418 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 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 6506
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.