donaldc104 Posted April 13, 2003 Posted April 13, 2003 Is there a way to "mouse-click a tab" on the top of a TabControl from code? I've tried several tactics but can't make it work yet. Quote
*Gurus* divil Posted April 13, 2003 *Gurus* Posted April 13, 2003 If you mean you want to change the selected tab from code, just do something like this: TabControl1.SelectedTag = TabPage1 Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
donaldc104 Posted April 14, 2003 Author Posted April 14, 2003 This works great - thanks ! This works great ! Thank you very much, Divil ! Just one small typo: "Tab" not "Tag" NG: TabControl1.SelectedTag = TabPage1 OK: TabControl1.SelectedTab = TabPage1 I searched high and low and couldn't find this. But it's so obvious after you spell it out. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.