473,729 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1299
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_ma y" <None> wrote in message
news:Oa******** ******@TK2MSFTN GP10.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.DataBi ndings.Add("Tex t", ds, "TableName.Colu mnName");
, 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.goo glegroups.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.DataBi ndings.Add("Tex t", ds, "TableName.Colu mnName");
, 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_ma y" <None> wrote in message
news:Oa******** ******@TK2MSFTN GP10.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
3734
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 database for other application is SQL-SERVER. they have 12 users.
4
5038
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 .NET client application, used for implementing the presentation logic, and a mainframe application that contains the business logic). Is there a way to call the .NET web service from the mainframe application / expose the buiness logic in the...
2
2085
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 future (winforms -> weforms)...? (2) how can i design my application which can be accessed in both winforms and webforms by not writing much of code for the same business logic. ? (3) which is the cost effective method ? Please guide me to...
3
983
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 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!
5
4088
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 both projects. Both controls(dlls) have been signed using SN.exe and I've set up the appropriate .Net assembly permissions using those Strong Names The DLL's have been copied to the /bin directory in both web virtual directories.
1
8557
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 Me.ReportViewer1.ServerReport.ReportPath = "/myproject/DemandeDeCotation" Me.ReportViewer1.ServerReport.ReportServerUrl = New System.Uri("http://myserver/reportserver2005", System.UriKind.Absolute)
4
3937
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 someone who is not on my team. The VB 6.0 application is used by approximately 100 users. All users reside in-house. There is an existing external website that will use some of the same components but the two applications are separate. The...
5
3826
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 untrue or you would like to add - please comment - thanks..... Rich Client PROS 1. User experience (* indicates feasible on web with AJAX) - a. Single, unified application experience b. Windows/Office-like look and feel - i.Tabs - drag and drop...
23
4548
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 memorize and/ or familiarize myself in WinForms will disappear in WPF? I did note in one early version of C#, the non-generic "ArrayList" was replaced by the generic and template <based List, but that kind of change is not a big deal. If WPF...
0
8911
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8760
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9280
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6015
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2673
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2162
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.