Click here to Skip to main content
15,918,967 members
Home / Discussions / C#
   

C#

 
GeneralRe: How set the background of an MDI container window? Pin
Alisaunder29-Oct-11 18:02
Alisaunder29-Oct-11 18:02 
GeneralRe: How set the background of an MDI container window? Pin
Dave Kreskowiak30-Oct-11 3:16
mveDave Kreskowiak30-Oct-11 3:16 
GeneralRe: How set the background of an MDI container window? Pin
BobJanova30-Oct-11 23:09
BobJanova30-Oct-11 23:09 
GeneralRe: How set the background of an MDI container window? Pin
Dave Kreskowiak31-Oct-11 1:30
mveDave Kreskowiak31-Oct-11 1:30 
GeneralRe: How set the background of an MDI container window? Pin
BobJanova31-Oct-11 2:11
BobJanova31-Oct-11 2:11 
GeneralRe: How set the background of an MDI container window? Pin
BillWoodruff29-Oct-11 18:02
professionalBillWoodruff29-Oct-11 18:02 
GeneralRe: How set the background of an MDI container window? Pin
Alisaunder29-Oct-11 18:06
Alisaunder29-Oct-11 18:06 
GeneralRe: How set the background of an MDI container window? Pin
Dave Kreskowiak30-Oct-11 3:21
mveDave Kreskowiak30-Oct-11 3:21 
Alisaunder wrote:
Also adding Try and catch is error controlling which I don't care who you are
is still considered good practice


Only if used appropriately. If this little block is coded up correctly, you won't have a need for a try/catch block at all.

If I had to use a try/catch block, it wouldn't be in the manner than you copied from MSDN. It would have been outside the foreach or even in the caller and not this method and still used the if statement to test the control type.

GeneralRe: How set the background of an MDI container window? Pin
BobJanova30-Oct-11 23:07
BobJanova30-Oct-11 23:07 
GeneralRe: How set the background of an MDI container window? Pin
RichardGrimmer2-Nov-11 7:09
RichardGrimmer2-Nov-11 7:09 
GeneralMy vote of #3 ... Re: How set the background of an MDI container window? Pin
BillWoodruff29-Oct-11 17:37
professionalBillWoodruff29-Oct-11 17:37 
AnswerRe: How set the background of an MDI container window? Pin
phil.o29-Oct-11 23:15
professionalphil.o29-Oct-11 23:15 
GeneralRe: How set the background of an MDI container window? Pin
Dave Kreskowiak30-Oct-11 3:23
mveDave Kreskowiak30-Oct-11 3:23 
AnswerRe: How set the background of an MDI container window? Pin
Ravi Bhavnani30-Oct-11 12:06
professionalRavi Bhavnani30-Oct-11 12:06 
QuestionMdi Form Pin
jojoba2029-Oct-11 1:14
jojoba2029-Oct-11 1:14 
AnswerRe: Mdi Form Pin
tgurlevik29-Oct-11 2:43
tgurlevik29-Oct-11 2:43 
AnswerRe: Mdi Form Pin
Dave Kreskowiak29-Oct-11 3:15
mveDave Kreskowiak29-Oct-11 3:15 
QuestionCasting to Abstract 'parent' rather than casting to Interface ? Pin
BillWoodruff28-Oct-11 22:31
professionalBillWoodruff28-Oct-11 22:31 
AnswerRe: Casting to Abstract 'parent' rather than casting to Interface ? Pin
Luc Pattyn29-Oct-11 1:37
sitebuilderLuc Pattyn29-Oct-11 1:37 
GeneralRe: Casting to Abstract 'parent' rather than casting to Interface ? Pin
Not Active29-Oct-11 5:17
mentorNot Active29-Oct-11 5:17 
GeneralRe: Casting to Abstract 'parent' rather than casting to Interface ? Pin
Luc Pattyn29-Oct-11 5:45
sitebuilderLuc Pattyn29-Oct-11 5:45 
GeneralRe: Casting to Abstract 'parent' rather than casting to Interface ? Pin
BillWoodruff29-Oct-11 16:26
professionalBillWoodruff29-Oct-11 16:26 
AnswerRe: Casting to Abstract 'parent' rather than casting to Interface ? Pin
Luc Pattyn29-Oct-11 17:40
sitebuilderLuc Pattyn29-Oct-11 17:40 
AnswerRe: Casting to Abstract 'parent' rather than casting to Interface ? Pin
PIEBALDconsult29-Oct-11 4:27
mvePIEBALDconsult29-Oct-11 4:27 
GeneralRe: Casting to Abstract 'parent' rather than casting to Interface ? Pin
BillWoodruff29-Oct-11 16:30
professionalBillWoodruff29-Oct-11 16:30 

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.