السلام عليكم و رحمة الله و بركاتة
لدي مشكلة و هي ان الكمبيلر بنفذ اول جملة فقط من الif statement
If Application.OpenForms.Item("GoToForm").Created Then
My.Application.OpenForms.Item("GoToForm").Activate()
result = True
MsgBox("1")
ElseIf Application.OpenForms.Item("FindReplace").Created Then
My.Application.OpenForms.Item("FindReplace").Activate()
result = True
MsgBox("2")
ElseIf Application.OpenForms.Item("find_form").Created Then
My.Application.OpenForms.Item("find_form").Activate()
result = True
MsgBox("3")
Else
result = False
MsgBox("last")
End Ifاي جملة
If Application.OpenForms.Item("GoToForm").Created Thenفقط اما بقية الشروط فلا يتم تنفيذها او المرور عليها اصلا و لا اعرف ما السبب

