How to get the handle of rich text field in the form which is shown in Dialog Box

I have a rich text field in the form. I am showing the form in the dialog box, and on clicking ‘OK’, I should send the mail including the files attached in this rich text field.

Subject: .

I have a rich text field in the form. >I am showing the form in the dialog box,

and on clicking ‘OK’, I should send the

mail including the files attached in

this rich text field.

I think you may mean “document”, not “form”? Am I correct? Let’s use correct terminology here.

How are you creating the dialog box? One way would be to use the PickListCollection method of the NotesUIWorkspace class, that is what I would do.

That method returns a NotesDocumentCollection object that you can process and use to send email.

To get the rich text field, use the GetFirstItem method of the NotesDocument class, you have good examples in the online help on how to work with NotesRichTextItem objects.