从C#WinForms中的TabControl中删除tabPage时,我可以处理什么事件,以便在TabControl中没有tabPages的情况下隐藏窗口?
You can use the SelectedIndexChanged
event. Then use the ((TabControl)sender).TabCount
to determine if any tabs are left on the control. If the count is zero, hide the control.
No matter how you accomplish grabbing the event, you'll need to do a check against the tab count to hide your control.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.