Hi. Can somebody tell me what's wrong with the following line:
VB doesn't like CType's presence, but I can't refer to btn(2) without casting FMsg.
I tried putting brackets around all of CType(FMsg, frmMsg).btn(2).Move but VB underlined the opening bracket and said "identifier expected" in the task list.
Thanks in advance.
Code:
RaiseEvent CType(FMsg, frmMsg).btn(2).Move
VB doesn't like CType's presence, but I can't refer to btn(2) without casting FMsg.
I tried putting brackets around all of CType(FMsg, frmMsg).btn(2).Move but VB underlined the opening bracket and said "identifier expected" in the task list.
Thanks in advance.