|
Yeah,
I'd have to wonder why you're too worried about it too...
I'm
assuming that OptionIndex is a combobox/listbox or similar?
If so,
a quick look at the source would suggest that using the ItemIndex property could
be slower since it fires a Windows Message off within its implementation,
whereas the Enabled property is simply reading the value of an internal
field. Hence, I'd suggest minimising the number of times you use the
ItemIndex property.
Use
the source, Luke... ;-)
HTH,
Conor
|
- Re: [DUG]: Just wondering... Rohit Gupta
- Re: [DUG]: Just wondering... Dennis Chuah
- Re: [DUG]: Just wondering... Ross Levis
- RE: [DUG]: Just wondering... David Brennan
- Re: [DUG]: Just wondering... Neven MacEwan
- RE: [DUG]: Just wondering... Leigh Wanstead
- Re: [DUG]: Just wondering... Dennis Chuah
- Re: [DUG]: Just wondering... Pedrocelli
- Re: [DUG]: Just wondering... Ross Levis
- Re: [DUG]: Just wondering... Dennis Chuah
- RE: Re: [DUG]: Just wondering... Conor.Boyd
- RE: Re: [DUG]: Just wondering... Stacey Verner
- RE: Re: [DUG]: Just wondering... Leigh Wanstead
