Reminds me of "ListBox sort" story I heard once; it was about a programmer who, wanting to sort strings and not knowing how to do this, put strings into a hidden ListBox GUI control and then read them back in sorted order.
When I was, like, 10, I wanted to find the distance between two points in a Visual Basic program but didn't know how, so I created a Line control between the points and tried to read back the Width. (It didn't work, since Width was just the thickness of the line.)