471,354 Members | 1,284 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Integrating to a winforms application with No Api?

I have a regular windows forms application that I need to automatically fill
in some information into..... But the manufacture has no published API's or
web services. Everything must be via their GUI.

Is there some technique that would allow a .Net program to fill in any
winforms text box with some information (from my own database pull)?

Thanks!

(I posted this on the Vb.Net form, but just realized the same technique
could be adapted from c# as well).
Dec 16 '05 #1
4 1234
It is a bit of a pain to write but you could use the
WinAPI to send keystrokes. Look up SendKeys
on google

These api functions on calling mouse clicks may
also come in handy or at least give you a good
searching point.

http://www.eggheadcafe.com/articles/...to_desktop.asp

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.eggheadcafe.com/forums/merit.asp

"gregory_may" <None> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
I have a regular windows forms application that I need to automatically
fill
in some information into..... But the manufacture has no published API's
or
web services. Everything must be via their GUI.

Is there some technique that would allow a .Net program to fill in any
winforms text box with some information (from my own database pull)?

Thanks!

(I posted this on the Vb.Net form, but just realized the same technique
could be adapted from c# as well).

Dec 17 '05 #2
It seems that you want to bind the textbox control to the column in the
database table.
In case of this, you can use the following method:
textBox1.DataBindings.Add("Text", ds, "TableName.ColumnName");
, where ds is the DataSet object pointing the target database.

The method used in the VB.NET and the C# will be more or less the same
because they are using the same API. The only difference that I beleive
is the syntax.

By the way, what is the reason using the WinAPI to send keystroke to
the program? It seems to be some kind of event handling technique for
receiving the latest information. If so, I believe that it is a very
good method.

Hope this help.

Best regards,
Frankie Leung.

Dec 17 '05 #3
I believe the poster wants to populate information in another
executable that isn't his...

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.eggheadcafe.com/forums/merit.asp

"Frankie Leung" <Fr*************@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
It seems that you want to bind the textbox control to the column in the
database table.
In case of this, you can use the following method:
textBox1.DataBindings.Add("Text", ds, "TableName.ColumnName");
, where ds is the DataSet object pointing the target database.

The method used in the VB.NET and the C# will be more or less the same
because they are using the same API. The only difference that I beleive
is the syntax.

By the way, what is the reason using the WinAPI to send keystroke to
the program? It seems to be some kind of event handling technique for
receiving the latest information. If so, I believe that it is a very
good method.

Hope this help.

Best regards,
Frankie Leung.

Dec 17 '05 #4
I posted a new thread: Software Driving Software in .Net (Windows
Accessibility?)

I found this ... I think its the right track:

http://msdn.microsoft.com/msdnmag/is...s/default.aspx
"gregory_may" <None> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
I have a regular windows forms application that I need to automatically
fill
in some information into..... But the manufacture has no published API's
or
web services. Everything must be via their GUI.

Is there some technique that would allow a .Net program to fill in any
winforms text box with some information (from my own database pull)?

Thanks!

(I posted this on the Vb.Net form, but just realized the same technique
could be adapted from c# as well).

Dec 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mahesh Kumar.R | last post: by
3 posts views Thread by gregory_may | last post: by
5 posts views Thread by Segfahlt | last post: by
4 posts views Thread by 3Cooks | last post: by
5 posts views Thread by brian.wilson4 | last post: by
23 posts views Thread by raylopez99 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.