Important alert: (current site time 7/16/2013 1:44:09 AM EDT)
 

winzip icon

[!!!!! XTab a complete Tab ActiveX control written from scratch Updated -Now Supports Icons !!!!!]

Email
Submitted on: 10/1/2004 4:08:53 PM
By: Neeraj Agrawal 
Level: Intermediate
User Rating: By 160 Users
Compatibility: VB 5.0, VB 6.0
Views: 84158
author picture
(About the author)
 
     XTab is an ActiveX Control which can be used as a substitute for the Microsoft Tabbed Dialog/Property Page Control. XTab uses subclassing to achieve same design-time switching effect as MS Tab control does. XTab is highly customizable and provides many standard themes like XP,Visual Studio 2003 .Net, Rounded Tabs, Owner Drawn, Iconed theme etc. And best of all it has no external dependencies to subclassing dlls or common dialog etc controls. Optimized code for flicker free drawing. New themes can be easily added by simply implementing the ITheme Interface. Featured Property Page for easily setting properties. Supports Individual Tab Enabling/Disabling. Now supports Icons in all the themes. Also we can use PictureSize,PictureAlignment and MaskColor property to customize the Interface. Updated Property page too for better UI. Added a method to allow copying images from any compatible ImageList Control. email: nja91@yahoo.com neeraj_agrawal_ind@rediffmail.com If you like the code please leave a comment/vote. :)

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

10/1/2004 4:30:32 PMFred.cpp

Excellent! great work and nice coding. 5 globes
(If this comment was disrespectful, please report it.)

 
10/1/2004 6:53:55 PMBill Peek

Very Good Work. 5 * from me......
(If this comment was disrespectful, please report it.)

 
10/1/2004 9:31:40 PMBilly Conner

it looks like you spent alot of time on this app. so far it works good and im happy to see someone make a control that works in design time. only issue i see with it is that when you open the form with the tab on it in design time, and then open the control itself in the same app. it takes 100% cpu usage on my machine. its not a big deal. just something i noticed.
(If this comment was disrespectful, please report it.)

 
10/1/2004 11:27:21 PMNeeraj Agrawal

Thanx for sharing ur experience Bill. I'd used the control in Win98 and XP. I'd myself noticed that it was taking taking some extra CPU time in XP (at desgn time). Actually in the preview application there are 8 controls on the form, this makes it a pretty heavy form. So if you plan to use it in some application... strip the unnecessary themes off.
(If this comment was disrespectful, please report it.)

 
10/2/2004 9:22:28 AMZoran Grujic

Great code !! Do you plan adding iconed XP style in near feature ? Thank you .
(If this comment was disrespectful, please report it.)

 
10/2/2004 2:04:38 PMNeeraj Agrawal

Thanx all of u guys for ur wonderful feedback.

Zoran i'll surely add icons not only in XP but in all themes in near future. By the time u can do it urself if u want. See the code for the xThemeStandardIconed theme, and use the pPaintPicture Method to draw the Picture on the tabs.
(If this comment was disrespectful, please report it.)

 
10/2/2004 4:55:14 PMPablo Cavallo

For me, this is the code of the day, and maybe the code of the month :D
Congratulations!
(If this comment was disrespectful, please report it.)

 
10/3/2004 1:44:34 AMCodeFester

Well architected and nicely implemented. You have obviously put much thought into this. I like the iTheme interface rule... very clever. Thanks for posting this. 5 testicles for this fine submission...
(If this comment was disrespectful, please report it.)

 
10/3/2004 9:32:37 AMRuturaj

hello Niraj ;

tumhara control bohot badhiya hai. main ek Emailer ke project pe kaam kar rahaa hun jis main mujhe ek Tab Control chaahiye hi tha. vahi puraane controls istemaal kar ne main majaa nahi aa rahaa tha. par tera vala control bohot badhiya hai.

wo picture vali idea bohot mast hai ... filhaal to yahi control mere liye kaam kar jaayega.

Thanks yaar ~ aur haan ... tujhe tere code ke liye main apane project me credit jarur dunga ... aise hi nahi istemaal karunga ... so , don't worry.

Wish you happy coding !
(If this comment was disrespectful, please report it.)

 
10/3/2004 3:27:14 PMMirko Kressmann

Great control so far! You shoud add support for more tabs as you can seen in the width (for example: 18 Tabs with style set to XstylePropertyPage), like the arrows in the standart TabStripControl. 4 globes from me ...

