Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Components & Controls
GUI
Index Of Panels
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="eternal_apocalypse_202, post: 37286, member: 8071"] For my program i have different panels containing data. Wat i tried to do was when the panel was focused (or clicked/brought to front) the following code would execute currentpanel = Me.Controls.IndexOf(sender) 'Sender bieng the panel control the problem is that these panels are created at run time, and they all have an index of 0 according to the value returned by that.... :confused: is there a different way to get the index of these controls, or do created controls use the same index in vb.net? the code to create them is: DO Dim newpanel As New Panel 'SETS PROPERTIES me.controls.add(newpanel) i += 1 LOOP until i = My.Settings.NumberOfItems so basically i need each panel to have a unique index :p Thanks! [/QUOTE]
Insert quotes…
Verification
Post reply
Components & Controls
GUI
Index Of Panels
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom