PDA

Click to See Complete Forum and Search --> : property page error


gEielts
Aug 16th, 2003, 09:09 AM
Hi all,

Here is the problem.
I have made an Usercontrol and linked it to a Property Page.
When I draw the usercontrol on a form and click on Custom
(in Property window) I got an error 438 "Object doesnot support property or method" ???

Here is the code:

Private Sub PropertyPage_SelectionChanged()
txtCaption.Text = SelectedControls(0).Name '''' here is the error
txtBCaption.Text = SelectedControls(0).txtCharSet

cmbOPeration.Clear
With cmbOPeration
.AddItem "0 - All characters"
.AddItem "1 - Figures"
.AddItem "2 - Characters"
.ListIndex = SelectedControls(0).CharAccept
End With
Changed = False

End Sub



Believe me: Name is surely a property of the selected control....

Can anyone explain ??

Greetings, Ger.

gEielts
Aug 17th, 2003, 12:54 PM
Nobody ??????