CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2007
    Posts
    23

    how to control other process through vb.net

    hi
    i am creating one application in which i want to set one textbox's text of other application which running in system.
    can anyone tell me from where i should start?
    what do i need to do?
    how it is possible?
    i dont need a code i just want is your guidance.
    pelase do help me
    waiting for your reply....
    thank so

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: how to control other process through vb.net

    Lookup Sendkeys and Findwindow on CG ...

    There are several discutions on this subject.. to get you started have a look at this thread..

    Gremmy..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Dec 2002
    Posts
    305

    Re: how to control other process through vb.net

    One way to set a textbox's text in one application from the content of a textbox (or any other info) from another application is to have the first application look for a specific file with the content provided by the second application. When this file is prepared by the second application, the first can read the file and upload the textbox. Good luck.

  4. #4
    Join Date
    Apr 2008
    Posts
    25

    Re: how to control other process through vb.net

    both of these suggestions can work. And they can be very proffessional if you handle em properly.

    If you are doing the first one, make sure you don't hardcde anything

    if you use the second, i recommend XML files, unless of course you need verrrrryyy simple stuff

  5. #5
    Join Date
    Aug 2007
    Posts
    23

    Re: how to control other process through vb.net

    Quote Originally Posted by Gizmo001
    One way to set a textbox's text in one application from the content of a textbox (or any other info) from another application is to have the first application look for a specific file with the content provided by the second application. When this file is prepared by the second application, the first can read the file and upload the textbox. Good luck.
    hi ,thank you so much for you suggestion.i really appreciate you all.
    but i am still in sea want to came out of it.

    sir as you say to use file between them for communication,but i cannot do that coz i don't have control over second application .i means to say that second application is not created by me it is some other application.(eg,Firefox,yahoo messenger ,any famous application)

    so what else i can do.

  6. #6
    Join Date
    Aug 2007
    Posts
    23

    Re: how to control other process through vb.net

    Quote Originally Posted by GremlinSA
    Lookup Sendkeys and Findwindow on CG ...

    There are several discutions on this subject.. to get you started have a look at this thread..

    Gremmy..
    thanks for your reply.
    ya i think its possible with this article.but it is going too advance there.

    what i understand from that article is
    1)to do anything with other application you need to have handle of that application.

    after this i am stuck.i have Handel of one application .what do i do to get Handel of that button on that application???
    Last edited by bhavin12300; April 12th, 2008 at 06:02 AM.

  7. #7
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: how to control other process through vb.net

    I've looked a little deeper into the search results and found this thread that will help with finding the handles of child controls..

    I know that somewhere on CG there are examples of this, however i cant seem to find them right now..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  8. #8
    Join Date
    Dec 2002
    Posts
    305

    Re: how to control other process through vb.net

    PHP Code:
    sir as you say to use file between them for communication,but i cannot do that coz i don't have control over second application .i means to say that second application is not created by me it is some other application.(eg,Firefox,yahoo messenger ,any famous application)

    so what else i can do. 

    In that case, you have to write an application to access the second application first in which you should be able to fill a textbox of the second application. Once you do that you can achieve what you want. You can do this even if the second application is a third-party web-application. For example, applications exist that can send stock symbols to yahoo-financial and retrieve current prices. Searching web-scraping software should help you in this regard. Good luck.

  9. #9
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: how to control other process through vb.net

    If it's a web browser, you can use any app, or even a webbrowser control, or Internet Transfer Control. You can use parameterized url's to send the same information that you would enter in the textboxes.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured