By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,065 Members | 1,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,065 IT Pros & Developers. It's quick & easy.

Referring to Controls made during runtime

P: n/a
Hi Guys,

I am new to .net so bear with me! I have created a number of controls
during run time, A tabbed dialog with a number of tab page then on each
tab page then i have created a ZoomPicBox that is a custom control i got
from Bobpowels website. The ZoomPicBox's names are all Pic & number
(1,2,3 etc depending on the number of images loaded)

I need to know how i can access each ZoomPicBox later in my program.

I hope you can make sense of my question.

Andrew

*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

You are going to have to keep the variable that you used to create
the zoom picture box. Maybe you can store them in a form level arraylist or
hashtable.

Ken
------------------
"Andrew Stokes" <as*****@cellc.co.za> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Guys,

I am new to .net so bear with me! I have created a number of controls
during run time, A tabbed dialog with a number of tab page then on each
tab page then i have created a ZoomPicBox that is a custom control i got
from Bobpowels website. The ZoomPicBox's names are all Pic & number
(1,2,3 etc depending on the number of images loaded)

I need to know how i can access each ZoomPicBox later in my program.

I hope you can make sense of my question.

Andrew

*** Sent via Developersdex http://www.developersdex.com ***

Nov 21 '05 #2

P: n/a
Hi,

Well, That number i can get from the tab count couldnt I?

IE, ZoomPicBox1 is on tabpage1, ZoomPicBox2 is on TabPage2 etc..

Also, Am i naming them correctly, when i create them i say
ZoomPicBox1.Name = "Page" & i

I would then also be corresponding to the TabPage Number.

Thanks!!

Andrew

*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.