vb 2010中的文本框帮助 [英] help with text box in vb 2010
本文介绍了vb 2010中的文本框帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因此,我试图创建一个应用程序,即用户在文本框中输入url,然后程序将输入内容转换为https url示例http://www.google.com转换为https://www.google .com,然后它在Internet Explorer中打开,可以有人帮我吗
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
推荐答案
这是一种简单的方法.希望对您有所帮助:
This here is one simple approach. Hopefully it helps:
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
这篇关于vb 2010中的文本框帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文