#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    5
    Rep Power
    0

    making sets of controls visible based on user input


    Hi,
    I am trying to change the visible property on some controls to true based on a number input from the user from txtNoOfRes.

    lblRes1 txtWorker1 txtDemand1 txtHours1
    lblRes2 txtWorker2 txtDemand2 txtHours2
    and so on up to ten.
    on load their visible property will be false.

    if user typres in 1, then the first row is made visible.
    if user types 2, then the first 2 rows are visible.
    and so on.
    how do i loop through and set their visible property to true based on the user input?

    Thanks in advance for any help you can give me.
    Last edited by dominofoe; October 15th, 2013 at 01:42 PM. Reason: Better title more question

IMN logo majestic logo threadwatch logo seochat tools logo