Access automation in C#: Click a button on a form

D

Dan

I understand that

oCtl = (Access.Control)oForm.Controls["purposeTextBox"];
Parameters[0] = 2; //second option in option group
oCtl.GetType().InvokeMember("Value",
BindingFlags.SetProperty,
null, oCtl, Parameters);
will fill in a textbox with the number 2.

But the form has a button to submit the value. How do I automate clicking
the button?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top