Sharepoint PeopleEditor control problem...

Hi All -
I'm using C#.

I have a people editor control on my form. There are two buttons that go with the control, A check name button and a browse button. I'm trying to access the check name button Programmatically but i'm not exactly sure how.
The line below works with a standard button:
btnAdd_Click(btnAdd, new System.EventArgs());

Any suggestions?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I don't completely understand what you are trying to do, but, i think this may help: CheckButton.PerformClick(), if it doesn't, please tell me a little more of what you want to accomplish.
JordanBlacklerAuthor Commented:
Instead of manually clicking the "check name" button i want to be able to write code that will act as if someone was actually clicking the "check name" button.

Does that make any sense?

On Page_Load I populate the people editor textbox with a name, then i want to be able check to see if it is a valid name (using the check name button)
Have you tried the CheckNameButton.PerformClick()? It should work in that case.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

JordanBlacklerAuthor Commented:
Oh alright..
What would come before CheckNameButton.PerformClick();
The name of my people editor is:
The PerformClick() makes the button click, so, if you are handling the event of the button to check the name in the textbox, just fill the textbox before doing the performclick and it should work.
JordanBlacklerAuthor Commented:
This is how i populate it:
strFinancialContactRO = "Smith, Joe";
PickerEntity entity = new PickerEntity();
entity.Key = strFinancialContactRO;
System.Collections.ArrayList entityArrayList = new System.Collections.ArrayList();

Then i guess i would would use PeformClick()

But i'm not sure how to do that, could you use some code in an example?
I don't have the possibility to test it right now, but if I'm not wrong, by accessing the peopleeditor.Controls you can get the button Control, and then, perform the click. Try debugging the project, setting a breakpoint in some part of your code where you acces the peopleditor and check the Controls property to see if there is a Button control inside of it. Hope it helped...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.