473,320 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Could you please explain what 'Controls' is used for?

I tried to use the help on 'controls' to find out what it is used for but
there is so many different uses for the word as to make the help useless.

So I tried the following.

It appears the second statement adds a new tabpage at the right of the
existing pages.

The third statement inserts the page in front of the existing selected page.

The picturebox is does not show anywhere.

Could you please explain what 'Controls' is used for?

Thanks

TabPageNew.Controls.Add(PictureBoxNew)

TabControlMain.Controls.Add(TabPageNew)

TabControlMain.TabPages.Insert(TabControlMain.Sele ctedIndex, TabPageNew)
Mar 21 '07 #1
1 1145
On Mar 21, 3:09 pm, " active" <activeNOS...@a-znet.comwrote:
I tried to use the help on 'controls' to find out what it is used for but
there is so many different uses for the word as to make the help useless.

So I tried the following.

It appears the second statement adds a new tabpage at the right of the
existing pages.

The third statement inserts the page in front of the existing selected page.

The picturebox is does not show anywhere.

Could you please explain what 'Controls' is used for?

Thanks

TabPageNew.Controls.Add(PictureBoxNew)

TabControlMain.Controls.Add(TabPageNew)

TabControlMain.TabPages.Insert(TabControlMain.Sele ctedIndex, TabPageNew)
Public ReadOnly Property Controls() As
System.Windows.Forms.Control.ControlCollection
Member of: System.Windows.Forms.Control
Summary:
Gets the collection of controls contained within the control.

Return Values:
A System.Windows.Forms.Control.ControlCollection representing the
collection of controls contained within the control.

The TabPage class inherits this form the System.Windows.Forms.Control
Class. To view the object browser use F2 in visual studio and search
for System.Windows.Forms.TabPage

Mar 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chuck Rewood | last post by:
Hi, I am new in .NET and I'd like to build and application which control user's device. I've made a C# Windows application project that controls and run one of our POS device. Since I believe...
8
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender,...
13
by: Lloyd Sheen | last post by:
I have now spent 5 hours on google/msdn looking for something useful in the creation of user controls for asp.net. The VS 2003 has very limited support for things such as absolute positioning of...
1
by: JS | last post by:
Hello, I am using ASP .Net to create my own web controls and I have noticed that there is one too many requirements that forces the developer to be aware of and get involved with. In the past...
4
by: BluDog | last post by:
Hi I am trying to test dynamically created controls, to do this i have added a placeholder to a WbForm and added the following code behind: Private Property Count() As Integer Get If...
7
by: John | last post by:
Hi all, I need finality on this once and for all please. I have a main page which contains a couple of placeholders and within these placeholders, depending on what the user presses, I load...
2
by: John Bailey | last post by:
I have checked around and could not find anything here that exactly matches my issue, which is odd since I have found numerous posts on this in other news groups. I have a ASP .Net 2.0 site that...
13
by: pamelafluente | last post by:
Hello. I have written the following code (this code is on a control): Sub InitSomething() mSet(me.FindForm) End Sub Sub mSet(ByVal f As Control) For Each t As Control In f.Controls If...
0
by: imranabdulaziz | last post by:
Hi all, I am using asp.net and C# Visual studio 2005. Let me explain the scenario. I have stored procedure which return very no of column based on condition. Becoz I have to show columnwise...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.