We help IT Professionals succeed at work.

MediaPlayer and FormStyle of fsStayOnTop

bohnet
bohnet asked
on
Medium Priority
270 Views
Last Modified: 2010-04-06
ok... I have a small program, that is supossed to play MPEG files...

it is supossed to stay "On Top" of other applications...

I am using MediaPlayer.... Mainly becasue the Hollywood+ MPEG-2 decoder card I am using only suports MCI... not direct show...

Anyway... when the program starts... it is in On Top mode... but when the first file plays... it drops out of On Top Mode (I did not set it to do such)....

any idea what would be casueign this?
Comment
Watch Question

Commented:
Add this to your form's Create:

  SetwindowPos(Self.handle,HWND_TOPMOST,self.Left,self.Top,0,0,SWP_NOSIZE+SWP_SHowWindow);




Good luck!!

Author

Commented:
that did not work... the application still drops to non On Top Mode when a video plays....

strange... strange

Explore More ContentExplore courses, solutions, and other research materials related to this topic.