I need to get all of the richtextboxes on my form:
VB Code:
Dim rText As RichTextBox For Each rText In frmNew.Controls Next rText
doesn't works, gives an "type mismatch" error
VB Code:
Dim rText As Control For Each rText In frmNew.Controls Next rText
does work, but then i get all of my controls
how do i get only my richtextboxes?
thanks




Reply With Quote