Hi, I'm using this code to fade the BackColor of my form:
Now, this code works as I want it to, but its incredibly unstable. I'm using Win2K and VB6(No SP), and this little application crashes all the time. Does anybody see if I've done anything that I shouldn't have? Or maybe somebody can recommend a better way to do this.Code:'Declares variables for the fader Dim Red As Integer Dim Green As Integer Dim Blue As Integer Dim i As Integer 'Colors to fade to/from For Red% = 0 To 12 Step 1 For Green% = 0 To 0 For Blue% = 0 To 246 Step 1 'how to fade Form1.BackColor = RGB(Red%, Green%, Blue%) For i = 1 To 31999 tmrFader.Enabled = False Next Next Next Next




Reply With Quote