So, I have a function to move controls, such as:
I've tried multiple ways of passing in my frame name, but nothing works. I get type mismatch error. I figured just something like:
MoveMe(Frame1)
would work, and after failing that, tried frame1.name and frame1.Hwnd.
I've tried changing the argument to "Control" and "Object" in the function declaration, both give the same result.
I know this has to be possible, where's my mistake at?
Code:
private function MoveMe(byref obj as Frame) as boolean
obj.Left = 0
etc, etc
I've tried multiple ways of passing in my frame name, but nothing works. I get type mismatch error. I figured just something like:
MoveMe(Frame1)
would work, and after failing that, tried frame1.name and frame1.Hwnd.
I've tried changing the argument to "Control" and "Object" in the function declaration, both give the same result.
I know this has to be possible, where's my mistake at?