Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > Diable Keys In Webbrowser


Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2005, 05:44 PM
shadowmaker shadowmaker is offline
Regular
 
Join Date: Aug 2004
Location: georgia
Posts: 61
Default Diable Keys In Webbrowser


is there a way to stop the user from typing in a webbrowser that IS visible, and enabled and has focus? the reason i am asking is because it doesn't have an _onkeysup or anything, and i am sending keys to the webbrowser and need it to navigate but not let the user press keys and messup the strings being sent to the browser.
Reply With Quote
  #2  
Old 05-16-2005, 05:48 PM
loquin's Avatar
loquin loquin is offline
Google Hound

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,386
Default

What would be the purpose of disallowing user input to the browser controls?
__________________
Lou
"I have my standards. They may be low, but I have them!" ~ Bette Middler
"It's a book about a Spanish guy called Manual. You should read it." ~ Dilbert
"To understand recursion, you must first understand recursion." ~ unknown
Reply With Quote
  #3  
Old 05-16-2005, 07:16 PM
shadowmaker shadowmaker is offline
Regular
 
Join Date: Aug 2004
Location: georgia
Posts: 61
Default

the browser is completely automated, it is for uploading files (through a filebox form) to a server. While i can do this with send keys, if the user is typing while its sending those keys, the keys they type will be placed with it...for instance if the webbrowser is sending C:\test.jpg and they are typing it could be sending c:\testheymanwhatsup?.jpg and of course that file doesn't exist

i have tried disableing the webbrowser (doesn't navigate then) as well as disabling the form the browser is in. both to no avail. thanks for any clues or help

Last edited by loquin; 05-17-2005 at 02:29 AM.
Reply With Quote
  #4  
Old 05-17-2005, 02:31 AM
loquin's Avatar
loquin loquin is offline
Google Hound

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,386
Default

Instead of trying to automate the browser, take a look at using the INET control. It looks like it would be right up your alley.
__________________
Lou
"I have my standards. They may be low, but I have them!" ~ Bette Middler
"It's a book about a Spanish guy called Manual. You should read it." ~ Dilbert
"To understand recursion, you must first understand recursion." ~ unknown
Reply With Quote
  #5  
Old 05-17-2005, 01:29 PM
shadowmaker shadowmaker is offline
Regular
 
Join Date: Aug 2004
Location: georgia
Posts: 61
Default

the problem i have run into when using the inet control is after i login to the site it does a cookie is their anyway to use that cookie and still use inet to post the data to the server and it read the cookie? (i'm trying to bind the file to my account) and when i used the inet control it didn't read any of the info in said cookie.

thanks again for the help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->