Thread: program to open IE

  1. #1
    Registered User
    Join Date
    Nov 2006

    program to open IE


    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:

    second would be:

    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
    between photons and phonons
    Check the Process class.

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

    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

    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.

    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
    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, 02:46 PM
  2. File Types Automatically Open With My Program
    By ElWhapo in forum Windows Programming
    Replies: 3
    Last Post: 12-29-2004, 05: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, 11:37 PM
  4. drawing over the open program.
    By Unregistered in forum Windows Programming
    Replies: 6
    Last Post: 01-23-2002, 03:37 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM