Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
so im trying to make a application were the user types the url in the text box,then the program converts there input to a https url example http://www.google.com converts to https://www.google.com and then it opens in internet explorer can some one please help me
Posted
Comments
Sergey Alexandrovich Kryukov 23-Jul-12 0:01am    
Is it ASP.NET? Some windows application using HTTP/HTTPS? Tag the application type or UI library you want to use, explain what you want to achieve in proper detail. This is not a question. What's your problem? Where did you stuck? Ask your questions.
--SA

1 solution

This here is one simple approach. Hopefully it helps:
VB
Private Sub button1_Click(sender As Object, e As EventArgs)
    Dim res As String = textBox1.Text.Replace("http:", "https:")
    System.Diagnostics.Process.Start(res)
End Sub
 
Share this answer
 
Comments
Member 7654601 23-Jul-12 0:09am    
worked like a treat thanks for the answer :)
JF2015 23-Jul-12 0:10am    
I'm glad that it worked. Please accept and upvote my answer if it helped you! Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900