code_junkie

How to handle stacked controls in .NET Winforms?

Nov 12th, 2011
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. using System;
  2. using System.Windows.Forms;
  3.  
  4. public class TablessControl : TabControl {
  5. protected override void WndProc(ref Message m) {
  6. // Hide tabs by trapping the TCM_ADJUSTRECT message
  7. if (m.Msg == 0x1328 && !DesignMode) m.Result = (IntPtr)1;
  8. else base.WndProc(ref m);
  9. }
  10. }
Add Comment
Please, Sign In to add comment