D
D
Dmitry Korolev2018-03-01 02:02:23
C++ / C#
Dmitry Korolev, 2018-03-01 02:02:23

Why does enum type always end up with None?

var h = dgvShedule.HitTest(e.X, e.Y);
            int idx = (h.Type == DataGridViewHitTestType.Cell) ? h.RowIndex : dgvShedule.RowCount - 1;

h.type none how to get rid of it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Korolev, 2018-03-01
@adressmoeistranici

you need to check in which coordinates the coordinates are given, screen coordinates or client coordinates
Point.PointToClient(Point)
Point.PointToScreen(Point)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question