Referring to Controls made during runtime

  • Thread starter Thread starter Andrew Stokes
  • Start date Start date
A

Andrew Stokes

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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top