Hi all,
I have method that does some validation, then sets focus to a field that fails a validation. In this particular instance, I have a pageframe within a pageframe, and when I issue and ActivePage = page#, it does show the proper page, but the tab is still on the previous page, i.e., the controls for the page I want to be on are shown, but the tab indicates I am on the previous page. Here is some example code.
IF This.cnPageframe1.ActivePage != 1
This.cnPageframe1.ActivePage = 1
ENDIF
WITH THIS.cnPageFrame1.pgCustomer.cntCustomer.PageFrame
.ActivePage = 2
.page2.cnShipVia1.txtIDNumber.SetFocus()
ENDWITH
There is a Refresh() call for the form that occurs at a point after this.
Any ideas????
Thanks in advance.