I created an inherited class control from the TabControl.
I have a DrawTab Function that draws the tab, and the text on the tab. The default Tab Boundaries are a bit bigger then I like, so I tried to use the following code to "shrink" the Tab.
objBounds.Width -= 10
objBounds.Location = New Point(objBounds.Location.X - (intIndex * 10), objBounds.Location.Y)
This works visually, but it doesn't seem to affect the "clickable area" of effect. So even though the tabs draw just right, the area's to click in order to activate a tab, don't move, which causes some funky click effect.
Anyone know how I can fix this?
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook