Hi,

Anyone know how to create a rectangle using VB code....?

I tried the coding below but the rectangle does not appear:

Dim testRect As New Rectangle
Dim testCanvas As New Canvas
Dim testGrid As New Grid

testGrid.Children.Add(testCanvas)
testCanvas.Children.Add(testRect)
testRect.RadiusX = 3
testRect.RadiusY = 3

Thanks