Load background image dynamically

  • Thread starter Thread starter Tor Inge Rislaa
  • Start date Start date
T

Tor Inge Rislaa

Hi I have a form as I want to change background image when the form is
loaded, based on some criteria. The question is how do I (at runtime) load a
new background image into the form.



TIRislaa
 
If True Then ' My Condition

Me.BackgroundImage = New Bitmap("..\shot.bmp")

End If


--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 
Tor Inge Rislaa said:
Hi I have a form as I want to change background
image when the form is loaded, based on some
criteria. The question is how do I (at runtime) load a
new background image into the form.

\\\
Me.BackgroundImage = Image.FromFile("C:\foo.bmp")
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top