none
How to move Rectangle in a canvas in VB code RRS feed

  • Question

  • Hi, I have created a Rectangle "GCap" in a canvas.  I can change its size with said GCap.height=300 but could not change its location during run time using GCap.canvas.left=400.  Appreciate your help
    Tuesday, June 27, 2017 4:57 AM

Answers

  • If it is a WPF application, then try this:

       Canvas.SetLeft(GCap, 400)


    • Edited by Viorel_MVP Tuesday, June 27, 2017 5:36 AM
    • Marked as answer by BMY8330 Tuesday, June 27, 2017 9:09 AM
    Tuesday, June 27, 2017 5:36 AM