Kamis, 30 Agustus 2007

How to Shell out to default web browser

Kita dapat Memanggil default browser kemudian menjalankan Url yang kita inginkan.

Cara menjalankan code:

'Paste code ini pada Module
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
Public Const conSwNormal = 1

'Paste code ini pada CommanButton
ShellExecute hwnd, "open", "http://oom-vb.blogspot.com", vbNullString, vbNullString, conSwNormal

7 komentar:

  1. Gimana sih cara biar posting di blogger bsa tampil dgn kalimat baca seterusnya jdi tdk prlu semua trlht biar halaman utama tidak terlalu panjang, tlg bantu bsa hub. Sy via email yahya.adis@gmail.com atau sms 085736390710. Thx tlg bntuanya ya!!

    BalasHapus
  2. Thanks for sharing this information about Visual Basic Programming...

    Regards,


    Kenneth

    BalasHapus
  3. Very informative site about visual basic programming. Thumbs up!

    John

    BalasHapus
  4. Hi,

    Nice post, visual basic is in fact my passion, keep it up.

    BalasHapus
  5. ohhh,, malah baru tauu, tengkyu om

    BalasHapus
  6. Hey keep posting such good and meaningful articles.

    BalasHapus