Các bạn cho mình hỏi là có thể show một form ra tabcontrol trong c# không?
Cái này ngày xưa mình dùng dotnetbar thì show được, còn dùng cái tabcontrol trong bộ VS2008 thì có show được không?
Code mình dùng show trong dotnerbar
Code:
tabControlDanhMucQL.Visible = true;
TabItem t = tabControlDanhMucQL.CreateTab("Danh mục sản phẩm");
DanhMucSP_SanPhamForm frm = new DanhMucSP_SanPhamForm();
frm.TopLevel = false;
t.AttachedControl.Controls.Add(frm);
frm.Show();
tabControlDanhMucQL.SelectedTabIndex = tabControlDanhMucQL.Tabs.Count - 1;