Click here to Skip to main content
15,887,596 members
Articles / Desktop Programming / Windows Forms

Determining which TabPage was clicked

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
3 Jan 2012CPOL 13.9K   3  
This method, although it doesn't use binary search, handles Multiline tab pages too.private static intGetTabIndexAt( System.Windows.Forms.TabControl tabControl, System.Drawing.Point point){ int result = -1; if (tabControl != null) { for (int i = 0;...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Poland Poland
My name is Jacek. Currently, I am a Java/kotlin developer. I like C# and Monthy Python's sense of humour.

Comments and Discussions