Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

VS 2013 Shaping my tabs to imitate Chrome's tabs, by setting an array of points?

$
0
0
http://www.codeproject.com/Articles/...l-from-scratch

I'm creating a web browser in Visual Basic, and I am using the ever-so-popular MDI Tab Control to do so. The example project on the page sort of contains what I am looking for, but not quite.

The GetTabRegion event of the MDITabControl appears to occur whenever a tab is drawn. It gives you full control over the shape of the tab. e contains Points, of which the array has an upper bound of 5 by default.

I am no good with points or graphics in general, and therefore I must ask you guys, what would I set as each of the points, from e.Points(0) all the way up to e.Points(5) in order to have my tabs shaped like Chrome's tabs?

Keep in mind, my TabHeight is a constant 24.

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>