PC Review


Reply
Thread Tools Rate Thread

add controls

 
 
stewart
Guest
Posts: n/a
 
      10th Sep 2007
I am creating an app that will allow me to enter an unspecified set of
data. Ideally I would like to be able to input the number of desired
sets into a text box and when i click on the command button it opens a
userform with that many sets. A set of data would consist of four
text boxes. I have been able to add controls using controls .add but
I am not sure how to tel vb to do it the specified number of times and
to space them accordingly. The other option I thought of would be to
start with maybe 5 sets and have a button that would add an additional
set as needed. This would involve adding a set of text boxes below
the ones that already exist. I have searched and searched and the
only solution i could find would be to create all the controls and
make them visible or not. This seems like a time consuming process and
would increase the size of the file. If this is the way it must be
done how can i setup 100 sets (400 textboxes total) without doing
each one individually. ANy input or suggestions are welcome. Thanks
for any help i can get.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski Microsoft ASP .NET 4 5th Sep 2007 04:27 AM
Why the properties of web user controls which inherted from my custom base UI controls MISSED? ABC Microsoft C# .NET 0 21st Nov 2005 04:08 AM
Message box breaks owner draw controls in .NET controls used as ActiveX controls (again) Clive Dixon Microsoft Dot NET Framework Forms 0 26th May 2004 10:15 AM
Multiple controls with the same ID '_ctl24' were found. Trace requires that controls have unique IDs Jeff Tolman Microsoft ASP .NET 0 4th Nov 2003 09:53 PM
How to force the child controls OnClick event before the parent controls CreateChildControls method? Arulraja Microsoft ASP .NET 3 17th Oct 2003 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:39 PM.