Link to home
Start Free TrialLog in
Avatar of MarkBottomley
MarkBottomley

asked on

Display a Powerpack RectangleShape at runtime

The generation of the shape is controlled at runtime by data read from a file to set all the properties I care about e.g. Size, Location, Color, BorderWidth etc. Now, I would like to render it on a form. This should be trivial, but I can't just add it as a control so something different must be done...

Do I need to create some container on the form first, am I missing one of the commands to cause it to draw and/or connect it to a specific form, something else?? Probably a dumb question...
Dim rc As RectangleShape
        rc = New RectangleShape
        rc.Location = New Point(100, 100)
        rc.Size = New Point(150, 150)
        ' ... now what

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ToddBeaulieu
ToddBeaulieu
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MarkBottomley
MarkBottomley

ASKER

The addition of a Canvas is not obvious when just adding the PowerPack items in the form designer - thanks