Mirko
(If this comment was disrespectful, please report it.)

 
10/3/2004 5:12:03 PMDaniel W Elkins

Very nice control. 5 globes.
(If this comment was disrespectful, please report it.)

 
10/4/2004 1:24:29 AMHeriberto Mantilla Santamaría

Fantastic work, five globes.
(If this comment was disrespectful, please report it.)

 
10/4/2004 11:53:50 AMPaul Caton

Very good.. do you plan to support Ctrl+Tab tabbing amongst tabs? Hope my meaning gets through.
(If this comment was disrespectful, please report it.)

 
10/4/2004 1:56:09 PMNeeraj Agrawal

Paul, i'd ignored the Ctrl+Tab tab switching on purpose. bcoz it creates a problem for the user in MDI environment, where Ctrl+Tab is used to switch between MDI childs. So if i'd used it in the control it will prevent user from switching between MDI childs. (MS Tab control does this :( ).
you can use Crtl+PageUp or CtrlPageDown keys for navigation or can simply use the Arrow keys.
(If this comment was disrespectful, please report it.)

 
10/4/2004 9:42:12 PM

Great work! I loved with it the first time I tried it. Good luck to all your future works.
(If this comment was disrespectful, please report it.)

 
10/4/2004 11:51:18 PMNeeraj Agrawal

Released v 1.0.1 : Just one change. Prepared the control to fight against new version of comctl32.dll in XP :)

See versioninfo.txt included in zip for details.
(If this comment was disrespectful, please report it.)

 
10/5/2004 3:31:20 PMDavid Gabrielsen 2

5 globes from me, very nice indeed! A n00b question; how do I add a control within a tab while RUNTIME?
(If this comment was disrespectful, please report it.)

 
10/6/2004 3:16:09 AMOsen Kusnadi.

Excellent! 5 globes from me ...
(If this comment was disrespectful, please report it.)

 
10/6/2004 5:57:41 AMNeeraj Agrawal

David, here's how u do it
'can add only to the
'active tab (in this version)
XTab1.ActiveTab=1

'load new control
Load cmdTest(1)

'Set dimentions
cmdTest(1).left=0


cmdTest(1).visible=true

this will add the control to current tab

IMP: the cmdTest MUST be a child control of XTab
(If this comment was disrespectful, please report it.)

 
10/10/2004 7:50:00 AM

Very good job boy!!!
(If this comment was disrespectful, please report it.)

 
10/12/2004 7:54:46 AMPhantom Man

Nice Code Very Well Done.

Gary
(If this comment was disrespectful, please report it.)

 
10/12/2004 5:58:22 PM

Great code!
Tab orientation would be a nice feature.

(If this comment was disrespectful, please report it.)

 
10/19/2004 1:13:12 AM

I was looking for that but unable to get the solution.Thank god I got the solution, that is provided by neeraj agarwal. Thanks neeraj.

(If this comment was disrespectful, please report it.)

 
10/19/2004 4:03:26 PMSantosh Sah Sadikpuri

Lage Raho India........badhiyaan hai
(If this comment was disrespectful, please report it.)

 
10/20/2004 1:56:01 AMNeeraj Agrawal

:)
(If this comment was disrespectful, please report it.)

 
10/28/2004 11:35:32 PM

Simply great work neeraj! You deserve 5 stars coz u've solved the problem of many coders around the world. Simply wonderful! Keep it up!
(If this comment was disrespectful, please report it.)

 
11/3/2004 8:32:06 PMWebmasta

> 5 Globes
(If this comment was disrespectful, please report it.)

 
11/4/2004 3:45:02 AM

The Tab seems not to display LaVolpe's Buttons properly (round buttons). There is an ugly border to it once we click another tab and come back.

Btw, 5 star coding!
(If this comment was disrespectful, please report it.)

 
11/5/2004 12:26:33 PMNeeraj Agrawal

Thanx for reporting this. I've tried them myself, the LaVolpe's button get an ugly border. But i've put various standard controls too on the tabs, even round shapes etc, but they all seem to work fine. I guess its something to do with the LaVolpe buttons itself.

LaVolpe uses Black as default color for the control's bg and that is what is visible. I mean the Region APIs may not be working properly.

But this is just a guess. Please correct me if i m wrong.
(If this comment was disrespectful, please report it.)

 
11/9/2004 5:32:49 AMkerplunk_boy

