ucase,
A control is not serializable, so you cannot place it in a database.
What you can do is giving it an ident.
Than you can find it direct in the method as I gave you, what is early
binding and which goes fast at runtime or using it indirect using reflection
(late binding).
For both you have to build an error routine in your program for if somebody
outside the program changes the database.
That reflection method is less work to type with 100 controls, however I
don't like it, with some copy and paste and simple indexnames that select is
as well very quick build.
Beneath a link to a sample. There are more samples in this newgroup about
using reflection with this. However you can maybe start with this one.
http://groups.google.com/group/micro...53a4b7e?hl=en&
I hope this helps,
Cor
"ucasesoftware" <uc***********@hotmail.fr> schreef in bericht
news:11**********************@g43g2000cwa.googlegr oups.com...
myApplication have to take message from phone
But if its doctor message i have to display doctor UC and if it's
customers message i have to display curtomer message
So i have several UC and one message winform
but i can have 100 UC...
So ok i can do Select Case ....
but if i can do directry .... dim myUC as new " cmd.excecuteScalar"
it's more clean code...
that's all... but maybe it's impossible