TabControl动态显示Form窗体

FrmAssetAccountOper f = new FrmAssetAccountOper(tbrMain.ToolItems.GetToolbarItem<MzToolbarComboItem>("cmbCode").Value?.ToString());
f.FuncEntity = this.FuncEntity;
f.StartPosition = FormStartPosition.Manual;
f.TopLevel = false;
f.Dock = DockStyle.Fill;
f.Visible = true;
f.ShowCaption = false;
f.Show();
tpAssetAccount.Controls.Clear();
tpAssetAccount.Controls.Add(f);

 

posted @ 2021-01-13 13:32  博客YS  阅读(178)  评论(0编辑  收藏  举报