dusans Posted December 4, 2002 Posted December 4, 2002 I'm using TabControl in VB.NET and i don't know how to disable specific TabPage to prevent user to view or activate that page. Quote
*Gurus* divil Posted December 4, 2002 *Gurus* Posted December 4, 2002 You can't. This isn't a supported functionality of a tab page, you won't see this done anywhere in Windows. You might want to rethink your interface design. Perhaps you could disable all child controls of a tab page (would be trivial). 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
Moderators Robby Posted December 4, 2002 Moderators Posted December 4, 2002 you could disable or invisible the child controls in a TabPage... Private Sub ChangeTextboxState(ByVal state As Boolean) Dim ctr As Control For Each ctr In tabPage1.Controls If TypeOf ctr Is TextBox Then ctr.Enabled = state End If Next end sub Quote Visit...Bassic Software
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.