473,322 Members | 1,736 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,322 software developers and data experts.

list elements in form

Hi,

Can anyone tell me how to get the ID's and text from all the labels,
textboxes, checkboxes, buttons, etc in a form? This needs to be in
VB, not C#.

Thanks!
Steve

May 7 '07 #1
4 1441
Hello gl****@gmail.com,

All elemens on the page are stored hierarchy into Page object.
So, just iterate throght them, taking ID and Name properties
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Hi,

Can anyone tell me how to get the ID's and text from all the labels,
textboxes, checkboxes, buttons, etc in a form? This needs to be in
VB, not C#.

Thanks!
Steve

May 7 '07 #2
On May 7, 4:31 pm, Michael Nemtsev <nemt...@msn.comwrote:
Hello glb...@gmail.com,

All elemens on the page are stored hierarchy into Page object.
So, just iterate throght them, taking ID and Name properties

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Hi,
Can anyone tell me how to get the ID's and text from all the labels,
textboxes, checkboxes, buttons, etc in a form? This needs to be in
VB, not C#.
Thanks!
Steve- Hide quoted text -

- Show quoted text -
================================================== ================================================== =====
================================================== ================================================== =====

I guess I should have said that I am new to VB.Net ... how do I do
that? Do you have a code example?

Thanks,
Steve

May 7 '07 #3
On May 7, 4:31 pm, Michael Nemtsev <nemt...@msn.comwrote:
Hello glb...@gmail.com,

All elemens on the page are stored hierarchy into Page object.
So, just iterate throght them, taking ID and Name properties

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Hi,
Can anyone tell me how to get the ID's and text from all the labels,
textboxes, checkboxes, buttons, etc in a form? This needs to be in
VB, not C#.
Thanks!
Steve- Hide quoted text -

- Show quoted text -

I guess I should have mentioned that I am new to VB.Net. How do I
loop through the for and do this? Do you know of some example code?

Thanks,
Steve

May 7 '07 #4
http://steveorr.net/faq/ControlTreeRecursion.aspx

This should be of some help; it gives some source code (for both C# and VB)
and explains what it's doing.

You can modify the code to capture the values into an array (rather than
chance the .BackColor of the textboxes).

HTH

-dl

---
David R. Longnecker
Web Developer
http://blog.tiredstudent.com
On May 7, 4:31 pm, Michael Nemtsev <nemt...@msn.comwrote:
>Hello glb...@gmail.com,

All elemens on the page are stored hierarchy into Page object. So,
just iterate throght them, taking ID and Name properties

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo
>>Hi,

Can anyone tell me how to get the ID's and text from all the labels,
textboxes, checkboxes, buttons, etc in a form? This needs to be in
VB, not C#.

Thanks!
Steve- Hide quoted text -
- Show quoted text -
================================================== ====================
===================================

================================================== ====================
===================================

I guess I should have said that I am new to VB.Net ... how do I do
that? Do you have a code example?

Thanks,
Steve

May 7 '07 #5

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

Similar topics

1
by: marx | last post by:
I have a bit of a problem and any help would be much appreciated. Problem: I have two dropdown list boxes with same data(all data driven). These are used for two separate entries. For every...
5
by: John | last post by:
Hi, I have the following code: <FORM> <font size="3">Brands </font><br /> <SELECT SIZE="1" NAME="categorylist" STYLE="font-size: 8pt"> <OPTION VALUE=http://my.domain,.com/cetegory1.html...
5
by: Nick Calladine | last post by:
Learning : Loop to list all dropdown box values on a form Can some one point me in the right direction : I have a form which I want to loop through I basically want to get all the selected...
4
by: adam.lock | last post by:
Hi I have a form which has 10 list boxes on it, each with a select option with values 0 to 3. Once the user submits the form, I want to validate that only three of the list boxes have been...
9
by: john woo | last post by:
Hi Please see the following simple script: <TD align="Left" width="30%" > <select name="DEPARTMENT" SIZE ="1" style="width:200px;" onChange="Change()"> <option value="0"> &lt;ALL&gt...
2
by: /.. | last post by:
Hi all, I'm working on a report display page that currently uses 5 checkboxlists with a total of 86 items to display values from 5 different tables in an Access database. The page works fine...
5
by: Kay | last post by:
Hello, I have two list boxes on my form, one initially displays with items and the other displays blank, by clicking a button, it is possible to move items from one box to another and vice a...
1
by: platostoteles | last post by:
Hallo NG, I am new to JavaScript and would really appreciate any help to solve my problem. I am using the blow code in my form to validate form fields. What I would like to accomplish is that...
1
by: Christina | last post by:
Hi, I've been looking at some code for dependent list boxes to adapt to a State and City list. There will only be 2 states for the first list box, and 3 cities in the second list box. When the...
1
by: jmartmem | last post by:
Greetings, I have a nagging problem with client-side dynamic dependent list boxes that perhaps someone can help me troubleshoot. I have a form with a series of dynamic dependent list boxes....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.