onclick - VB.net Disable-Deactivate Left Click Handle-Event-Function On AxWindowsMediaPlayer -


whenever axwindowsmediaplayer1 on fullscreen , click on it, either stops player or starts playing again moment paused. there anyway disable touch/click on player forever?

i should mention i've added this:

axwindowsmediaplayer1.enablecontextmenu = false axwindowsmediaplayer1.ctlenabled = false 

the first 1 disables option menu appears when right click on media player , second 1 disables main functions such double clicking go fullscreen none of 2 solves little problem.


edit: still haven't find way solve pfff. if can me, feel free , post it. there maybe possible way disable play-pause button function forever?

addhandler mpocx.mousemoveevent, addressof domousemove  private sub domousemove(byval sender object, byval e axwmplib._wmpocxevents_mousemoveevent)     onmousemove(new mouseeventargs(mousebuttons.none, 0, e.fx, e.fy, 0)) end sub  ' ... not sure if these have effect  mpocx.uimode = "none" mpocx.ctrlenabled = false mpocx.enablecontextmenu = false mpocx.stretchtofit = true ' bonus  ' ... change mouse cursor, override onmouseenter in mpocx object, inherits axwindowsmediaplayer:  protected overrides sub onmouseenter(byval e eventargs)     ' ... again, goes in      cursor = cursors.arrow     mybase.onmouseenter(e) end sub  ' ... also, short-circuit keyboard messages, have override preprocessmessage in mpocx class, might make one. ' ... these fire keydown wmp shortcut keys, keyup regular keys, don't fire keyup wmp shortcut keys. disable navigation via keyboard in wmp, can't press ctrl+o example.  public overrides function preprocessmessage(byref m message) boolean     return true     'return mybase.preprocessmessage(m) ' not uncomment end function  ' ... other methods override instead processcmdkey, processdialogchar, processdialogkey, processkeymessage, processkeyeventargs, processkeymessage, processkeypreview, processmnemonic - it's playing whack-a-mole... 

oh sorry, misread question, lol ;p in fact, can't remember if disables mouse clicks or not.. looks does, in wmp code, i'd have fix lines , rebuild ;p can't test @ moment, hope helps.

actually, there mousedownevent(byval sender object, byval e axwmplib._wmpocxevents_mousedownevent) should allow handle in same manner. i'm not sure mousemove code for, something, can guarantee that. fires events move cursor, since messages being sent control.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -