Home > Net >  How to dynamically generated binding dynamic timer events?
How to dynamically generated binding dynamic timer events?

Time:09-30

And new people for help, because no contact with c # programming basis is very bad, got a task is to do an interface, the problems now is that all controls need to be dynamically generated, namely reads a configuration text to generate n rows of n group control, the function of the timer is displayed on the label control the countdown, and restart the program, in the countdown to the
Each timer control label is different, to restart the program is different also, and because the label is generated dynamically, don't know how to change in timer method has not yet been generated label attribute
Original idea because each set of controls, in addition to control things and position, the other is the same, so I want to write a class, use a for loop to new come out, but don't know how to write also don't know if it is reasonable...

CodePudding user response:

You have generated dynamically controls, are stored in a list, to use that is, based on name or subscript to fetch it,

CodePudding user response:

Basis can specifically said in the code, I don't not know how to implement

CodePudding user response:

Dynamically generated control method, which used on the job chance is 0.01% (individual judgment), is to use less than simple says,
Dynamically generated control method belongs to the technology of box, personal advice in the way of learning, learning time can be the focus in the normal control method is the best policy,

The conclusion above, please refer to

CodePudding user response:

reference wilson1966 reply: 3/f
dynamically generated control method, which used on the job chance is 0.01% (individual judgment), simple says, is to use less than
Dynamically generated control method belongs to the technology of box, personal advice in the way of learning, learning time can be the focus in the normal control method is the best policy,

The conclusion above, please refer to
I completely have not used c #, mentor directly give me a task is full dynamic control and dynamic events... I am also very desperate
  •  Tags:  
  • C#
  • Related