Control ID

Z

Zürcher See

Is it possible to reset the counter of the automatic id generator of the
ControlCollection?
When I add a Control to a new ControlCollection it recive the id "ctl1", if
the ControlCollection is cleared, the automatic counter won't be reset and
the next added control recive the id "ctl2".
 
K

Kannan.V [MCSD.net]

hi,

any reason as to why u need to reset the counter,
You can assign an ID to the control at design time.
Dont implement the inaming container interface to prevent prefixing the
controls with "ctlxxx".

regds,
Kannan.V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top