In our project we create a rectangle shaped picture using Graphics.FillRect.
The picture is shown on a BevelButton at MouseEnter.
The rectangle is created (p1 is defined as Picture Property):
p1 = New picture(BevelButton1.Width ,BevelButton1.Height, 32) p1.Graphics.ForeColor = &cACAED7FF p1.Graphics.FillRect(0, 0, BevelButton1.Width, BevelButton1.Height)
If Me.Enabled Then Me.Icon = p1
We would like to create a border around this rectangle with a different color (&cAFAFAFFF)
p1.Graphics.ForeColor = &cAFAFAFFF
p1.Graphics.DrawRect(0, 0, BevelButton1.Width, BevelButton1.Height)
overwrites the previous created Graphics.FillRect, which is obvious.
Is it possible to create a border around the created rectangle, if so how can this be done?