www.website + label.text
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts
Page 1 of 1
Hi again, I know I am being annoyng but I am new at vb and I need some help.
I have this code in my form:
Regards
(bad english, i know )
I have this code in my form:
Code: Select all
But when I click in Button2 , the webbrowser1 navigates to Private Sub WebBrowser1_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
lblSid.Text = WebBrowser2.Document.All("sid").GetAttribute("value")
TextBox3.Text = WebBrowser1.Url.ToString
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Navigate("http://metrotv.forumaster.net/ucp.php?mode=logout&sid=" + "lblSid.Text")
End Sub
Code: Select all
, and I want it navigates http://metrotv.forumaster.net/ucp.php?mode=logout&sid=lblSid.Text
Code: Select all
What am I doing wrong ?http://metrotv.forumaster.net/ucp.php?mode=logout&sid=LBLSID TEXT HERE
Regards
(bad english, i know )
Remove the quotes around "lblSid.Text" like this:
Code: Select all
WebBrowser1.Navigate("http://metrotv.forumaster.net/ucp.php?mode=logout&sid=" + lblSid.Text)
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
CodenStuff wrote:Remove the quotes around "lblSid.Text" like this:Thanks a lot, I made very tries, this one escapes me xD
Code: Select allWebBrowser1.Navigate("http://metrotv.forumaster.net/ucp.php?mode=logout&sid=" + lblSid.Text)
P.S: This is for the phpbb3 logout button in our vb apps.
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023