Solved

Points for KeefeJohnson!

Posted on 2004-03-22
4
160 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Use closed file on desktop in vba 6 67
Opening Remote & Local Data Connection 2 52
String manipulation in Visual Basic 7 60
using web browser with BING 40 111
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now