Me again :/ TabControl.Controls

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
7 posts Page 1 of 1
Contributors
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Me again :/ TabControl.Controls
M1z23R
I need help with this :
Code: Select all
CType(TabControl1.SelectedTab.Controls.Item(0), RichTextBox).BringToFront()
How can i get controls.item( XXX ), non of the indexes isn't correct :/
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Me again :/ TabControl.Controls
Axel
How much controls do you have in each tab ?
http://vagex.com/?ref=25000
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: Me again :/ TabControl.Controls
M1z23R
Ok, fixed it myself, sorry for spam :/
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: Me again :/ TabControl.Controls
M1z23R
It was both index (1) :/
I have 1 webbrowser, 1 richtextb, 1 toolstrip
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: Me again :/ TabControl.Controls
M1z23R
Again buged :'(
After i click 1 button, it is like index is changed :(((
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Me again :/ TabControl.Controls
Axel
Can you use the EDIT button ? Thanks


You can try something like this
Code: Select all
For i as Integer = 0 To TabControl1.SelectedTab.Controls.Count -1
if TabControl1.SelectedTab.Controls(i).Name = "Yourcontrolname"
End if
Next
http://vagex.com/?ref=25000
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: Me again :/ TabControl.Controls
M1z23R
I changed it a little but that is what i wanted, thanks man A LOT !
7 posts Page 1 of 1
Return to “Tutorial Requests”