0

I have a TablePanelLayout with cells, ive added a mouseclick event to the layout panel but with the cells there the click doesnt give the correct cordinates on the panel it gives the cordinates on the cell. But if i enable = false on the cells, they become grayed out but everything works as intented and i can mark indivdual cells. But now everything is kinda grayed out.

Ive tried to find a way to override the on paint for the cells but cant find a hack for ignoreing the enable false paint.

Do you have to find the mouse position on the screen when clicking the cell and then do calculations? Because this feels kinda bad.

Is there a way to activate onclick for all the layers of the panels and cells so the click happens on all of them?

Thanks

My comment was the solution so just make a transparent panel over everything and get the cordinates from that and solved it pretty good.

  • https://stackoverflow.com/questions/32400320/any-trick-to-use-opacity-on-a-panel-in-visual-studio-window-form This could be a solution but atm when i try to make it transparent its hiding everything behind too. – Benjamin Kararic Nov 09 '22 at 14:20

0 Answers0