Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionweb2.document.setfocus cela ne fonctionne pas
ou can only move the focus to a visible form or control. Because a form and controls on a form aren't visible until the form's Load event has finished, you can't use the SetFocus method to move the focus to the form being loaded in its own Load event unless you first use the Show method to show the form before the Form_Load event procedure is finished.
You also can't move the focus to a form or control if the Enabled property is set to False. If the Enabled property has been set to False at design time, you must first set it to True before it can receive the focus using the SetFocus method.
mais il ne dit pas que ce n'est pas possible
to a visible form or control
Private Sub Command1_Click() WebBrowser1.Visible True ' car si false, ne peut bien évidemment decevoir le focus WebBrowser1.SetFocus End Sub Private Sub WebBrowser1_GotFocus() MsgBox "coucou ! ici " & ActiveControl.Name & "! Alors ? tu vois bien que j'ai répondu au Serfocus, non ?" End Sub
Bien que ce soit un fichier DLL, il s'agit bien d'un composant "affichable"