Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
AxWindowsMediaPlayer.launchURL (VB and C#)
The launchURL method sends a URL to the user's default browser to be rendered.
[Visual Basic] Public Overridable Sub launchURL( bstrURL As String ) [C#] public virtual void launchURL ( string bstrURL );
Parameters
bstrURL
The System.String that is the URL to launch.
Remarks
This method only opens Web pages using the HTTP or HTTPS protocols.
Example Code
The following example creates a button that, when clicked, displays the Microsoft Web site in a new browser window. The AxWMPLib.AxWindowsMediaPlayer object is represented by the variable named player.
[Visual Basic]
Public Sub goToMS_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles goToMS.Click
' Open the Microsoft Web site.
player.launchURL("https://www.microsoft.com")
End Sub
FakePre-f3595b1566ba46b68b82d44311ca0a54-a2a686a30a264c6aaf76d10f83c4803d
private void goToMS_Click(object sender, System.EventArgs e)
{
// Open the Microsoft Web site.
player.launchURL("https://www.microsoft.com");
}
Requirements
Version: Windows Media Player 9 Series or later
Namespace: AxWMPLib
Assembly: AxInterop.WMPLib.dll (automatically generated by Visual Studio)
See Also
| Previous | Next |