walker Posted December 3, 2013 Report Posted December 3, 2013 (edited) am incercat sa fac un buton care sa faca trimiterea spre un link Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click System.Diagnostics.Process.Start("https://rstforums.com/forum/78258-cum-pun-link-visual-basic.rst") End SubEnd Classdar nu mergefolosesc visual basic 2010 expressam uploadat proiectul aici http://www76.zippyshare.com/v/26651720/file.html Edited December 3, 2013 by walker Quote
TheTime Posted December 3, 2013 Report Posted December 3, 2013 System.Diagnostics.Process.Start("https://rstforums.com/forum/members/thetime/")Vezi ca ai pus wwww.rstforums.com in url. Quote
walker Posted December 3, 2013 Author Report Posted December 3, 2013 am modifcat inainte sa vad ce ai scris nu imi aduc aminte sa fi facut asta,am incercat din nou,am pus si proiectul in primul postproblema este ca nu se deschide linkul in browser,daca era link gresit se deschdea in browser si zicea ca este invalid Quote
Oust Posted December 3, 2013 Report Posted December 3, 2013 (edited) Poftim, poti inlocui ie.exe cu orice browser vrei, sau poti sa-l faci sa verifice daca are chrome sa se deschida cu chrome daca are firefox sa se deschida cu firefox, sau poti sa-l faci sa se deschida cu browserul default, doar ca-ti trebuie putina imaginatie.O metoda: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click System.Diagnostics.Process.Start("http://www.yourwebsite.com") End SubA doua metoda: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Shell("C:\Program Files\Internet Explorer\iexplore.exe https://rstforums.com/forum/78258-cum-pun-link-visual-basic.rst#post502904") End SubLe-am testat pe ambele in VS 2013, functioneaza perfect. Prima imi face un nou tab in Chrome care este browserul meu default iar a doua imi deschide cu internet explorer. Edited December 3, 2013 by Oust Quote
walker Posted December 3, 2013 Author Report Posted December 3, 2013 credeam ca ce am pus eu o sa se deschida cu browser default,dar nu se deschide nici cumam incercat si cum ai zis tu Oust asa primesc ceva erroare,sunt incepator in visual basic asa am incercat si eu dar nu merge Quote
Oust Posted December 3, 2013 Report Posted December 3, 2013 Ce eroare? Inseamna ca nu ai instalat ceva, ai instalat VS aiurea sau nu ai vreun runtime ceva... Pune eroarea aici. Quote
walker Posted December 3, 2013 Author Report Posted December 3, 2013 (edited) am intrat din nou si acum merge,nu stiu ce a avut,mersi de ajutor baieti Edited December 4, 2013 by walker Quote