CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Guest

    ActiveX-Controls at DHTML-Pages

    I would use ActiveX-Controls at DHTMLPages, i say also. My ActiveX-Controls are using Evenst, but this Events not fired.

    At Forms their was perfect.

    What's happend ??? Please Help


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: ActiveX-Controls at DHTML-Pages

    Can you explain a little more what the problem is? Like which events aren't firing for what controls. When you say ActiveX control, do you actually mean like you created a cab file that intalls over the internet and runs the control, or more like User Documents?

    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Jan 2000
    Location
    Germany
    Posts
    8

    Re: ActiveX-Controls at DHTML-Pages

    Hello
    I mean ActiveX-Controls they are made at VB. That's a input for Text and masked some keys, depenting a property.
    This Property are alphanumeric, real, integer, money or date. All invalid keys are masked.
    I Use them at DHTML-Page. Events like Click DblClick i fired with 'RaiseEvent Click', but nothing doing at DHTML-Page.
    At VB_Forms this same Control are Works. Think it's problem with event-Object for Document.


  4. #4
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: ActiveX-Controls at DHTML-Pages

    When coding for the web, some of the event names are different. Like the Click event in VB becomes OnClick and Load becomes OnLoad. Try renaming some of your event names to their equivalent for the web and see what happens. KeyPress becomes OnKeyPress and MouseOver becomes two events: OnMouseOver and OnMouseOut.

    I can't think of any other reasons why this might be happening, but give it a try - what can it hurt.

    hope this helps a little,

    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  5. #5
    Join Date
    Jan 2000
    Location
    Germany
    Posts
    8

    Re: ActiveX-Controls at DHTML-Pages

    thanks, but thats not the solution

    That's my Example


    1. Open new VB-Project "ActiveX Control"

    2. Put a Standard-Textbox, named cText

    3. Insert Code

    Event onClick()

    private Sub cText_Click()

    RaiseEvent onClick

    End Sub




    4. Add VB-Project "DHTML-Application"

    5. Put my own Control on it

    6. Write this code


    private Sub CtrlText1_onClick()

    MsgBox "onCLick"

    End Sub




    Debug-Mode: Event cText_Click fired, but CtrlText1_onClick is not fired.


    Replace 4. with Add VB-Project "Standard EXE"

    5. and 6. the same

    Result: Both Events are fired.


    Replace 5. with Add a HTML-Textbox on the DHTML-Page

    Also both Events are fired


    ?????
    ? ?
    ?
    ?
    ?
    ?
    ?
    ?

    ???
    ???



    Today i made a Control with ATL on VC++, this Events are OK but i don't speak C++.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured