CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    if i entered 5 then it will create 5 textboxes , if entered 6 then 6, etc....How?

    I need to create chart, that if i enter 5 in "number of lines" then it will create 5 "lines" on the form in each line i need to have 3 textboxes (horizontal order), if I enter 7 into "number of lines" then program will create 7 lines with 3 texboxes in each......
    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: if i entered 5 then it will create 5 textboxes , if entered 6 then 6, etc....How?

    to dynamically add controls to your form use one of the following approaches:
    - a control array
    - VB 6's Controls.Add method


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured