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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Filip Wtterwulghe

    send windows message from Application to VB6 ActiveX UserControlsthat 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
  • mayayana

    #2
    Re: send windows message from Application to VB6 ActiveX UserControlstha t are a IE webPage .

    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.

    --
    _______________ ______________

    mayayXXana1a@mi ndYYspring.com
    For return email remove XX and YY.
    _______________ ______________
    Filip Wtterwulghe <filipw_nospam@ nospamc3.be> wrote in message
    news:41a1b469$0 $30701$ba620e4c @news.skynet.be ...[color=blue]
    > 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[/color]


    Comment

    • Filip Wtterwulghe

      #3
      Re: send windows message from Application to VB6 ActiveX UserControlstha tare a IE webPage .

      Hello,

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

      Greetings,

      Filip W.
      c3

      mayayana wrote:[color=blue]
      > 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.
      >
      > --
      > _______________ ______________
      >
      > mayayXXana1a@mi ndYYspring.com
      > For return email remove XX and YY.
      > _______________ ______________
      > Filip Wtterwulghe <filipw_nospam@ nospamc3.be> wrote in message
      > news:41a1b469$0 $30701$ba620e4c @news.skynet.be ...
      >[color=green]
      >>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[/color]
      >
      >
      >[/color]

      Comment

      • mayayana

        #4
        Re: send windows message from Application to VB6 ActiveX UserControlstha tare a IE webPage .

        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.

        --
        _______________ ______________

        mayayXXana1a@mi ndYYspring.com
        For return email remove XX and YY.
        _______________ ______________
        Filip Wtterwulghe <filipw_nospam@ nospamc3.be> wrote in message
        news:41a31b20$0 $7825$ba620e4c@ news.skynet.be. ..[color=blue]
        > Hello,
        >
        > thanks for your reply . I would also like to know how to send a message .
        >
        > Greetings,
        >
        > Filip W.
        > c3
        >
        > mayayana wrote:[color=green]
        > > 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.
        > >
        > > --
        > > _______________ ______________
        > >
        > > mayayXXana1a@mi ndYYspring.com
        > > For return email remove XX and YY.
        > > _______________ ______________
        > > Filip Wtterwulghe <filipw_nospam@ nospamc3.be> wrote in message
        > > news:41a1b469$0 $30701$ba620e4c @news.skynet.be ...
        > >[color=darkred]
        > >>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[/color]
        > >
        > >
        > >[/color][/color]


        Comment

        • Filip Wtterwulghe

          #5
          Re: send windows message from Application to VB6 ActiveX UserControlstha tarea IE webPage .

          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:[color=blue]
          > 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.
          >
          > --
          > _______________ ______________
          >
          > mayayXXana1a@mi ndYYspring.com
          > For return email remove XX and YY.
          > _______________ ______________
          > Filip Wtterwulghe <filipw_nospam@ nospamc3.be> wrote in message
          > news:41a31b20$0 $7825$ba620e4c@ news.skynet.be. ..
          >[color=green]
          >>Hello,
          >>
          >>thanks for your reply . I would also like to know how to send a message .
          >>
          >>Greetings,
          >>
          >>Filip W.
          >>c3
          >>
          >>mayayana wrote:
          >>[color=darkred]
          >>> 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.
          >>>
          >>>--
          >>>____________ _______________ __
          >>>
          >>>mayayXXana1a @mindYYspring.c om
          >>>For return email remove XX and YY.
          >>>____________ _______________ __
          >>>Filip Wtterwulghe <filipw_nospam@ nospamc3.be> wrote in message
          >>>news:41a1b46 9$0$30701$ba620 e4c@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
          >>>
          >>>
          >>>[/color][/color]
          >
          >[/color]

          Comment

          Working...