It’s important to have an understanding of genealogy; it can give you a connection to history. Even in code, we find a need to connect with our parents and their ancestors.

Kevin found some code that needed to connect a PictureBox with the Form that it’s displayed on.

private void MouseMove(object sender, MouseEventArgs e)
{
(sender as PictureBox).Parent.Parent.Parent.Parent.Parent.GetType();
}

Ben found an eerily similar bit of JavaScript in a Classic ASP application:

if(hasrating)
{
    thechkbox = currRating[0].parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.children(2).children(0).children(0)
    thechkbox.disabled = false;
}
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!