[Help]Music dont plays

Posts 1–15 of 17 · Page 1 of 2
[Help]Music dont plays
Code:
AxWindowsMediaPlayer2.URL = ListBox1.SelectedItem
I cant find the error.. whan I hit it I dotn get any error But music dont playss

Anotehr Question.. How I make a Textbox That contains the current URL of the webbrowser?
If Im in google and I search anything I want a Textbox that contains the url of the Google Search..
AxWindowsMediaPlayer2.URL = ListBox1.SelectedItem.ToString?

ListBox1.SelectedItem is a generic Object type. You have to say that you want it to be a string.

If you put this at the very top of your code, it will warn you about these things.
[highlight=vb.net]Option Strict On[/highlight]

Well it dont plays the song It says Play Song in the WinPlAYER but nothing.. a

also can i get help with the webbrowser question?
What do you need help with the browser..?
Click on the Web Browser in the Form Designer and click on the lightning bolt. Double click inside the box next to DocumentCompleted and put this inside the Sub.

TextBox1.Text = WebBrowser1.Url.ToString

It should look something like this:
[highlight=vb.net]Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles WebBrowser1.DocumentCompleted
TextBox1.Text = WebBrowser1.Url.ToString
End Sub[/highlight]
Omg i never think that haha thanks!

Also another and last question In a website theres an Item that sometimes appear and crash my Code how I make the webbrowser check If that Item Exists at the moment?
Im using this but dotn work..
Code:
 If WebBrowser1.Document.All("Reanalyse-url").Enabled = True Then
            Button4.Show()
        End If
Quote Originally Posted by alvaritos View Post
Omg i never think that haha thanks!

Also another and last question In a website theres an Item that sometimes appear and crash my Code how I make the webbrowser check If that Item Exists at the moment?
Im using this but dotn work..
Code:
 If WebBrowser1.Document.All("Reanalyse-url").Enabled = True Then
            Button4.Show()
        End If
Code:
If WebBrowser1.DocumentText.ToLower.Contains("whatever") Then
Button4.Show()
End If
not sure , i didn't get it how ur code crash anyway
Okay dont works.. it dont detect anything.. xD
Also
Code:
If WebBrowser1.Contains("") Then
            Button4.Show()
How I make it work.. I dont know wheres the error
Well im trying to do taht a button makes the Webrowser checks if a label or textsbox or something is enabled (if it is on the screen)
If WebBrowser1.Document.GetElementById("Reanalyse-url").Enabled

That? :/
so u want if u type in ur textbox it will search on google ?

button1

Code:
 Process.Start("http://www.google.com/search?btnG=1&pws=0&q=" & TextBox1.Text)
Quote Originally Posted by pushdis15 View Post
so u want if u type in ur textbox it will search on google ?

button1

Code:
 Process.Start("http://www.google.com/search?btnG=1&pws=0&q=" & TextBox1.Text)
Where did you get that he wanted to google search from lol...

[at]Thread, I still don't understand exactly what you want ...
I think he want check if a button in a website is enabled or something..
Posts 1–15 of 17 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Talk with us