No comments... just great! 5 Globes

(If this comment was disrespectful, please report it.)

 
11/13/2004 10:07:27 PMPeter Wilson

This is the first sub-classed project I've ever downloaded from PSC (mainly because I'm not interested in these types of projects)... however, this is really a work of art. Excellent job! My hat off to you.
(If this comment was disrespectful, please report it.)

 
11/13/2004 11:45:44 PMNeeraj Agrawal

Thanx Mr. Wilson and thank you all for the nice comments.
(If this comment was disrespectful, please report it.)

 
11/18/2004 2:20:18 AM

Can i make the tab positioned at the side??
(If this comment was disrespectful, please report it.)

 
11/18/2004 2:37:12 AMhardik shah

hi neeraj,
good work.keep it up.me from ur home city:)
(If this comment was disrespectful, please report it.)

 
11/28/2004 12:59:30 AM

Can I make it transparent background?
Excellent, Eye-opening, great work and nice coding. Million Stars.
(If this comment was disrespectful, please report it.)

 
11/29/2004 1:02:24 AM

Wonderful code!!, congratulations
(If this comment was disrespectful, please report it.)

 
11/29/2004 10:58:54 AMBob Churchill

Thanks again for this control!
I am loading a number of controls and tabs onto it programmatically, however, and this is causing some problems. In order for the xtab to be loaded at runtime and painted on without errors the tab seems to need to be both Visible and within the display area of the Form, and having placed all my controls I have to programmatically show each tab, otherwise the actual tab pieces (eg with Tab 0 written on) are not painted correctly, i.e., having loaded controls onto each tab in turn, I have to code:

Do Until XTab1.ActiveTab = 0
XTab1.ActiveTab = XTab1.ActiveTab - 1 Loop

Not only is this ugly code on my part, it makes the controls on the otherwise gorgeous xtab flicker and dance about. How can I resolve this so the xtab can be populated at runtime *in the background* and displayed only once complete?
(If this comment was disrespectful, please report it.)

 
11/29/2004 1:27:47 PMNeeraj Agrawal

Hi Everyone,

Thanx for the comments. And Bob, I'll take a lil time to check this out. I've my college exams this time.. so please give me 3-4 days to try and resolve the problem.
(If this comment was disrespectful, please report it.)

 
11/30/2004 11:06:46 AMBob Churchill

