[VB.NET] How to link button to my website ?
2014-02-27, 07:09 PM,
#1
I need just quick help by you guys. So, I'm currently making some projects on VB.NET and need to connect button, which is in form1 to my website link.

So, to simple it more. In form1 there is a button, i need code that will fit in buttoncommand and run the website in the internet browser after clicking on button.

i think i explained it as simple as i could :D please help.
PS : I remember code was really short. few words and ("www.website.com"). smthng like that, lal

[Image: yLsq4.gif]
2014-02-27, 07:27 PM,
#2
maybe this is what you need
Code:
MsgBox("Your message/Words", MsgBoxStyle.YesNo, "Message Title goes here")
        If MsgBoxStyle.YesNo Then
            System.Diagnostics.Process.Start("YOUR WEBSITE GOES HERE")
        End If
Latest Thanks - View all

TheMozak(2014-02-27 07:31 PM) 
2014-02-27, 07:31 PM,
#3
System.Diagnostics.Process.Start("YOUR WEBSITE GOES HERE")

that is the code I needed. Thank you ;)

[Image: yLsq4.gif]
2014-02-27, 07:34 PM,
#4
2014-02-28, 07:43 PM,
#5
All you need is to add Process.Start("url") in the Button click event and the website will open automatically on the client's default browser.

"The master has failed more times than the beginner has even tried"

My VIP Shares:
How to stop Chrome from blocking PPI installers
How to make advanced, custom messageboxes that match your theme in VB.

PM ME FOR A 99% OFF DISCOUNT ON HOSTWINDS
2014-02-28, 07:46 PM,
#6
The code you should try is:
Code:
System.Diagnostics.Process.Start("www.yoursite.com")

How to implement that:
1. Create a button and call it something like: visit my site (or so..)
2. Double click
3. Add the code
4. Test it :)

Please PM me if it didn't worked and I will open the thread again for more suggestions!


Possibly Related Threads...
Thread Author Replies Views Last Post
  Aeonsofts VB.NET Theme Manager v2.1 lanzye 32 10,319 2017-10-28, 04:51 PM
Last Post: waiphyoe
  Button + iframe hopsa 3 306 2017-09-21, 07:18 PM
Last Post: FlyingCactus
  I'll create your website for free wadadli 5 339 2017-08-26, 11:34 AM
Last Post: vegetajgd
  [TUTORIAL]Get free premium fonts from myfonts website Raman saab 26 5,582 2017-07-28, 07:01 PM
Last Post: tamerimran
  How to make step content in website 5light 0 187 2017-07-24, 11:04 AM
Last Post: 5light





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top