473,507 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Referring to Controls made during runtime

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
2 978
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3080
by: rp | last post by:
Hi, How would I create runtime tabpages with runtime controls(textBoxes,comboBox, checkedListBox), inserting,deleting, and modifing the tabpages whenever I want to in C#? Thanks in advance. rp
9
14351
by: David | last post by:
hello... i want to renove all controls from panel... i use this: foreach (Control c in panel.Controls) panel.Controls.Remove(c); but it's doesn't work... -- not all controls are removed...
4
6710
by: Chuck Ritzke | last post by:
Hi, I've searched the newsgroup and other sources to understand how to handle runtime controls and see I'm not the only one who's confused, but I'm still not quite sure of the best way to handle...
3
3420
by: Ed Chiu | last post by:
Hi, I plan to use panel to store multiple HTML text in a web form page, here is the code snippet that add HTML into panel: Dim lit1 As New Literal lit1.Text = strHTML...
22
2149
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
4
1959
by: rushikesh.joshi | last post by:
Hi All, I have created my own WebControl and want to add it in my aspx page at runtime. it's compiling perfectly, but when i m going to execute, it gives me error of "Object reference not set...
3
2373
by: mattgcon | last post by:
I was curiuos if anyone knew of a way to allow drag and drop functionality on the actual controls themselves during runtime within a Windows Application. I want to allow the user to customize a...
15
6474
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
2
6127
by: sagarbakliwal | last post by:
hi, I am new to this forum but i have received a lot of help reading through this forum. I am creating a VB.NET application for Patient Record Management. In this there are various combo boxes and...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.