| Make a picturebox as toolbar, name it picBackdrop. make a new, invinsible, picturebox with the name of picStretched. make another new, invinsible picturebox with the name of picOriginal. Copy the background picture to this last picturebox. Private Sub MDIForm_Activate() MDIForm_Resize End Sub ' Make the image fit the MDI form. Private Sub MDIForm_Resize() picStretched.Move 0, 0, _ ScaleWidth, ScaleHeight ' Copy the original picture into picStretched. picStretched.PaintPicture _ picOriginal.Picture, _ 0, 0, _ picStretched.ScaleWidth, _ picStretched.ScaleHeight, _ 0, 0, _ picOriginal.ScaleWidth, _ picOriginal.ScaleHeight ' Set the MDI form's picture. Picture = picStretched.Image End Sub |
MDI background picture |
Express News India | Freelance ecommerce web development India