CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1

    openning a url from within a dialog box

    How do i open a url and display the html page (parsed... not code) in a dialog box?

    -Discreet (Aaron Moore)

  2. #2
    Join Date
    Dec 1999
    Location
    Israel
    Posts
    2,851

    Re: openning a url from within a dialog box

    Use the Microsoft Web Browser ActiveX control. Right click on the dialog in the resource editor and choose Insert Active X control. Associate a member variable with the ActiveX control, and use it's methods.

    Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at http://msdn.microsoft.com
    ---===---
    I'm not here for the rates, but rating a post is a good way for me to know how much i helped.
    ---===---
    Daniel

  3. #3

    Re: openning a url from within a dialog box

    I don't see an option to insert active x? under the resource tab right?

    -Discreet (Aaron Moore)

  4. #4

    Re: openning a url from within a dialog box

    Basically waht i'm trying to do is
    1) have a part of the window show a certain url.
    2) then I want to create another part of the program so the user can select a file (though the program) and and upload to a server. NOT ftp. I have a perl/php script that can upload a file, i just want to create an application inteface instead of the web.

    -Discreet (Aaron Moore)

  5. #5
    Join Date
    Dec 1999
    Location
    Israel
    Posts
    2,851

    Re: openning a url from within a dialog box

    Sorry, I was a bit unclear, in the dialog editor, after you double cclick on the dialog in the resource tab.

    Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at http://msdn.microsoft.com
    ---===---
    I'm not here for the rates, but rating a post is a good way for me to know how much i helped.
    ---===---
    Daniel

  6. #6

    Re: openning a url from within a dialog box

    how do i set the url... and how to i get access to it code wise?

    -Discreet (Aaron Moore)

  7. #7
    Join Date
    Jul 1999
    Posts
    92

    Re: openning a url from within a dialog box

    Once you add the browser control variable m_browser, you can call m_browser.Navigate(...)
    For detail browser control functions, please check MSDN.
    If you need a diaglog with browser control sample, please let me know (and your email address).

    William


  8. #8
    Join Date
    Apr 2001
    Location
    Karachi, Pakistan.
    Posts
    466

    Re: openning a url from within a dialog box

    i guess this is wat you need?


    ShellExecute(NULL, _T("open"), "C:\\MyPage.htm", NULL, _T("C:\\"), SW_SHOW);




    helped?

    bestRegards,
    -jusstujoo!

    Keep it as simple as possible, but no simpler

    --Albert Einstein
    KMan
    use code-tags
    Rating a post is'nt injurious(0:


    http://izlooite.blogspot.com

  9. #9

    Re: openning a url from within a dialog box

    i'm slowly understanding i guess i'd appreciate the sample, my email is Discreet@vi2.com

    thankyou

    -Discreet (Aaron Moore)

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