program to open IE

This is a discussion on program to open IE within the C# Programming forums, part of the General Programming Boards category; Hi, im new to programming. I was just wondering if anyone can help me code a simple program that opens ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    2

    program to open IE

    Hi,

    im new to programming. I was just wondering if anyone can help me code a simple program that opens up a few instances of internet explorer when i type a certain symbol (of a stock) in to a text box

    For example, if the symbol of a stock is 'msft' , i want to be able to type that into a text box, press a button, and 5-6 different sites would open up.

    one site would be: http://stockcharts.com/h-sc/ui?s=msft

    second would be:http://www.stockhouse.com/comp_info....SFT&table=LIST

    and so on.

    Since each site has a reference to the symbol that was entered in the text box, i guess all i have to do is create a variable that stores the name of the symbol, then inserts it into wherever the variable is called?

    oh and I have access to visual studio 2005.


    Thanks in advance for any help

    PS: can anyone recommend any good books to learn C#?
    This is not hw help btw

  2. #2
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    Check the Process class.

    Quote Originally Posted by VS 2005 object browser
    public class Process : System.ComponentModel.Component
    Member of System.Diagnostics

    Summary:
    Provides access to local and remote processes and enables you to start and stop local system processes.
    ---------------

    public static System.Diagnostics.Process Start(string fileName, string arguments)
    Member of System.Diagnostics.Process

    Summary:
    Starts a process resource by specifying the name of an application and a set of command-line arguments, and associates the resource with a new System.Diagnostics.Process component.

    Parameters:
    fileName: The name of an application file to run in the process.
    arguments: Command-line arguments to pass when starting the process.
    That should get you on track.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    2
    thanks, got it to work yesterday. i'll post the code later today

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  2. File Types Automatically Open With My Program
    By ElWhapo in forum Windows Programming
    Replies: 3
    Last Post: 12-29-2004, 04:39 PM
  3. how to make certain file types open IN your program
    By DarkViper in forum Windows Programming
    Replies: 4
    Last Post: 02-06-2003, 10:37 PM
  4. drawing over the open program.
    By Unregistered in forum Windows Programming
    Replies: 6
    Last Post: 01-23-2002, 02:37 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21