sethindeed Posted February 23, 2003 Posted February 23, 2003 I know there is a way to do so, but the example shown in Windows forms FAQs is not effective. Maybe I got it all wrong...anyone ?!? thx Quote What I don't know keeps me excited...
*Gurus* divil Posted February 23, 2003 *Gurus* Posted February 23, 2003 Try this. Obviously, change the path to whatever bitmap you want to load and display. Private backgroundBitmap As Bitmap Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim c As Control backgroundBitmap = New Bitmap("c:\windows\coffee bean.bmp") For Each c In Controls If TypeOf c Is MdiClient Then AddHandler c.Paint, AddressOf PaintMyImage Exit For End If Next End Sub Private Sub PaintMyImage(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) e.Graphics.DrawImage(backgroundBitmap, 0, 0) End Sub Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
sethindeed Posted February 23, 2003 Author Posted February 23, 2003 Real simple way : In the MDIForm_Load event : Me.Dock = DockStyle.Fill Me.Backgroundimage =Me.backgroundimage.FromFile ("C:\myuglyface.jpg") ;) Quote What I don't know keeps me excited...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.