using System.Windows.Forms; namespace myprojectnamespace { class myClass { public void myMethod(TextBox mytex, RichTextBox searchStr) { // ..Codes Here } } Copied successfully!