Simple SWF Loader
Posted: Sun Feb 06, 2011 8:45 am
I have seen these around but I thought I would make a simple tutorial.
Add a panel and dock fill it Top
Put a textbox and a button inside.
Add a web browser and dock it to fill
First, Add this code to the button1.Click
Add this code:
tell me what you think
Add a panel and dock fill it Top
Put a textbox and a button inside.
Add a web browser and dock it to fill
First, Add this code to the button1.Click
Code: Select all
Next, lets make it so the Enter key will also load the SWF, click the Textbox and in the properties click the Event button scroll down to KeyUp and double click it. If TextBox1.Text.Contains("swf") = True Then
WebBrowser1.Navigate(TextBox1.Text)
Else
MsgBox("You can only load SWF Files!")
End If
Add this code:
Code: Select all
Pretty simple If e.KeyCode = Keys.Enter Then
If TextBox1.Text.Contains("swf") = True Then
WebBrowser1.Navigate(TextBox1.Text)
Else
MsgBox("You can only load SWF files!")
End If
End If
