Setting the image as background for the form in widows form application
Posted By: Asha.MP Posted Date: November 25, 2010
Points:2 Category :ASP.Net
I want to set an image as the background image for the form,
If i write the code in the page load, it is not working but if i write same thing in the button click event it will work.
What is the reason for this???
the code writen is
Dim b As Bitmap = New Bitmap("C:\Documents and Settings\scii062.DEVELOPMENT1\My Documents\My Pictures\h.jpeg")
Dim g As Graphics = Me.CreateGraphics
g.DrawImage(b, 1, 1, Me.Width, Me.Height)
You must Sign In To post reply