Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why can't you change the moveable property for forms?

Status
Not open for further replies.

neseidus

Programmer
Sep 1, 2004
41
0
0
CA
Hi

I need to make a form sometimes moveable and sometimes not, but every time I try changing Me.Moveable in the code, it gives me this compilation error:

"Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic"

Example program (that doesn't work):
Code:
Private Sub Command1_Click()
    If Me.Moveable Then
        Me.Moveable = False
    Else
        Me.Moveable = True
    End If
End Sub

Anybody know what this means?
Thanks
 
neseidus,
Look at this thread: thread222-794655

vladk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top