Is there a way to...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • miroku800
    New Member
    • Mar 2007
    • 21

    Is there a way to...

    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
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    You need to create the controls at run time.

    Comment

    • Dököll
      Recognized Expert Top Contributor
      • Nov 2006
      • 2379

      #3
      Originally posted by miroku800
      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

      Comment

      Working...