|
-
Feb 3rd, 2000, 02:17 AM
#1
Thread Starter
Lively Member
I have used a SSTab on my form and have done tons of work on it. I have 5 tabs in it right now but I need to reduce it to only 5 tabs. On the tabs property you can add tabs but does anyone know how you can delete one?? I would be very thankful!
-
Feb 3rd, 2000, 02:27 AM
#2
Hyperactive Member
do you mean in code or on the form when you edit it?
-
Feb 3rd, 2000, 03:48 AM
#3
Thread Starter
Lively Member
Either way just so that I can delete tab #5 so that I only have 4 showing when the form shows. Thanks
-
Feb 3rd, 2000, 03:53 AM
#4
Hyperactive Member
if you call up the properties page for the tab there is a box called TabCount or similar. It will have the number 5 in it. if you change this to 4 it will kill the very last tab. NOTE: the tab will be gone. I can't remember what happens to the controls. This will, like I said, delete only the LAST tab. If you want to remove the first one you will have to move the controls from tab 2 to tab 1, tab 3 to tab 2 etc.
If this isn't what you meant, let me know.
-
Feb 3rd, 2000, 04:45 AM
#5
Thread Starter
Lively Member
Hey yeah it has been saying that it is an invalid property value!
-
Feb 3rd, 2000, 04:49 AM
#6
Hyperactive Member
I'm not sure what you mean. You changed the value and now it's saying invalid property value?
-
Feb 3rd, 2000, 05:29 AM
#7
Thread Starter
Lively Member
Yeah when I change the tab count from 5 to 4 it says "Invalid Property Value!" but if I changed it from 5 to 6 it would just add another tab.
-
Feb 3rd, 2000, 09:27 AM
#8
Hyperactive Member
Hi, VBAmateur.
I tried it on my VB 4.0 and found that it tells me "invalid property value" when I try to change Tab Count if there are still controls on the last tab (i.e. in tab Nro 4 if you have 5 tabs, remember the first tab is Nro 0).
Delete all controls on your last tab (or cut/paste them to other tabs if you still need them) and then you will be able to delete it.
HTH!
[This message has been edited by Juan Carlos Rey (edited 02-03-2000).]
-
Feb 3rd, 2000, 09:15 PM
#9
Thread Starter
Lively Member
There are no controls on my last tab and it still will not delete, Ugh!
-
Feb 3rd, 2000, 09:48 PM
#10
Hyperactive Member
This may sound like a stupid thing to try but... draw on another tab control. Then try it on that new one. If it works then there has to be something different between the 2 so then you could just transfer the controls, cut and paste the code and then delete the old one. I've never had a problem doing it except when there are controls on the tab. Maybe an empty label or something like that?
-
Feb 4th, 2000, 05:31 PM
#11
New Member
You must first delete any controls you have on the tab. ex: Buttons, listboxes, ect...
Then go to the Properties box for the tab control and change the tab count to 4 (or one less than you currently hav)
------------------
J.R. Berard
AutoCAD Programmer/Analyst
[email protected]
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
|