Programmation : page internet VB.net

Utilisateur anonyme -  
 Med -
Salut , je suis en train de créer un projet en VB.net , c'est un minuteur. Quand la minuterie est finie , je voudrais qu'une page internet explorer (ou mozilla ) s'ouvre à l'adresse que j'aurais définie . Est-ce possible , si oui comment ; avez vous des idées pour faire quelque chose dans ce style
P.S.:J'ai vu qu'il y a dans visual studio 2005 un controle webbrowz (ou quleque chose comme ca) mais je ne sais pas à quoi cela sert et comment on s'en sert
Merci d'avance ...
Configuration: Windows XP
Internet Explorer 7.0

2 réponses

  1. algue
     
    http://www.infos-du-net.com/forum/264661-7-cherche-logiciel
    0
  2. Med
     
    Salut
    Méthode1:

    Private Declare Function ShellExecute Lib _
    "shell32.dll" Alias "ShellExecuteA" _
    (ByVal hWnd As Long, ByVal lpOperation _
    As String, ByVal lpFile As String, ByVal _
    lpParameters As String, ByVal lpDirectory _
    As String, ByVal nShowCmd As Long) As Long

    Const SW_SHOWNORMAL=1
    Dim URI as string="www.google.com"

    ShellExecute (0, vbNullString, URI, vbNullString, _
    vbNullString, SW_SHOWNORMAL)

    Méthode2:

    Private Sub OpenURL(URL as String)
    System.Diagnostics.Process.Start("https://www.google.com/?gws_rd=ssl")
    End Sub
    0