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..

you can see debug here

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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -