Event
It is possible to set an on gotFocus event for all my textboxes in a form without coding at the textbox gotFocus event individual ??
[133 byte] By [
Vafis] at [2007-11-15 16:17:35]

# 1 Re: Event
You may use an array of textboxes (same name, different index). This would mean to have all event for a generic Textbox which will contain information about Index. To know which textbox is triggering an event, you test the index property
Ie:
private sub text1_gorfocus(...,Index as integer,...)
select case index
case 0 'first textbox drawn
case 1
case 2
...
end select
end sub
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood,
Bruno Paris and all the other wonderful people who made and make dev-archive
a great place.
Come back soon, you Gurus.