473,792 Members | 3,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Hello,

We have a number of VB6 ActiveX applicationmodu le(s) that are loaded
into a IE6 WebBrowserContr ol . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodu les 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 6545
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**********@mi ndYYspring.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 applicationmodu le(s) that are loaded
into a IE6 WebBrowserContr ol . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodu les 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**********@mi ndYYspring.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 applicationmodu le(s) that are loaded
into a IE6 WebBrowserContr ol . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodu les 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 "applicationmod ule" 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**********@mi ndYYspring.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**********@mi ndYYspring.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 applicationmodu le(s) that are loaded
into a IE6 WebBrowserContr ol . This WebControl is imbededded into
Application X . Now We want to send a message from Application X to all
the ActiveX applicationmodu les 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 "applicationmod ule" 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**********@mi ndYYspring.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.c om
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 applicationmodu le(s) that are loaded
into a IE6 WebBrowserContr ol . This WebControl is imbededded into
Applicati on X . Now We want to send a message from Application X to all
the ActiveX applicationmodu les that are in IEWebbrowser .

Contains Contains
Applicati on 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
4273
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 connects to the Server, the server will process and send result to the client.(This is Client Server Application. The Server side Code is implementd in th OnStart method Of Windows Service). When i tried the Client Server Application in Console...
4
7091
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 deployment project (myproj installer) I added my windows app to the installer under myproj installer properties, I set bootstrapper
0
1090
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. How would you either: A) Enumerate over a collection of all top level windows, which we can then do what we want like call begininvoke to tell each window that they might like to close,
22
6290
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 client (MS Access vs ..NET Windows Forms) would be preferred over the other. While I have some good arguments on both sides, I would appreciate your points of view on the topic.
2
2809
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 'FindWindow' API. How can I send 'save' command to external excel window? Actual thing I want to do is I can handle excel application in the winform. My client hope that all staff can use excel application in new window
1
2426
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 written the code to display in crystal reports it is working in the system in which we developed but when the setup is installed in another computer it is displaying database login screen asking for login id and password,can any one know what is the...
2
5506
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 create a new custom protocol handler in Windows to handle locations like "myProtocol:", which lets me have a shortcut pointing to "myProtocol:myPrimaryKey" and have my application automatically open and display the given account. That's great. I
8
15004
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 stop the application from running. Here is the code: using System; using System.Net.Mail; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1
1
3796
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 send and receive data. But when I start the program, there is one Socketexception - something like the program is unable to connect to the server or the server didn't answer... I apologize for my English... Thank you for advice...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9517
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10428
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10156
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9030
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.