Click here to Skip to main content
15,887,988 members
Home / Discussions / C#
   

C#

 
GeneralRe: String to Object Instance Problem Pin
atoi_powered17-Jul-12 0:40
atoi_powered17-Jul-12 0:40 
AnswerRe: String to Object Instance Problem Pin
Pete O'Hanlon16-Jul-12 20:53
mvePete O'Hanlon16-Jul-12 20:53 
GeneralRe: String to Object Instance Problem Pin
atoi_powered17-Jul-12 0:25
atoi_powered17-Jul-12 0:25 
GeneralRe: String to Object Instance Problem Pin
Pete O'Hanlon17-Jul-12 1:16
mvePete O'Hanlon17-Jul-12 1:16 
GeneralRe: String to Object Instance Problem Pin
atoi_powered17-Jul-12 1:43
atoi_powered17-Jul-12 1:43 
GeneralRe: String to Object Instance Problem Pin
Pete O'Hanlon17-Jul-12 2:04
mvePete O'Hanlon17-Jul-12 2:04 
GeneralRe: String to Object Instance Problem Pin
atoi_powered17-Jul-12 3:42
atoi_powered17-Jul-12 3:42 
GeneralRe: String to Object Instance Problem Pin
Pete O'Hanlon17-Jul-12 3:50
mvePete O'Hanlon17-Jul-12 3:50 
Off the top of my head, I would possibly use something like this:
C#
private void ChangePictureBoxes(Control parentControl, Image img)
{
  foreach (Control control in parentControl.Children)
  {
    PictureBox picture = control as PictureBox;
    if (picture != null)
    {
      picture.BackgroundImage = img;
      continue;
    }
    // Loop through the children - just in case the pictureboxes
    // are in other control containers.
    ChangePictureBoxes(control);
  }
}

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: String to Object Instance Problem Pin
atoi_powered17-Jul-12 3:57
atoi_powered17-Jul-12 3:57 
GeneralRe: String to Object Instance Problem Pin
Pete O'Hanlon17-Jul-12 4:19
mvePete O'Hanlon17-Jul-12 4:19 
GeneralRe: String to Object Instance Problem Pin
atoi_powered17-Jul-12 4:21
atoi_powered17-Jul-12 4:21 
GeneralRe: String to Object Instance Problem Pin
Pete O'Hanlon17-Jul-12 4:25
mvePete O'Hanlon17-Jul-12 4:25 
GeneralRe: String to Object Instance Problem Pin
BobJanova17-Jul-12 3:58
BobJanova17-Jul-12 3:58 
GeneralRe: String to Object Instance Problem Pin
Pete O'Hanlon17-Jul-12 4:17
mvePete O'Hanlon17-Jul-12 4:17 
AnswerRe: String to Object Instance Problem Pin
BobJanova17-Jul-12 3:58
BobJanova17-Jul-12 3:58 
GeneralRe: String to Object Instance Problem Pin
atoi_powered17-Jul-12 4:09
atoi_powered17-Jul-12 4:09 
GeneralRe: String to Object Instance Problem Pin
BobJanova18-Jul-12 2:33
BobJanova18-Jul-12 2:33 
GeneralRe: String to Object Instance Problem Pin
atoi_powered18-Jul-12 3:11
atoi_powered18-Jul-12 3:11 
QuestionBetter date / time parse? Pin
SledgeHammer0116-Jul-12 12:50
SledgeHammer0116-Jul-12 12:50 
AnswerRe: Better date / time parse? Pin
Peter_in_278016-Jul-12 14:01
professionalPeter_in_278016-Jul-12 14:01 
AnswerRe: Better date / time parse? Pin
BobJanova17-Jul-12 0:14
BobJanova17-Jul-12 0:14 
QuestionRepresenting a 4 digit integer in 2 positions alphanumeric placeholder. Pin
RK KL16-Jul-12 8:23
RK KL16-Jul-12 8:23 
GeneralRe: Representing a 4 digit integer in 2 positions alphanumeric placeholder. Pin
OriginalGriff16-Jul-12 8:38
mveOriginalGriff16-Jul-12 8:38 
GeneralRe: Representing a 4 digit integer in 2 positions alphanumeric placeholder. Pin
RK KL16-Jul-12 8:46
RK KL16-Jul-12 8:46 
GeneralRe: Representing a 4 digit integer in 2 positions alphanumeric placeholder. Pin
PIEBALDconsult16-Jul-12 9:27
mvePIEBALDconsult16-Jul-12 9:27 

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.