I need to get all of the richtextboxes on my form:

VB Code:
  1. Dim rText As RichTextBox
  2. For Each rText In frmNew.Controls
  3.    
  4. Next rText

doesn't works, gives an "type mismatch" error

VB Code:
  1. Dim rText As Control
  2. For Each rText In frmNew.Controls
  3.    
  4. Next rText

does work, but then i get all of my controls

how do i get only my richtextboxes?

thanks