How would I convert this to VB.NET.
VB Code:
AxShockwaveFlash1.Movie(App.Path & "\XML_FLV_player.swf")
I don't think this is correct
VB Code:
AxShockwaveFlash1.Movie(Application.StartupPath & "\XML_FLV_player.swf")
Printable View
How would I convert this to VB.NET.
VB Code:
AxShockwaveFlash1.Movie(App.Path & "\XML_FLV_player.swf")
I don't think this is correct
VB Code:
AxShockwaveFlash1.Movie(Application.StartupPath & "\XML_FLV_player.swf")
that should be correct. is it not working for you?
make sure that the XML_FLV_player.swf is in the BIN folder
Well I am not sure I get this error when I run the application
C:\Documents and Settings\Don\My Documents\Visual Studio Projects\FLV Player\Form1.vb(132): Property access must assign to the property or use its value.
I think you are trying to use a property as a method..
try
VB Code:
AxShockwaveFlash1.Movie = Application.StartupPath & "\XML_FLV_player.swf"
Hey thanks that worked great. One more question regarding the app.path,
When I write my xml file I want to write to the application path. I guess in this case write to the bin. Is this correct?
VB Code:
Dim textWriter As XmlTextWriter = New XmlTextWriter(Application.StartupPath & "flv.xml", Nothing)
yes, while developing in the IDE, the BIN folder will be your application.startuppath, because that is where the IDE compiles the exe to before it runs it..Quote:
Originally Posted by Navarone
just remember that application.startuppath does NOT include the ending \ so you need to include that when specifying a file
VB Code:
Application.StartupPath & "\flv.xml"
hey thanks, thats done it! :D