I need to make it so that the picture drawn in the picturebox turns towards the cursor and moves towards it, but I can’t imagine with what tools this can be done. Tell me, how can you accomplish this task?

  • so what did you try? - tym32167
  • @ tym32167 I haven't tried anything concrete since I can't figure out where to start. First, the picture should turn on the coordinates of the mouse and move in a straight line on them. I understand that some vector is needed, but I did not find how to add and use them - RandomDude
  • If you yourself have tried anything, is there any sense for someone to help you? Start writing code, make a form, put a picture there, look at what mouse events are on the form, how to get the coordinates of the mouse, how to rotate your picture (by the way, if this is your whole task, I would look towards WPF, and not forms) and as you learn the coordinates of the mouse on the form and the coordinates of the picture, the thought will reach the vectors there. In the meantime, you have no attempts. And if you are not trying to solve your problem, then we are all the more not interested. We are here helping those who are trying to do something themselves, and are not working according to the TK. - tym32167
  • for starters, the “picture drawn in PictureBox” cannot be turned anywhere, since PictureBox is a regular image viewer and not a drawing editor. So you’ll have to draw it yourself if you want to manage this process. GDI + will help you rdorn

0