|
-
Nov 27th, 2000, 07:07 PM
#1
Thread Starter
Lively Member
is there anyway to skip a certin part of code with the If Then And Else Statement. i need to skip the following part of code
Dim f As Form, c As Control
' Get Form Object from Collection of Forms
For Each f In Forms
' Change Backcolor as form to a Random Color
f.BackColor = picBackcolor.BackColor
' Will loop through every kind of control currently on form
For Each c In f.Controls
' Determine is current control is a Label
If TypeOf c Is Label Then
'Change BackColor property to a Random Color
c.ForeColor = picFontcolor.BackColor
End If
Next c
Next f
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|