Results 1 to 5 of 5

Thread: Problem using webbrowser control with .net!

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Location
    Derby, UK
    Posts
    4

    Question Problem using webbrowser control with .net!

    Hi,

    I have just upgraded to .NET and very confused

    I am trying to port some code I wrote in VB6 and it works just fine. However trying to do the same in .NET is causing me grief!

    I am using the webbrowser control to display local HTML pages, however I wish to suppress right clicks, to stop the context menu being displayed (and no I don’t want to use JAVASCRIPT as there is other reasons for this).

    In VB6 my code work a treat, however trying to do the same in .NET it don’t work right. The basic problem is I cannot click on any button, control or link!

    I have attached sample code for VB6 version and .NET version.

    I am using .NET 2003

    Any help of where I am going wrong would be very grateful
    Attached Files Attached Files

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Without look at your code (sry no time), I imagine you have followed the C# code project example...

    http://www.codeproject.com/csharp/webbrowser.asp

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Location
    Derby, UK
    Posts
    4
    No - I have not (not a C# programmer (yet!)), however I will have a look.

    There are only a few lines in each example to demonstrate my problem!

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Location
    Derby, UK
    Posts
    4
    Just a little bump....

    Can any one give me clue why this does not work under .NET? (please try examples - very little code in each, just to demo problem)

    I created an .OCX under VB6 and using it in .NET works fine, however I would like to use .NET with as few external COM's as possible!

    Thanks in advance.

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Location
    Derby, UK
    Posts
    4

    Thumbs down

    Well I have given up on anyone helping.

    I have completed my OCX wrapper and works fine.

    Thanks anyway

    Ps how do I close this thread?

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