i have 12 groupbox in each tabcontrol page. And i want to keep all groupbox in same location of same size overlapping each other. I want to make one function and apply to all groupbox. So that my code wouldnot be lengthy. But i didnot get idea to do so. so provide me some code and hints sir. would be greatfull.
Jump to Post
You can iterate through all controls, or in this example, all controls of a given type.
For Each ctrl As GroupBox In TabControl1.TabPages(0).Controls.OfType(Of GroupBox)() MyCustomSub(ctrl) Next Private Sub MyCustomSub(ctrl As GroupBox) . . . End Sub
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.