Notifications
Clear all
[Closed] Open .net form on focusedItem.Position
Jun 06, 2015 6:08 pm
Hey,
I’m trying to position a .net form on top of a focused item in a listview.
Using:
form.location = myListView.FocusedItem.position
doesn’t work… myListView.FocusedItem.position return a “system.drawing.point” so I was guessing that it could work.
any otherway to do this or ideas?
2 Replies
Jun 06, 2015 6:08 pm
I managed to bring up my form using FocusedItem.position ( I was assigning the position before opening the form )
but the FocusedItem.position return a local position inside the listview which is not exactly what I wanted.
Jun 06, 2015 6:08 pm
every .net form (form control) has pointtoscreen method
https://msdn.microsoft.com/en-us/library/system.windows.forms.control.pointtoscreen(v=vs.110).aspx