VB6 WebBrowser - Fill in text field that has a mask

1

Hello,

I created a program in VB6 (I know VB6 is very old, but still works very well) which helps in filling in a page using WebBrowser, and I need this program to partially fill a text field that has a mask, but when setting the "value" the mask is not triggered and then trying to type the rest of the data the value that the program defined is lost.

In order for the mask to be triggered it is necessary to call an event from that field, so I would like to know how to do the following code in VB6:

var evento = new Event('input');
document.getElementById(idCampo).dispatchEvent(evento);
    
asked by anonymous 30.08.2015 / 23:12

1 answer

0

I managed, in VB6 I used this to call the paste event:

WebBrowser.Document.GetElementById(idCampo).FireEvent "onpaste"
    
08.09.2015 / 21:39