hello , etc , i have form1 and form2 , form2 have a WindowsMediaPlayer1 and in form1 it have a button and its code is like :

Form2.Show
WindowsMediaPlayer1.URL = "c:\Users\lapi\Desktop\DOWNLOADED\365.wmv"

but its gave me error that thhis object its not in form1

is there a way to controll it at form1 ??

Recommended Answers

try this

Form2.WindowsMediaPlayer1.URL = "c:\Users\lapi\Desktop\DOWNLOADED\365.wmv"
Jump to Post

All 3 Replies

try this

Form2.WindowsMediaPlayer1.URL = "c:\Users\lapi\Desktop\DOWNLOADED\365.wmv"

can u tell me how to disable right click in WindowsMediaPlayer1 ?like when project is run when u right click on this object its anoyying thing

thank you so much :) debasisdas

New question should go to a new thread.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.