Created
November 12, 2015 04:03
-
-
Save trcio/f661755d01f636c394d4 to your computer and use it in GitHub Desktop.
Hide your tab selectors at runtime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TablessControl : TabControl | |
{ | |
protected override void WndProc(ref Message m) | |
{ | |
if (m.Msg == 0x1328 && !DesignMode) | |
m.Result = new IntPtr(1); | |
else | |
base.WndProc(ref m); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment