Dim p As WinForm.Panel = e.Form.Controls("panel1") Dim icon As Icon = System.Drawing.Icon.ExtractAssociatedIcon(ApplicationPath & "foxtable.exe") p.BaseControl.BackgroundImage = icon.ToBitmap() p.BaseControl.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch