Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Colored Tabs for a Tabbed Form

Status
Not open for further replies.

kopy

Technical User
May 30, 2002
141
US
I'm trying to use Stephen Lebans code to color a tab when its selected. His code is at:
When I apply it to my form I get the following Error message: Unable to Create DIBSection

Any help with this will be greatly appreciated.
Thanks, Kopy
 
How are ya kopy . . .

In any code window [blue]Menu Bar - Tools - References[/blue]. Make sure the following [blue]references[/blue] are selected:
[ol][li][purple]Microsoft DAO 3.6 Object Library[/purple][/li]
[li][purple]Microsoft Visual Basic for Applications Extensibility 5.3[/purple][/li][/ol]

There's alot of code here so the problem may be hard to pin down (that is if the references are intact and [blue]you installed any code proper[/blue]).

[blue]Your Thoughts? . . .[/blue]



Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
TheAceMan1, thanks.

I updated my references, reloaded the code (in my ignorance I might have changed something), I made sure that my form had the same name as the example and then found out that another mistake I was not setting the tabs to fixed height and width. At this point no more error message, but as always onto the next issue.

At this point when I load the form that the tabbed form is on, the first tab is colored based on its Tag Property value but the other tabs do not become colored when selected and the color of the first tab remains unchanged.

Thanks again for getting me this far, Kopy
 
kopy . . .

Post the code in the Tab Control [blue]On Change[/blue] propery . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
TheAceMan1,

Your reply makes sense, but the example that is furnished with the code doesn't have an Event Procedure for the Tab Control.

Mopy
 
TheAceMan1,

Any ideas of how I should proceed? The demo form works fine and I've reviewed my form to make sure all of the properties and event procedures are the same.

Thanks, Kopy
 
kopy . . .

Sorry for getting back so late!

I've never used this tab schema and have been perofrming searches for install info (there's none on the site, in the zip or the Db.

Perhaps someone who's successfully performed an install will drop by and advise. Util then I'll keep searching. [blue]It may be expeditious to goto the sight and send an email![/blue]

[blue]Wish I had better news [sad] . . .[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top