473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 1287
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Elhanan | last post by:
hi.. all a client of ours is considering to move from a dos application to windows desktop application. the application is for traveling agency, the database is rather large. their current...
4
by: karpagam | last post by:
Since WebServices are a standardized way to invoke a method of another application over the internet, is there a way to integrate two different applications running on different platforms (Say a...
2
by: Mahesh Kumar.R | last post by:
I'm into designing an application in winforms but in near future my client may request the same thing in webforms. so (1) what are all the design guidelines and ways are there to migrate easily in...
3
by: gregory_may | last post by:
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...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
5
by: brian.wilson4 | last post by:
Our group is currently comparing winforms vs webforms.....app is Corp LAN based - we have control of desktops.....Below is pros and cons list we have come up with - if anything strikes you as...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.