i'm working on eyetracking windows forms application. need play video , keep track of eye movements simultaneously. eyetracking part done, need open video. can open dialogbox choose video play, need have fullscreen, in order make more accurate operations.
in videostream class have got :
public static string videopath; public videostream(string path) { initializecomponent(); videopath = path; axwindowsmediaplayer1.url = videopath; axwindowsmediaplayer1.dock = dockstyle.fill; }
with dockstyle fill, can make form maximized, video playing in small screen like this
but want this
i tried use axwindowsmediaplayer1.fullscreen = true;
expands borders of form, not video itself. how can solve this?
try adding these lines after initializecomponent()
:
formborderstyle = formborderstyle.none; windowsstate = formwindowstate.maximized; topmost = true;
Comments
Post a Comment