the static method fromFile of the .NET system.drawing.image class is used to get the Image from the filename.
The script will set the Image as background of the Form and it will size the form to the Size of the picture, if you pull it wider the picture gets tiled.
Also I Implemented a new trick to fix the focus problem, if you do not set the TopMost property of the Form to $true the form shows "hidden" behind the other forms. I did this in all the form examples for this reason.
Grzegorz Niemirowski, pointed me to a way to set this back again after the form is loaded, by using Add_shown in the NG Bringing form to front
(Oops, only when I did look up the link, I see he did the same thing allready , using a Picturebox.)
hmmm,
Strange I had to pick this as an example, without thinking about it, but I will post anyway, for the work and the picture of my niece ;-)
October 2005 November 2005 December 2005 January 2006 February 2006 March 2006 April 2006 May 2006 June 2006 July 2006 August 2006 September 2006 October 2006 November 2006 December 2006