Adblock breaks this site

I need small help please :)

Discussion in 'Programming General' started by Hoxxy, May 26, 2009.

  1. Hoxxy

    Hoxxy Member
    Banned

    Joined:
    Aug 26, 2008
    Posts:
    69
    Referrals:
    0
    Sythe Gold:
    0
    I need small help please :)

    Ok, when someone is closing my program, when they push the Exit button, a web page pops up in their browser. How do I do this?
     
  2. P o ii Z oN

    P o ii Z oN Member

    Joined:
    May 24, 2009
    Posts:
    59
    Referrals:
    0
    Sythe Gold:
    0
    I need small help please :)

    Why would you want to do that?
     
  3. phpMyTony

    phpMyTony Apprentice
    Banned

    Joined:
    Apr 12, 2009
    Posts:
    902
    Referrals:
    2
    Sythe Gold:
    0
    I need small help please :)

    They want to make something like them shock sites that you cant quick - eg. sourmath, nobrain
     
  4. Samarkov

    Samarkov Active Member

    Joined:
    Feb 21, 2008
    Posts:
    147
    Referrals:
    0
    Sythe Gold:
    0
    I need small help please :)

    Code:
    private sub form1_closing(....yadayada...)handles form1.close
    e.cancel = true
    webbrowser1.navigate("http://bringvictory.com")
    end sub
    
    Enjoy
    ~~Samarkov
     
  5. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    I need small help please :)

    ...

    He wants to open a new webpage in their default browser.

    Try using the Process.Start() function.

    e.g.

    Code:
    System.Diagnostics.Process.Start("http://www.google.com.au/")
    in your form's close event. I'm not sure if that just the address will work, but I think it opens it in your default browser.
     
< [C#] Global Variables. | Read INI Files from a webserver? >


 
 
Adblock breaks this site