hi,
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.
sushilsth
0
Light Poster
Recommended Answers
Jump to PostYou 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
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
ShahanDev
41
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.