Sorry to be the voice of dissent again! (and please don't address this til exams are over!), but...

I have multiple, duplicate Forms open, each of which contains a single XTab control. Sometimes (just sometimes!) when I try to Unload one of the Forms, an Automation Error (440) occurs, followed by a Client Site Error (398). This makes all the XTabs stop working.

These errors appear to be very closely related and this is the nearest I can get to a hint at what to do about it.

Cheers,
Bob
(If this comment was disrespectful, please report it.)

 
11/30/2004 11:17:21 AMBob Churchill

Further investigation appears to indicate that these errors occur when a second Form containing an Xtab is unloaded very soon in succession after a first.
(If this comment was disrespectful, please report it.)

 
12/7/2004 1:13:24 PMEvan Toder

adding a resize event would be coolio
(If this comment was disrespectful, please report it.)

 
12/16/2004 2:32:20 AMDeep Sompura

Client Site Error (398) can you provide solution for it
(If this comment was disrespectful, please report it.)

 
12/20/2004 5:15:08 AMNeeraj Agrawal

Hello Guys...

sorry for the delay. I m working on a bugfixed version and will upload it soon...
(If this comment was disrespectful, please report it.)

 
1/4/2005 7:13:26 AMMaxSoft71

great job, 5 globes for me.
Only a request: can you consider to implement tab orientation?(right, left, top, down)
(If this comment was disrespectful, please report it.)

 
1/4/2005 9:19:05 AMcarniv0re

very nice!!! 5 globes from me!
(If this comment was disrespectful, please report it.)

 
1/4/2005 11:20:44 AMSteve

Nice. A button to scroll through the tabs would be nice. Currently it's not possible to access tabs that do not fit the controls horizontal size ...
(If this comment was disrespectful, please report it.)

 
1/4/2005 5:46:41 PMMark F

Excellent Job - 5 more stars!
(If this comment was disrespectful, please report it.)

 
1/5/2005 12:30:41 AMHeriberto Mantilla Santamaría

Neeraj Agrawal:

Only I say a thing wow.
(If this comment was disrespectful, please report it.)

 
1/9/2005 2:02:35 PMNeeraj Agrawal

Hey guys!!

Pls download the new version..

Solved the "Client Side Not Available" bug. Also added a method which allows copying Images from an ImageList or compatible control into tabs (see code for details)..

To all those who want to add controls at runtime.. pls use the control arrays and while u load the control into the tab make sure the tab is active.

That is:

XTab1.ActiveTab
= 1
cmdFoo(1).Load
cmdFoo(1).Left =
cmdFoo(0).Left+cmdFoo(0).Width +
15
cmdFoo(1).viisble =
true

--
Above code WILL work fine...
(If this comment was disrespectful, please report it.)

 
1/14/2005 10:56:40 AM

Excellent control!!
Is it possible to hide a particular tab?
Depending on the state of my app, I may need to show only certain tabs.
(If this comment was disrespectful, please report it.)

 
1/14/2005 2:10:42 PMNeeraj Agrawal

Sorry... but there is no way u can hide a tab in this version... but this is a really good idea and hopefully will be implemented in future releases... thanx for posting it..
(If this comment was disrespectful, please report it.)

 
1/15/2005 7:26:23 AMmugman21

Excellent, nice improvements over the last month or two. One thing that would be helpful, which it seems you intentionally avoided, would be to have common property and method names that were simular to MS's tabstrip control.
(If this comment was disrespectful, please report it.)

 
1/15/2005 7:28:25 AMmugman21

For example, try replacing MS's tabstrip in this project, http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=39764&lngWId=1
with your tabstrip, and the problem with portability becomes obvious.
(If this comment was disrespectful, please report it.)

 
1/17/2005 1:28:27 PMNeeraj Agrawal

well yes...

i've used non standard names becoz VB does not allow some keywords to be used in variable declarations. Like "Tab" etc... although we can use "Tab" and compile the OCX... but when we save the project vb replaces it again.. thats y i used non standard names.
(If this comment was disrespectful, please report it.)

 
1/26/2005 11:12:24 AMSreeDiya

World Coming to India?
Proud to be an Indian
Congratulations Neeraj.
(If this comment was disrespectful, please report it.)

 
1/28/2005 7:24:12 PMShawn J Cox

Hey, I noticed a small bug in your coding. If you have lines in the tab, they don't get moved. This is because there is no .left in lines. I tried fixing this, by adding another for each statement looking for just lines, and it would work... if there weren't any labels or textbox's on the form. Once a label or textbox was there, it no longer changed the lines.
(If this comment was disrespectful, please report it.)

 
1/28/2005 7:50:45 PMShawn J Cox

p.s this is when switching between tabs that the lines mess up
(If this comment was disrespectful, please report it.)

 
1/30/2005 2:15:26 PMNeeraj Agrawal

thanx shawn,

i'll fix that in future release(s).
(If this comment was disrespectful, please report it.)

 
1/31/2005 11:38:35 AM

Neeraj,
This is a excellent piece of code!!
I was looking for a Tab strip for my project and this seems to provide allmost everything I was looking for.

I have a small query though: Is there a way I can have the Tabs wrap over to the next row once a max number of them have been added to the 1st row, thus keeping their width constant

Best
(If this comment was disrespectful, please report it.)

 
2/7/2005 2:06:08 PM

This is a great control. Can it be made to work with MS-Access?
(If this comment was disrespectful, please report it.)

 
2/14/2005 1:32:14 AM

Requests earnestly to add on the following Features in XTab

http://my.so-net.net.tw/jyc168/tab.gif
(If this comment was disrespectful, please report it.)

 
2/28/2005 3:03:01 AMideart_de

i like this
(If this comment was disrespectful, please report it.)

 
3/1/2005 7:18:30 AM

I am looking for a tab / window control ... if you have a look at the snagit version 7.2 control ... the tabs the have are split acorss the page from left side. looking for something like that. How would I change the tab oriantation to allow me to display this on the left hand side (reading from left to right, with a picture underneath the text and allow the button to be MUCH bigger) without having to change a lot of code?
(If this comment was disrespectful, please report it.)

 
3/5/2005 12:39:48 AMideart_de

two things i would like to see
- tab visibility (true/false) property
- which tab (active or not) is mouseover
(If this comment was disrespectful, please report it.)

 
3/28/2005 9:04:09 PM

good job
(If this comment was disrespectful, please report it.)

 
3/30/2005 8:53:03 AM

Good Job!!!!
add tab(2).visible = false ????


(If this comment was disrespectful, please report it.)

 
4/5/2005 11:36:45 AMNoFutur

The best :-)
(If this comment was disrespectful, please report it.)

 
4/5/2005 8:23:20 PM

