1

I'm writing a C# application which pulls a string of text from a MySql database, opens a form contained within a Microsoft Access database and populates a textbox on the form with this string.

The first two parts I'm fine with, I can pull the string from the MySql database and open the Access database, but I am struggling to get a handle on the textbox.

How do I, after pressing a button on a C# Windows Form application, populate a textbox on a Microsoft Access Form with a string contained within the C# application.

Thanks

JMK
  • 27,273
  • 52
  • 163
  • 280

1 Answers1

1

I would first of all check with Spy++ to verify that the textBox you see in the Access form is a normal and reachable one... you never know with access ;-)

after that, you can follow one of the trillions questions here in SO about how to get/reach external applications's textboxes, for example here:

Insert text into the textbox of another application

FindWindowEx - Select textbox if there are several textboxes with same classname

Community
  • 1
  • 1
Davide Piras
  • 43,984
  • 10
  • 98
  • 147