I have here a code for playing videos with wmp in a form.
thisform.olecontrol1.url = "C:\Users\Desktop\1.avi"
thisform.olecontrol1.height = 500
thisform.olecontrol1.width = 300
thisform.olecontrol1.uiMode = "none"
thisform.olecontrol1.STRETCHTOFIT = .f.
thisform.olecontrol1.enableContextMenu = .f.
thisform.olecontrol1.settings.autoStart = .T.
thisform.olecontrol1.settings.setMode("Loop",.T.)
thisform.olecontrol1.anchor=15
but the problem is whenever i run the form, the wmp gets larger, then when i tried to resize the form, thats the only time the wmp resize itself with the given height and width.
em i missing something here? i want to play the video with the given height and with.
thanks in advance
thisform.olecontrol1.url = "C:\Users\Desktop\1.avi"
thisform.olecontrol1.height = 500
thisform.olecontrol1.width = 300
thisform.olecontrol1.uiMode = "none"
thisform.olecontrol1.STRETCHTOFIT = .f.
thisform.olecontrol1.enableContextMenu = .f.
thisform.olecontrol1.settings.autoStart = .T.
thisform.olecontrol1.settings.setMode("Loop",.T.)
thisform.olecontrol1.anchor=15
but the problem is whenever i run the form, the wmp gets larger, then when i tried to resize the form, thats the only time the wmp resize itself with the given height and width.
em i missing something here? i want to play the video with the given height and with.
thanks in advance