This control works so much nicer then sstab.
(If this comment was disrespectful, please report it.)

 
4/8/2005 4:43:59 AMJames Armstrong

sweet.
(If this comment was disrespectful, please report it.)

 
4/13/2005 11:51:56 AM

real nice work had some problems with tabctl32.ocx this is the best solution i think.
(If this comment was disrespectful, please report it.)

 
5/15/2005 4:59:08 AMpawanfx

my email-id is:archana_sansanwal@rediffmail.com
(If this comment was disrespectful, please report it.)

 
5/15/2005 4:59:46 AMpawanfx

hi
(If this comment was disrespectful, please report it.)

 
5/21/2005 12:42:48 PM

Excelente.
(If this comment was disrespectful, please report it.)

 
5/21/2005 12:43:57 PM

Es un buen código, Excelente
(If this comment was disrespectful, please report it.)

 
5/31/2005 2:59:11 PM

Hi aku arek suroboyo he.. heh he..
(If this comment was disrespectful, please report it.)

 
6/6/2005 5:47:09 PM

Hi,

thanks for great work. Nevertheless I have a problem. I am adding MSFlexGrid control on xTab dynamically with following code:

Set mobjFlexGrid = mfrmContainer.Controls.Add("MSFlexGridLib.MSFlexGrid", "Name", mfrmContainer.tabMain)

XTab has 5 tabs and I switch to tab 0 before adding the control. The problem arises when i trying to resize FlexGrid in response on mfrmContainer.Resize event, when xTab is switched to differnt tab then 0. Flex grid suddenly appears on active Tab.

The problem seems to be in resizing flexgrid when its "home tab" (tab 0) isn't active.

As a workaround i could check active tab and resize control only if tab 0 is active. Do you have any other idea.

Thanks Ivo
(If this comment was disrespectful, please report it.)

 
7/6/2005 11:41:58 AM

Nice control. Visuals and flexibility are great. I have noticed a problem though.. When the control is resized (via a form resize code event), inactive tabs lose their contents, in my case picture boxes with controls. The active tab retains its contents, but after switching between tabs, it too begins to misbehave, (showing control elements from other tabs, or none at all..). This would be a great control if this bug could be fixed, and if tab orientation was added..
Keep up the good work..
(If this comment was disrespectful, please report it.)

 
7/14/2005 2:51:02 PMJim Jose

Hi Neeraj,

Loooog feedbacks and superb control here. This is the one I was looking for. Subclassing on design time is a pretty idea and well implimented.

MEERA BHARATH MAHAAAN...

Regards,
Jim Jose
(If this comment was disrespectful, please report it.)

 
7/15/2005 4:03:10 AMpriyank modi

hi
nice to see once again a indian in row

i m soft eng from gujarat and programmer in this site.i placed code like library management systems. my second version was totally delted from this site due to erro in lik of site.

ur code is excellent.

keep up man.

priyak.
(If this comment was disrespectful, please report it.)

 
8/5/2005 10:03:54 AMAndi

Thank you for this great peace of software!!

It works without problems under VB6 but we have some problems to use this control in access 2003 environment .. Perhaps this are basics, but we don't know how to do it, perhaps it doesn't work under access. Please could you help us??

greetings Andi
(If this comment was disrespectful, please report it.)

 
8/26/2005 12:55:22 PMPedro Begosso

My congratulations. A beautiful work and one execelent code. Easy and fast. Very good. One I hug of its Brazilian friend Begosso.
(If this comment was disrespectful, please report it.)

 
8/27/2005 5:51:06 AMThomaslaw Weberow

The bomb!!
(If this comment was disrespectful, please report it.)

 
10/12/2005 3:34:47 AMNagesh

Congratulations for such a great tool. Very good code and easy to understand and customize. THanks very much...
(If this comment was disrespectful, please report it.)

 
10/12/2005 3:59:22 AMNeeraj Agrawal

