[RESOLVED] object doesnt support this property or method
I am currently getting an error on the highlighted line and cannot figure out why. Please advise.
The error is:
Quote:
object doesnt support this property or method
form code:
VB Code:
Private Sub Form_Load()
PageColorScheme Me
End Sub
module code:
VB Code:
Option Explicit
Public Sub PageColorScheme(frm As Form)
Dim strBC As String, strFC As String
Dim ctrl As Control
With frm
'background color, dark blue
strBC = RGB(104, 127, 217)
'foreground color, light blue
strFC = RGB(214, 223, 247)
'form background color
.BackColor = strBC
'control forecolors
For Each ctrl In .Controls
If TypeOf ctrl Is Shape Then
[hl].BorderColor = strFC[/hl]
End If
Next
End With
End Sub
Re: object doesnt support this property or method
Try that should fix the problum
ctrl.BorderColor = strFC
Re: object doesnt support this property or method
Quote:
Originally Posted by dreamvb
Try that should fix the problum
ctrl.BorderColor = strFC
yep, that fixed it. thanks dreamvb