473,396 Members | 2,057 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,396 software developers and data experts.

Repeat controls

I am wanting to create an order form with a couple of text boxes and a
ComboBox.

Because it's an order form, there need to be several (maybe 5) of them. My
guess is the best way is to create an inherited form, but I couldn't figure
out how to get it to repeat.

Also, when those five controls get filled out, I would like to add another
on the bottom.

Suggestions?

Matthew
Nov 21 '05 #1
3 1725

"Matthew" <tu*************@alltel.net> wrote
I am wanting to create an order form with a couple of text boxes and a
ComboBox.

Because it's an order form, there need to be several (maybe 5) of them. My
guess is the best way is to create an inherited form, but I couldn't figure
out how to get it to repeat.

Also, when those five controls get filled out, I would like to add another
on the bottom.

Suggestions?

Make the group a single User Control?

LFS
Nov 21 '05 #2
> Make the group a single User Control?

Yes, that's the idea.
However, I still don't know how to make several programmatically.

I am looking for something like this:
For i As Integer = 1 To 4
Me.UserControl1 & i = New UserControl1
Me.Controls.Add(UserControl1 & i)
Next

Unfortunately, that's not valid.

Matthew
Nov 21 '05 #3

"Matthew" <tu*************@alltel.net> wrote
Make the group a single User Control?


Yes, that's the idea.
However, I still don't know how to make several programmatically.

I am looking for something like this:
For i As Integer = 1 To 4
Me.UserControl1 & i = New UserControl1
Me.Controls.Add(UserControl1 & i)
Next

First open up the designer code section and see how VB adds
controls. You'll need to copy that process.

Second you need one variable name to refer to several identical
objects. That means you need to hold them in an array.

Dim MyControls() As UserControl1

LFS
Nov 21 '05 #4

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

Similar topics

1
by: Zachary | last post by:
Hi I am developing web page using asp.net with c# coding. I would like to know how can i get the value of repeat same id name text box item in my aspx web page Let say i have textbox name ...
4
by: Salvador | last post by:
Hi, Maybe is a simple question but I found difficult to find the answer. Context: I am creating a site where designers ONLY touch the ASPX page and I.S. touch the code behind. Task: I...
6
by: Jane sharpe | last post by:
Hi I have an aspx page that is called with an ID parameter, it then performs a SQL statement using the ID field and displays some data on the page. It works a treat What I want to do however,...
0
by: .Net Newbie | last post by:
I am relatively new to .Net and have been coding an intranet site for my employer for a couple of months. I am currently stuck coding in a text-editor called EditPlus without access to the VS.Net...
3
by: Jana | last post by:
Good morning, Access gurus! I'm having a brain fart and can't seem to wrap my head around the logic for this problem, so I'm hoping someone out there can help me out. Here's my situation: I...
1
by: nicky77 | last post by:
hi there, i'm pretty inexperienced with CSS, so apologies for the shoddy coding. i'm trying to set a 3 column layout using different background images for each column. however, i have whitespace at...
2
XedinUnknown
by: XedinUnknown | last post by:
Hi! I am new to this forum, but not new to web design and programming. Nevertheless, I have never tried to use PNG so extensively in my pages. here's the problem. First, I have found that the...
4
by: shapper | last post by:
Hello, I am trying to give a background to a Div repeating it on the y direction. Please, notice the alternate of colors: http://www.27lamps.com/Beta/Background/Background.html Does anyone...
0
by: shapper | last post by:
On Sep 25, 1:56 am, shapper <mdmo...@gmail.comwrote: Sherm, Thank you to point that to me. I forgot to hide the gradient on Photoshop and I was all this time going around my CSS. Thank you...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.