Thank you all for ur wonderful feedback. Thanks Nagesh for ur sweet email. And thanks PlanetSourceCode (a.k.a. PSC) for everything. - Ñeeraj
(If this comment was disrespectful, please report it.)

 
10/21/2005 8:24:07 AMBala_MS Tech

Really Excellant..thanks
(If this comment was disrespectful, please report it.)

 
11/10/2005 8:20:49 AMrodrigo

hello!

I'm from Brazil and I need your help please.

See what you wrote in readme file:

1) Bug Reported by: Bob Churchill When Multiple forms containing XTab are unloaded **sometimes** we get a "Client Side Not available" error.
For more details about the error please contact me.
Solution: This happens sometimes because the control gets a "GotFocus" event When the form is unloaded. This is strange behaviour and the Ambient object becomes unavailable. To solve this I had to check for Ambient Object before usin it.

Please explain what I need to do to solve this prob.

I see that available memory falls, falls and appears message "out of memory" and others "automation error" and "client site not available". This occours when forms are load/unload many times.

Thanks!!

rodrigo
sinop - mt - brazil.
(If this comment was disrespectful, please report it.)

 
11/11/2005 2:44:19 AMMilind Patil

Hello Neeraj,
U r Control is Very Very Nice. 5 Globes From Me. I have developed a active X Control, i want to set it's Font property from From (like MyLabel.Font=Something) i found that whenever i execute this , only Get Property is executed why it is so ?

(If this comment was disrespectful, please report it.)

 
11/11/2005 8:04:09 AMHuy Nguyen Ngoc

it's very good. I like it.
(If this comment was disrespectful, please report it.)

 
11/12/2005 4:14:28 AMNeeraj Agrawal

Milind... i guess the problem is due to LET Property. Font is an object and so u should make a SET Property for assigning it.
(If this comment was disrespectful, please report it.)

 
11/28/2005 3:44:15 PMmscdex

As a couple people mentioned previously, how can we change the placement of the tabs like you can in the SSTab control? (e.g. Left, Right, Top, Bottom)
(If this comment was disrespectful, please report it.)

 
12/7/2005 10:30:24 AMGhaleb

Well, I dont know how old this control is; but seemingly, a year ago. But I'm getting errors loading the forms, and when I compiled it into an OCX and ran a regsvr32 query on it, I couldnt add it to any of my projects 'prjXTabs.ocx could not be loaded!'

Help me!
(If this comment was disrespectful, please report it.)

 
12/10/2005 11:55:29 AMThor

This control is greate.
But have several issus :
* likes to eat memory, does not free memory when the form which holds control is unloaded.
* I have some problems terminating the program when I dynamically load tabs.

(If this comment was disrespectful, please report it.)

 
12/29/2005 3:06:58 PMChad Gutowsky

Good Work
(If this comment was disrespectful, please report it.)

 
1/31/2006 8:45:11 AMvoidData

nice work
(If this comment was disrespectful, please report it.)

 
2/3/2006 5:41:37 AMD. HANIB

Very nice control . I'm using it.
But is there a way to put tabs on 2 rows ?
(If this comment was disrespectful, please report it.)

 
2/4/2006 10:39:41 AMAndrew M. Goncharov

