please one step after the other, regarding the errors you posted:
put two Controls onto the Form:
CommandButton Command1
PictureBox Picture1
the following Code works fine on my computer
|
Jabaco Source
|
1
2
3
4
5
6
|
Public Sub Form_Load()
Picture1.Width = 2 * Command1.Width
End Sub
Public Sub Command1_Click()
Command1.Width = Picture1.Width
End Sub
|
what about yours?
regards
OlimilO