public FileViewTab(string filePath, FileView control) { control.CheckForNullArg("control"); this.ToolTipText = filePath; this.Text = Path.GetFileName(filePath); control.Dock = DockStyle.Fill; this.Controls.Add(control); }