Neeraj, it has sad bug: can`t properly set 'left' and 'top' properties for contained controls. Please drop few words to info@vb.kiev.ua how to solve that problem.
Anyway, the best TAB control I have ever seen before.

Andy.
(If this comment was disrespectful, please report it.)

 
2/15/2006 11:40:06 PMJF

Neeraj - on 1/9/2005 you posted a comment that a new version was availble - can't find it anywhere. having the "Client Site Not Available" error - hoping there's still a newer version that addressed that problem. Otherwise - GREAT Control - THANKS!
(If this comment was disrespectful, please report it.)

 
4/6/2006 4:50:02 PMdcboy

nice....very nice. Is there a way to change the caption?
(If this comment was disrespectful, please report it.)

 
5/12/2006 3:15:06 AMPhilip Zac

Wonderful code, nicely written...MS should think to replace thier control with this......:) hail India... :) One question can i access the common dialog box rountien for my vb programes, so than i need not add common dialog box or a sepreate module in my programe, xtab control with commaon dialog...hope u understand my idea
(If this comment was disrespectful, please report it.)

 
6/9/2006 2:23:38 AMMichael Quiñones

Very Cool Controls... I love it!
(If this comment was disrespectful, please report it.)

 
7/3/2006 7:15:27 AMNeeraj Agrawal

Thanks everyone for some of the best comments I've ever heard for anyone.

To the members who have requested some changes or who have identified bugs

---- Please give me some time to fix them up. I am into my MS now... so unable to devote time on this. Still i would really love to make the control bug free and even more feature rich.

thanks again...
Neeraj
(If this comment was disrespectful, please report it.)

 
8/16/2006 5:51:33 AMCornerGeek

Just came across this by accident, and I'm glad I did. This is an example of some superb coding and a genuinely useful control (much better than the ones included in VB). Thank you for contributing your time to this project.
(If this comment was disrespectful, please report it.)

 
8/28/2006 4:51:44 PMMatt

There seems to be a slight problem with the .Height property. Its like you can only change it once.
(If this comment was disrespectful, please report it.)

 
8/28/2006 5:14:03 PMMatt

Edit. Nevermind I figured out the problem.
(If this comment was disrespectful, please report it.)

 
8/31/2006 12:21:30 PMGermanir

Thanks for the code..

but i don´t make the selection of the tab by the index, in the code.
Ex:
xtab1.SelectTab(0) 'Active the TAB 0
xtab1.SelectTab(1) 'Active the TAB 1
xtab1.SelectTab(2) 'Active the TAB 2

Why the xtab does not have the SelectTab property?, exists a another similar property?
(If this comment was disrespectful, please report it.)

 
9/15/2006 12:32:05 AMseema

HI,
In this Xtab code version , Tabvisible and TabOrientation
these properties are misisng , which exists in SSTAb.
can we hide any perticular tab ,same way we used do in SSTab control.
and if this is done in New version,
can u pls provide the link for it??
Thanks.
(If this comment was disrespectful, please report it.)

 
10/8/2006 12:56:30 AMQuoc Anh Nguyen

Have a problem :
Permision design ? What's problem ?
(If this comment was disrespectful, please report it.)

 
11/1/2006 10:14:43 AMvince

Hi,
Is it possible to move tabs when number of tabs is to large.
(If this comment was disrespectful, please report it.)

 
1/4/2007 12:21:08 AMNeeraj Agrawal

Apologies... guyz... most of the things requested were supposed to be in future version. But introduction of .Net made me rethink of any future COM based version.

vince.. sorry..but moving tabs when number of tabs is too large is not possible (for now :) ).
(If this comment was disrespectful, please report it.)

 
1/10/2007 10:54:58 AMEngin

hi,i have a problem,very important,but according to me crazy,,i adding Controls to tab 0 and tab 1 in desing time,but when program run, which desing time select tab,its view,but controls in other tab no view..i cant know..
(If this comment was disrespectful, please report it.)

 
1/29/2007 6:41:29 PMPaul

-==== I HAVE A GOOD QUESTION ====--


How can I add this to my project? I tried to import all modules and user controls and still doesn't work.

Any help??
(If this comment was disrespectful, please report it.)

 
5/7/2007 5:13:57 AMHoward Joven Macapallag

You are a very good Programmer!!!!
Thumbs up!!!!
(If this comment was disrespectful, please report it.)

 
6/10/2007 3:39:53 PMFelixMew

It is possible to have multiple lines of tabs ? :)
(If this comment was disrespectful, please report it.)

 
8/24/2007 7:01:52 AMJavier

Hi,

I can't create the ocx file. :(

What can I do?

Bye
(If this comment was disrespectful, please report it.)

 
11/1/2007 3:56:34 AMEDWIN O. DELOS SANTOS

you deserved 5 * vote, thanks , im using your active x in my project. email me your updated if possible, i need not code but the xtab itself at cyber_edu2005@yahoo.com

(If this comment was disrespectful, please report it.)

 
11/1/2007 3:57:03 AMEDWIN O. DELOS SANTOS

you deserved 5 * vote, thanks , im using your active x in my project. email me your updated xtab if possible, i need not code but the xtab itself at cyber_edu2005@yahoo.com

(If this comment was disrespectful, please report it.)

 
11/16/2007 1:10:19 AMYakov

Excellent professional work.
Thanks
(If this comment was disrespectful, please report it.)

 
1/8/2008 5:29:56 AMNeeraj Agrawal

I am really thankful to you all and the PSC, its almost been 3.5 years, still I see some really nice and encouraging comments. Thanks a lot everyone!!!

I apologize for not being able to continue on the project, but still I always try my best to reply to your issues via mail. Thus please feel free to mail me for anything.
(If this comment was disrespectful, please report it.)

 
1/25/2008 4:44:44 AMLola

I have seen your work and I feel great, I would like to get the latest version because it gives me the first few bugs.

Thanks
(If this comment was disrespectful, please report it.)

 
4/13/2008 11:49:47 AMThe Dark Lord

You're a great programmer, your invention was excellent but has some bugs some of them the property: "hWnd" doesn't exist. Can you give the code for complete it because I need it. Or send me the latest version to my e-mail: federiconavarrete_mixco@yahoo.com
I am a beginner programmer.
(If this comment was disrespectful, please report it.)

 
5/26/2008 3:18:39 AMNeeraj Agrawal

Hi Mr. Lord,

I am sorry, but no one else has reported such error. Can you please breif me on how/where the error occurs. Sorry for the inconvenience
Thanks,
Neeraj
(If this comment was disrespectful, please report it.)

 
6/12/2008 10:38:21 AMAndres B

Very cool! Thanks a million.
I added this code, in order to give each one of my tabs a different color:

Private Sub tabControls_BeforeTabSwitch(ByVal iNewActiveTab As Integer, bCancel As Boolean)

Select Case iNewActiveTab
Case 0
tabControls.ActiveTabBackStartColor = 16761024
Case 1
tabControls.ActiveTabBackStartColor = 16777152
Case 2
tabControls.ActiveTabBackStartColor = 8454080
End Select

End Sub

However, the code only behaves "correctly" with the Round Tabs theme.
With the other themes, I get the following behavior:
When I switch tabs, only the tab itself changes color, not the background.
However, If I switch to another app and then switch back it the entire tab,
including the background changes color.

I believe this is the way the them is coded. I tried looking at the code,
but I honestly wasn't able to find a way the make the other themes behave
like the round one.

Can u help me out ?

Thanks,Andres
(If this comment was disrespectful, please report it.)

 
6/20/2008 12:39:47 PMNeeraj Agrawal

Sure Andres, I'll try and help you out on your email. Pls mail me at nja91@yahoo.com

Thanks,
Neeraj
(If this comment was disrespectful, please report it.)

 
7/7/2008 11:51:06 PMSPY-3

Wow that looks great, not only can i customize shapes if i wanted but i can completely customize colors. Or I can just use a preset if I so desired. Great code 5 stars!!!!!
(If this comment was disrespectful, please report it.)

 
9/14/2008 2:35:41 PMRuturaaj

Your Tab control is really nice; thanks for sharing it. One thing that I find missing is ability to Remove a certain Tab at Runtime. Any idea when this feature is planned to be added to this control?
(If this comment was disrespectful, please report it.)

 
9/20/2008 3:35:38 AMHelio Hora Passos

Very nice code, good work, thx for share
(If this comment was disrespectful, please report it.)

 
7/18/2009 11:25:50 PMMark

This is really good stuff - but...

It appears that I am unable to register the ocx on a 64 bit OS. I just tried it on Windows 7. I have not tried a 64-bit Vista OS, but I have a feeling this is calling a 32-but API DLL, and the 64-bit OS is causing that to fail. When trying to register the ocx, it says it cannot find a DLL or some dependency. Funny thing is, it works fine when running it from the VB6 IDE. But, the OCX cannot be registered - so it can't be used on another PC or inside another project. My project has to be compatible with 64-bit PCs. I want to use this, but I am stuck at this point.
(If this comment was disrespectful, please report it.)

 
7/18/2009 11:36:36 PMMark

Follow-up to my last comments:

OK, so now it IS registering! This is Windows RC1 - and it does act up a little - so who knows. I reloaded the project again, recompiled, closed VB6, opened the CMD prompt as Administrator - and then it registered. Not sure why it worked this time as I did this exact same thing before. Strange.
(If this comment was disrespectful, please report it.)

 
11/18/2009 11:35:50 AMNeeraj Agrawal

I'm glad it worked... and guys.. sorry for being very lazy on the forum.. too occupied.. not able to follow up. Still feel free to drop a mail.

Thanks to all for still using the control :)
(If this comment was disrespectful, please report it.)

 
7/1/2010 10:18:55 PMhuhushw

Very Good! Thank you!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.