Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus Problem
Message
From
05/08/1999 11:20:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00250166
Message ID:
00250184
Views:
18
>>>I have created a form with a pageframe with TABS set to False.
>>>
>>>I want to access the other pages with a few hot buttons at the bottom of the page.
>>>
>>>I created a command button with the following click code.
>>>
>>>NoDefault
>>>thisform.pageframe1.page2.setfocus()
>>>
>>>Unfortunatly it keeps me on page1 of the pageframe..
>>>Any Ideas???
>>>
>>>TIA
>>>
>>>Rob
>>Try activatepage = nPage instead of setfocus.
>>Cetin
>
>I think there's a typo on Cetin's response. Should be activepage= nPage.
Ooops. Sure it's a typo :) Thanks I didn't noticed it when typed.
BTW Rob this only makes that page active (and show) but not setfocus to a control in it. You should also include it if you want to save your user from a click (ie: UIenable event on each page, first control could have the code this.setfocus() if page is becoming active).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform