By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,067 Members | 1,818 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,067 IT Pros & Developers. It's quick & easy.

Is there a way to...

P: 21
In VB6 is there a way to provide a series of text boxes (4) in a row for data entry according to a preset number previously entered IE.
a text box requests entry of a number corresponding to the number of lines of data to be entered (Max 20) and the appropriate number of 'lines of boxes' appear on screen ready for the data to be entered, so if 3 was entered then 3 sets of boxes appear and if 6 was entered then 6 sets of boxes appear

i cannot find a way of doing this in my reference books and it may not be possible and I will just have to lay them all out on a form and only use what is needed and ignoring the blanks,

Many thanks for any ideas
May 19 '08 #1
Share this Question
Share on Google+
2 Replies


debasisdas
Expert 5K+
P: 8,127
You need to create the controls at run time.
May 19 '08 #2

Dököll
Expert 100+
P: 2,364
In VB6 is there a way to provide a series of text boxes (4) in a row for data entry according to a preset number previously entered IE.
a text box requests entry of a number corresponding to the number of lines of data to be entered (Max 20) and the appropriate number of 'lines of boxes' appear on screen ready for the data to be entered, so if 3 was entered then 3 sets of boxes appear and if 6 was entered then 6 sets of boxes appear

i cannot find a way of doing this in my reference books and it may not be possible and I will just have to lay them all out on a form and only use what is needed and ignoring the blanks,

Many thanks for any ideas
Hello, miroku800!

I got an idea; you provide a pseudocode or some sort, I'd say at least an outline of what you are you are trying to achieve, and see where that gets us.

I think you have a pretty good idea here, just in case others are passing through, added info may be needed. Please provide a bit more notes or probable code samples to aid in pinning it down for you.

How's that for a deal?

Dököll
May 20 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.