I tested it by myself and this code is working :
Private Sub MyBase_load(Sender As Object, E As EventArgs) Handles MyBase.load
For Each form In Application.OpenForms
If (form.name = Me.Name) Then
Dim Logo As New PictureBox
Logo.BackgroundImage = My.Resources.Resources.Desert
Logo.Visible = True
Logo.Width = 32
Logo.Height = 32
Logo.Location = New Point(72, 136)
Controls.Add(Logo)
Else
End If
Next
End Sub
The difference I see is the name of the BackgroundImage. In my sample I don't use the Filename-Extension - perhaps you try it like this with your code (substrct the letters "jpg").
But this Logo is displayed ever. I think, you wish to see the Logo only if the Form is active. Therefore the code should have "some" modifications :
At first create the PictureBox called "Logo" as control on your Form.
Then insert this code to your Form (instead of the code seen above) :
Protected Overrides Sub OnActivated(e As System.EventArgs)
Logo.Visible = True
MyBase.OnActivated(e)
End Sub
Protected Overrides Sub OnDeactivate(e As System.EventArgs)
Logo.Visible = False
MyBase.OnDeactivate(e)
End Sub