locked
how to change color object when clicked it? RRS feed

  • Question

  • I want to make GUI about how to change color object when clicked it? for example, draw the red color rectangle at the position of my mouse, then draw it again at different position followed the position of mouse, after that, i false the case drawing and true the case click to change color into green rectangle when i click selected rectangle. Please anyone can give me example code :) 
    Monday, July 27, 2020 4:29 PM

All replies

  • See the following post (it's not a complete solution but a starting point)

    https://www.vbforums.com/showthread.php?559139-2008-User-drag-to-draw-rectangle


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange


    Monday, July 27, 2020 4:37 PM
  • Thank you for starting point. But i dont know how to code about change the color shape when clicked selected shape.
    Tuesday, July 28, 2020 5:26 PM
  • Hi

    You will need to post your code.


    Regards Les, Livingston, Scotland

    Tuesday, July 28, 2020 6:19 PM