Thanks for the reply. The code worked, now ihave created a button for email and i want to send the text which is in a textbox iam using " Me.mapiSession.SignOn() " for sending but i have missed some thing its not working. Can u help please. iam using .NET 2005 for this code.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...