private void _addSearchResult() { if (txtSearch.Text == string.Empty) { return; } SearchResultControl searchresults = new SearchResultControl(); _addTab(searchresults, txtSearch.Text + " - Results"); }
private void _addSearchResult() { if (txtSearch.Text == string.Empty) { return; } TabPage page = new TabPage(txtSearch.Text + " - Results"); SearchResultControl searchresults = new SearchResultControl(); page.Controls.Add(searchresults); tabMainTabControl.TabPages.Add(page); }