VB6 Webbrowser - Fill text field that has mask

Asked

Viewed 471 times

1

Hello,

I created a VB6 program (I know VB6 is very old, but it still works very well) that assists in filling out data on a page using Webbrowser, and I need this program to partially fill in a text field that has a mask, but when setting "value" the mask is not triggered and then if you try to enter the rest of the data the value that the program set is lost.

In order for the mask to be triggered you need to call an event from this field, so I would like to know how to do the code below on VB6:

var evento = new Event('input');
document.getElementById(idCampo).dispatchEvent(evento);

1 answer

0


I got it, on VB6 I used it to call the necklace event:

WebBrowser.Document.GetElementById(idCampo).FireEvent "onpaste"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.