|
-
Jul 18th, 2000, 03:48 PM
#1
Thread Starter
New Member
Hi, here is the background of my problem:
I have a series of tabs on my main form, and when the form is loaded I want to be able to set the focus on the first tab and gray out the others.
My problem is that I am able to disable the other tabs, but for some reason, whenever the form loads, it sets the focus on one of the disabled tabs instead of the one enabled tab. I was wondering if anyone knows why this happens and how I could fix it. Thanks
-
Jul 18th, 2000, 03:51 PM
#2
Hyperactive Member
Check your Tab Index field for the object and make sure they go in order 1 2 3 4 5 6 for each tab. Then use the Setfocus command and specify the tab you want.
-
Jul 18th, 2000, 03:58 PM
#3
Fanatic Member
Or your could put
SSTab1.Tab = 0
in the form load, where 'SSTab1' is the name of your tab control.
-
Jul 18th, 2000, 04:56 PM
#4
The reason you are seeing this behavior is that for whatever reason, VB sets the default-display tab at run time to the one that last had the focus during design time.
-
Jul 18th, 2000, 08:40 PM
#5
Thread Starter
New Member
Ok, thanks, I'll try it out and tell you all what worked.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|