Solved

Points for KeefeJohnson!

Posted on 2004-03-22
4
165 Views
Last Modified: 2010-05-01
Hi KeefeJohnson...this is for your help

( http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20916940.html )

Please accept!

Krupa
0
Comment
Question by:shankarkrupa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
KeefeJohnson earned 125 total points
ID: 10650247
After figuring out that solution, I started using it in my own program, and it works very well for me too.

Thanks!
0
 
LVL 3

Author Comment

by:shankarkrupa
ID: 10650772
Really?  Great!

I am trying to do it without loading any files, because the user may involuntarily press Refresh key inside the control or may type something and press the refresh key and lose the data.  Involves lots of concatenation...:-))

Thanks anyway, I am working on it.



krupa
0
 
LVL 2

Expert Comment

by:KeefeJohnson
ID: 10663800
About losing the data in the textbox... Your program could keep track of what is in the textbox so when the DocumentComplete event happens, you can put it back.

And some more information that I found out from working on my program:
If you don't want the user to be able to drop a link on the webbrowser control to change pages, set the RegisterAsDropTarget property to False.
If you don't want the menu to popup when you right click in the control, use this code: <BODY oncontextmenu="window.event.returnValue = false">
You can also use the BeforeNavigate2 event to cancel a navigate (clicking on a link), but you'll have to allow the first navigate (loading the page with the textbox)
0
 
LVL 3

Author Comment

by:shankarkrupa
ID: 10694327
Wow...Keefe...this is really cool!

Good to hear this.  This solves the main problem too, disabling the user intervention (other than typing in the textbox) on the browser control.

Thank you so much!

I feel good to have met you. :-)

Krupa
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question