troubleshooting Question

Adding code to KeyPress in DOM prevents letters from being displayed in INPUT control (text).

Avatar of scottmichael2
scottmichael2 asked on
Visual Basic Classic
2 Comments1 Solution232 ViewsLast Modified:
Here is the situation.  I have a VB 6.0 app that accesses the DOM of an open IE Window (I'm not using the WebBrowser control, just the MS HTML Object Library - mshtml).  I'm capturing the events of the DOM and adding items to a ListBox control.  However, it doesn't seem to matter even if there is no code in the procedure:

Private Function md_onkeypress() As Boolean
    'lstEvents.AddItem "d_onkeypress"
End Function

md is an HTMLDocument object from an IE Window.  The only way that it will allow me to type certain charaters is to totally comment out the entire event procedure.  It won't even work with the lstEvents.AddItem "d_onkeypress" code commented out.  However, the backspace key does work.

I appreciate any help you can give me!

Thanks,
Scott
ASKER CERTIFIED SOLUTION
AzraSound

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros