If the form is already painted will it not repaint it? I know this is not TRUE skinning, but it suits my program. I want this to change the main forms background when a user selects it from the dropdown list so they can have a preview before saving the setting. Here's my code. Do I have to erase the form or something of the sort first?VB Code:
Private Sub comboSkin_Click() Kamo2.Picture1.Picture = Kamo2.ImageList1.ListImages(liboptions.comboSkin.ListIndex).Picture ScaleMode = 3 Kamo2.Picture1.AutoRedraw = True Kamo2.AutoRedraw = True For X = 0 To Width Step Kamo2.Picture1.Width For Y = 0 To Height Step Kamo2.Picture1.Height DoEvents BitBlt hDC, X, Y, Kamo2.Picture1.ScaleWidth, Kamo2.Picture1.ScaleHeight, Kamo2.Picture1.hDC, 0, 0, vbSrcCopy Next Y Next X ScaleMode = 1 End Sub
