Results 1 to 5 of 5

Thread: Possible in C#?

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    41

    Possible in C#?

    I was wondering if it is possible to do a program that would use a user's default internet browser and be implemented within the program. Basically IE being runned in a program. Just think it as the program is the border and IE inside the program, and the person can normally search, download, and ect. Is this possible? If it is, can anyone help me on how to actually to do the code? I hope I worded it right. Thanks in advanced!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Possible in C#?

    The .NET WebBrowser control uses the IE engine. If you want to use any browser that the user might choose and embed that within your app then it would take all sorts of funky hacking to achieve if the author didn't specifically intend for it to be possible. So much so that it would be as good as impossible for the vast majority of us. Plus it's likely to be illegal. There is the option of creating your own MDI parent form and then using the SetParent API to make it the parent for any other form that may be displayed, including browser windows. It would still be a bit of work to track multiple windows though.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: Possible in C#?

    Well.. having a web browser inside of the form may be tricky if it isn't internet explorer but there is something you can do. When you click a button, link, or whatever in your form it can open their default web browser. As in, when some people click the button, it will be internet explorer if it is their default browser, but for other it may be opera or firefox, depending on their default browser. Sorry if I didn't help =/

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Possible in C#?

    Not worth the effort.
    I don't live here any more.

  5. #5
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Possible in C#?

    You gotta admit its possible with using SetParent wossy. For example, using SetWindowLong and changing the window style to DLG_FRAME to remove the title bar, then removing it from the Taskbar, then embedding it into the window...

    Would be interesting to see if someone pulled it off

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

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