Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Katie_Perry's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    3,082
    Reputation
    31
    Thanks
    175
    My Mood
    Sneaky

    Code For: Button Click = Web Link

    Visual basics 2008 Express Edition


    Yes, ok lets say Button_1 i put on Windows Application, and whats the code, if i want it, when click lets say it opens Google

    Thanks

  2. The Following User Says Thank You to Katie_Perry For This Useful Post:

    I_Keylogger (10-05-2009)

  3. #2
    legendaryhack b leet's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    42
    Reputation
    11
    Thanks
    4
    My Mood
    Breezy
    try

    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            System.Diagnostics.Process.Start("https://www.mpgh.net")
    End Sub
    I'm not to good with vb08, and can't test that.

    I can guarantee
    Code:
    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
    
    Private Sub command1_Click()
          ShellExecute Me.hwnd, vbNullString, "https://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL
    End Sub
    will work for vb6.0
    Last edited by legendaryhack b leet; 09-30-2009 at 03:37 AM.

  4. The Following User Says Thank You to legendaryhack b leet For This Useful Post:

    Katie_Perry (09-30-2009)

  5. #3
    Ugleh's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    House, Where you live?
    Posts
    276
    Reputation
    17
    Thanks
    221
    My Mood
    Blah
    what he said.

  6. #4
    Katie_Perry's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    3,082
    Reputation
    31
    Thanks
    175
    My Mood
    Sneaky
    Thanks!

    Wait the Thanks button is gone =X

    Close please =D

  7. #5
    legendaryhack b leet's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    42
    Reputation
    11
    Thanks
    4
    My Mood
    Breezy
    Refresh the page and it will be there

    Although this is a secondary account so doesn't really matter.

  8. #6
    JIGS4W's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    2,906
    Reputation
    48
    Thanks
    156
    Code:
    Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            WebBrowser1.Navigate(TextBox1.Text)
        End Sub
    End Class
    Ima beginner too . I just finish watching the tut video on it^
    so im not 100% sure that it will work.
    Im chooby in vb cuz i just started. i wanna learn more
    Last edited by JIGS4W; 09-30-2009 at 06:46 AM.


  9. #7
    K4GE's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    311
    Reputation
    13
    Thanks
    65
    My Mood
    Inspired
    Quote Originally Posted by randomhacker View Post
    Code:
    Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            WebBrowser1.Navigate(TextBox1.Text)
        End Sub
    End Class
    Ima beginner too . I just finish watching the tut video on it^
    so im not 100% sure that it will work.
    Im chooby in vb cuz i just started. i wanna learn more
    It will work like that,
    but you need to add a webbrowser and a textbox first.
    If you need any info on VB, or need some tutorials, PM me and ill be happy to help you out.

  10. #8
    legendaryhack b leet's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    42
    Reputation
    11
    Thanks
    4
    My Mood
    Breezy
    What does the textbox do in that?

    Do you like type the website name in it or something?

  11. #9
    JIGS4W's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    2,906
    Reputation
    48
    Thanks
    156

    Here is my very crappy vb project. feel free to laugh, its my first vb ive ever done
    btw its a program to browse websites with

    Quote Originally Posted by K4GE View Post
    It will work like that,
    but you need to add a webbrowser and a textbox first.
    If you need any info on VB, or need some tutorials, PM me and ill be happy to help you out.
    Ill definitely PM you if I need help with vb lol
    Quote Originally Posted by legendaryhack b leet View Post
    What does the textbox do in that?

    Do you like type the website name in it or something?
    I think its for typing the website. Not sure... still learning.
    Last edited by JIGS4W; 09-30-2009 at 06:59 AM.


  12. #10
    legendaryhack b leet's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    42
    Reputation
    11
    Thanks
    4
    My Mood
    Breezy
    Looking at your picture, that would be a yes.

  13. #11
    K4GE's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    311
    Reputation
    13
    Thanks
    65
    My Mood
    Inspired
    You type the website in the TextBox, and then click a button.
    Then the button will 'navigate' the webbrowser to the text inside the textbox.
    You can compare it with a normal webbrowser (like firefox, internet explorer, safari,etc..).
    Look at this image i made:
    [img]https://i463.photobucke*****m/albums/qq353/jordidepo/naamloos-1.jpg[/img]
    I hope you understand it now. (:

  14. #12
    legendaryhack b leet's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    42
    Reputation
    11
    Thanks
    4
    My Mood
    Breezy
    Button1 on firefox is the green arrow as such

    But yes to the thread starter, what I posted is what you are looking for you can use this in a different instance

  15. #13
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    process.start("https://Mpgh.net/")
    -Rest in peace leechers-

    Your PM box is 100% full.

  16. #14
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by legendaryhack b leet View Post
    try

    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            System.Diagnostics.Process.Start("https://www.mpgh.net")
    End Sub
    I'm not to good with vb08, and can't test that.

    I can guarantee
    Code:
    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
    
    Private Sub command1_Click()
          ShellExecute Me.hwnd, vbNullString, "https://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL
    End Sub
    will work for vb6.0
    btw if you want that vb6 command to work in vb2008 just replace command1 with button1 and replace Me.hwnd with Me.Handle ( handle is the vb.net form of hwnd)

  17. #15
    LegendaryAbbo's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    5,243
    Reputation
    23
    Thanks
    546
    My Mood
    Relaxed
    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ShellExecute Me.Handle, vbNullString, "https://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL
    End Sub
    So that?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help] Need code for button
    By Mokou-Sama in forum Visual Basic Programming
    Replies: 3
    Last Post: 07-09-2011, 02:15 PM
  2. Whats the code for a link lable
    By zmansquared in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 7
    Last Post: 12-17-2009, 04:35 PM
  3. click this link so i can get nx for ca
    By farsight13 in forum General
    Replies: 8
    Last Post: 09-20-2009, 02:48 AM
  4. Click The Link For The Time Of Your Life!
    By -TM- in forum Spammers Corner
    Replies: 0
    Last Post: 03-24-2008, 02:22 PM
  5. Replies: 37
    Last Post: 06-20-2006, 04:24 PM

Tags for this Thread