5、te sub opena-click () on error resume next commondialog1.filter ="video file (*.dat)∣*.dat∣wave file (*.wav)∣avi file (*.avi)∣(*.avi)∣movie file (*.mov)∣(*.mov)∣media file (*.mmm)∣(*.mmm)∣mid file (*.mid;*.rmi)∣(*.mid;*.rmi)∣mpeg file (*.mpeg)∣(*.mpeg)∣all file (*.*)∣*.*" 8用心爱心专心commondialog1.
6、filterindex =1 commondialog1.showopen activemove1.filename = commondialog1. filename activemove1.height = form1.height activemove1.width =form1.width activemove1.run end sub 这是对单个的activemovie1进行控制。还可以在“文件”(file)中依次加入子菜单:“打开b画面”(openb)、“打开c画面”(openc),并相应地加入activemovie2、 activemovie3等多个画面,将上述程序代
7、码略为改动后加入。这样,当您按下f5键即运行程序,打开您想要播放的vcd文件就可以欣赏vcd了。在屏幕上单击右键,还可以控制画面呢! 现在是否就满足了呢?不行!我们再增加一个用鼠标任意拖动屏幕的功能: private sub activemovie1-mousedown (button as integer ,shift as integer ,x as single ,y as single) 8用心爱心专心activemovie1.drag 1 x1=x y1=y