protected override void OnHandleCreated(EventArgs e) { base.OnHandleCreated(e); #if !__MonoCS__ // Make text box a child of the outlookbar control WindowsAPI.SetParent(textBox.Handle, Handle); #else textBox.Parent = this; #endif }