I have a compact framework application [vb.cf] running on windows CE platform. I have a user control that I add multiple times to my to my form , to form a grid, in run-time.
I am now trying to access and set the properties on my user controls and using the ;
Dim mod_prop As ctl_mod_table = CType(Me.pnl_table.Controls("ctr_" & icount), ctl_mod_table)
This produces the following error :
Conversion from string "ctr_1" to type integer is not valid???
Any reason why I get this?
I DO NOT WANT TO USE A LOOP ALL CONTROLS procedure as this is slow.