I'm trying to set the moveable property of a form when it opens, depending on a system option. My code is as follows:
If fpConfig.TouchScreen = True Then
Me.Moveable = False
Me.Moveable = True
When I try to compile this code, I'm getting the error "Compile Error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic" on the first reference to Moveable.
I'm able to set the Moveable property at design time and it works properly, but at compile-time, I'm getting the problem.