Click here to Skip to main content
15,888,301 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looping through Controls on a tab page Pin
BoneSoft17-Jul-07 10:49
BoneSoft17-Jul-07 10:49 
GeneralRe: Looping through Controls on a tab page Pin
PIEBALDconsult17-Jul-07 10:51
mvePIEBALDconsult17-Jul-07 10:51 
GeneralRe: Looping through Controls on a tab page Pin
Tarakeshwar Reddy17-Jul-07 10:58
professionalTarakeshwar Reddy17-Jul-07 10:58 
GeneralRe: Looping through Controls on a tab page Pin
PIEBALDconsult17-Jul-07 11:18
mvePIEBALDconsult17-Jul-07 11:18 
GeneralRe: Looping through Controls on a tab page Pin
BoneSoft17-Jul-07 11:32
BoneSoft17-Jul-07 11:32 
GeneralRe: Looping through Controls on a tab page Pin
PIEBALDconsult17-Jul-07 11:43
mvePIEBALDconsult17-Jul-07 11:43 
GeneralRe: Looping through Controls on a tab page Pin
BoneSoft17-Jul-07 12:08
BoneSoft17-Jul-07 12:08 
GeneralRe: Looping through Controls on a tab page [modified] Pin
PIEBALDconsult17-Jul-07 17:17
mvePIEBALDconsult17-Jul-07 17:17 
Preliminary results confirm my theory:

as works well with a homogenous collection

is works well with a heterogenous collection

But cast/catch/ignore also works well with a homogenous collection, at times even better than as ! (Not that I recommend it... much.) It is horrible with a heterogenous collection.


On the other hand, as doesn't work with value types, but I've had success testing it with nullable types.


-- modified at 23:52 Tuesday 17th July, 2007

Whoops, need to add that the if ( o.GetType() == typeof(sometype) ) method is faster than both is and as, but at the cost of not checking the inheritance tree.
GeneralRe: Looping through Controls on a tab page Pin
Martin#17-Jul-07 20:03
Martin#17-Jul-07 20:03 
GeneralRe: Looping through Controls on a tab page Pin
Mike Dimmick17-Jul-07 11:42
Mike Dimmick17-Jul-07 11:42 
GeneralRe: Looping through Controls on a tab page Pin
PIEBALDconsult17-Jul-07 11:49
mvePIEBALDconsult17-Jul-07 11:49 
JokeRe: Looping through Controls on a tab page Pin
BoneSoft17-Jul-07 12:10
BoneSoft17-Jul-07 12:10 
GeneralRe: Looping through Controls on a tab page Pin
PIEBALDconsult17-Jul-07 14:04
mvePIEBALDconsult17-Jul-07 14:04 
GeneralRe: Looping through Controls on a tab page Pin
Mike Dimmick17-Jul-07 20:17
Mike Dimmick17-Jul-07 20:17 
GeneralRe: Looping through Controls on a tab page Pin
PIEBALDconsult18-Jul-07 8:56
mvePIEBALDconsult18-Jul-07 8:56 
AnswerRe: Looping through Controls on a tab page Pin
BoneSoft17-Jul-07 10:48
BoneSoft17-Jul-07 10:48 
QuestionSelect Records From DataGridView Pin
polishprogrammer17-Jul-07 10:08
polishprogrammer17-Jul-07 10:08 
AnswerRe: Select Records From DataGridView Pin
Paul Conrad17-Jul-07 19:11
professionalPaul Conrad17-Jul-07 19:11 
GeneralRe: Select Records From DataGridView Pin
polishprogrammer18-Jul-07 4:11
polishprogrammer18-Jul-07 4:11 
QuestionList View Search Pin
topksharma198217-Jul-07 9:44
topksharma198217-Jul-07 9:44 
AnswerRe: List View Search Pin
BoneSoft17-Jul-07 10:14
BoneSoft17-Jul-07 10:14 
GeneralRe: List View Search Pin
topksharma198217-Jul-07 22:16
topksharma198217-Jul-07 22:16 
GeneralRe: List View Search Pin
BoneSoft18-Jul-07 1:49
BoneSoft18-Jul-07 1:49 
AnswerRe: List View Search Pin
Luis Alonso Ramos17-Jul-07 14:29
Luis Alonso Ramos17-Jul-07 14:29 
GeneralRe: List View Search Pin
topksharma198217-Jul-07 23:04
topksharma198217-Jul-07 23:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.