Sender

  • Thread starter Thread starter Merlin
  • Start date Start date
M

Merlin

Hi,

I can't remember how to get the sending controls name; used it before but
can't find which of my programs has it:-

sender.GetType.GetProperty(????????????????

Please help.

Thanks,
Merlin.
 
Hi KS,

I say it for Jan, to show he is not only saying it.

If you are making slow programs
Sender.Name
Otherwise
or
Directcast(sender,Control).name

I hope this helps,

Cor
 
Thanks Jan, yes the sender is a control.
I have just worked out that from the procedure I can user sender.name also.

Merlin
 
I agree with Cor, I recommend always to work type safe, so do your own
explicit castings.

I agree too. Use "Option Strict On" all the time - you'll be surprised how
many run time errors it can cut out, not to mention making you more aware of
what you're doing.

Trev.
 
Back
Top