Hi,
try the following:
|
Source code
|
1
2
|
Me.add Shape1
Me.Refresh
|
Note that I replaced "Form1" by "me", because I am referring to the form variable rather than to the form class.
It leads to misunderstandings to name the form variable Form1.
The variable should be named differently from the class to avoid confusion.
Greetings!
A1880