c# - SourceControl Null -
i have created contextmenustrip(called menupanels) idea of creating right-click menu. have tablelayoutpanelwith matrix of panels , i've added mouse_clickevent every panel, , placed
if(e.button == mousebuttons.right) { menupanels.show(cursor.position); } as part of event.
and in menupanels i've added delete option, idea change backgroundimage of panel.
i've read through lot of other questions focus on similar facts haven't been able panel contextmenustrip has been called, sourcecontrol returns null..
i've tried methods in here.
and tried sourcecontrol opening event (has suggested here) haven't been successful either..
don't use mouseclick event show context menu. instead, set contextmenustrip property of controls instance of contextmenustrip. automatically show context menu strip @ correct location , correct source control.
Comments
Post a Comment