SHARE
TWEET

Untitled

a guest Jun 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static class Program
  2. {
  3.     [STAThread]
  4.     static void Main()
  5.     {
  6.         Application.EnableVisualStyles();
  7.         Application.SetCompatibleTextRenderingDefault(false);
  8.         var form1 = new Form();
  9.         var form2 = new Form();
  10.         var tab = new TabControl();
  11.         tab.TabPages.Add("first");
  12.         tab.Dock = DockStyle.Fill;
  13.         form2.TopLevel = false;
  14.         form1.Controls.Add(tab);
  15.         tab.TabPages[0].Controls.Add(form2);
  16.         form2.Controls.Add(new TextBox { Top = 10, Left = 10, Text = "Blah blah blah" });
  17.         form2.Controls.Add(new TextBox { Top = 35, Left = 10, Text = "more text here blah blah" });
  18.         form2.Visible = true;
  19.         Application.Run(form1);
  20.     }
  21. }
  22.      
  23. > form2.WM_PARENTNOTIFY
  24. > form1.WM_PARENTNOTIFY
  25. > form2.WM_MOUSEACTIVATE
  26. >> form1.WM_MOUSEACTIVATE
  27. > form1.WM_WINDOWPOSCHANGING
  28. > form1.WM_WINDOWPOSITIONCHANGED
  29. > form1.WM_ACTIVATEAPP
  30. > form1.WM_NCACTIVATE
  31. > form1.WM_ACTIVATE
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top