Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Non-web scraping?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
William Sullivan - 06 Mar 2006 23:48 GMT
I need to scrape text off of a form.  I can find tons of info on web page
scraping, but barely anything about scraping off of winforms.  Is there a
tutorial out there about scraping forms via the windows API?
Gabriel Magaña - 07 Mar 2006 00:02 GMT
Hopefully you get an answer from someone that knows this better, but in
essence you have to fund the handle of the main window, then get the list of
child controls, then look at each one, make sure it has the info you want,
and get the info.  The devil is in the details of course, specially since
this is all C-based code, you probably would be better off writing a C/C++
routine in a dll to do this and then calling your routine from C#, rather
than making all those calls with C#, you will spend a lot of time worrying
whether or not you are calling the API correctly in addition to what you are
trying to accomplish.

>I need to scrape text off of a form.  I can find tons of info on web page
> scraping, but barely anything about scraping off of winforms.  Is there a
> tutorial out there about scraping forms via the windows API?
William Sullivan - 07 Mar 2006 00:53 GMT
Thanks for the reply.  I know I'll be p/invoking my a.s off; I'm hoping to
get some details on the functions I'll need to call...

> Hopefully you get an answer from someone that knows this better, but in
> essence you have to fund the handle of the main window, then get the list of
[quoted text clipped - 9 lines]
> > scraping, but barely anything about scraping off of winforms.  Is there a
> > tutorial out there about scraping forms via the windows API?
Christian Schwendtner - 07 Mar 2006 15:53 GMT
Hi William:

Have a look at:

http://nunitforms.sourceforge.net/docs.html

Its for testing winforms, but probably you can use parts of it.

hth,
 Chris
Christian Schwendtner - 07 Mar 2006 15:59 GMT
I think its only for accessing (testing) "owned" forms ...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.