473,666 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need help making a web browser on vb6

20 New Member
i wont to make so the enter key can submit the url, like on firefox and IE , when i press enter it takes me to website i typed in instead of pressing the button , i had a few guesses but i'm new to vb and got it wrongh

any help would be great

If keyascii = Keys.enter Then WebBrowser1.Nav igate(ComboBox1 .Text)
End if

thanks
Feb 19 '08 #1
4 1226
debasisdas
8,127 Recognized Expert Expert
Make the button default button and set the keypreview of the form to TRUE.
Feb 19 '08 #2
ooroboo
20 New Member
still not working , but ty i probably didn't understand as i should of.

can anyone give me a code? then i might be able to work round other problems
Feb 19 '08 #3
jamesd0142
469 Contributor
Also in VB 2005, although there must be simular options in VB 6...

I did this on the textbox keypress event...

Expand|Select|Wrap|Line Numbers
  1. if asc(e.keychar) = "13" then
  2. btnGO.performclick
  3. end if
  4.  
Feb 19 '08 #4
gobblegob
133 New Member
in VB 6...

Expand|Select|Wrap|Line Numbers
  1. Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
  2.  If KeyCode = vbKeyReturn Then
  3.     WebBrowser1.Navigate Combo1.Text
  4.  End If
  5. End Sub
This will do the trick

<<<Gobble>>>
Feb 19 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
4802
by: Derek | last post by:
Hi, I've built a rather large CGI that dumps a lot of data and a fairly complex javascript app out to the client's browser. Granted this may be poor style according to someone web design philosophy but that is the way things need to work for now here. The problem I'm having is that it appears that the browsers (IE, mozilla and netscape) are sometimes getting confused about wether the javascript code is running. By this I mean when I...
8
2018
by: George Hester | last post by:
In a page I have when the user left-clicks the page a Input box for a form gets the focus. But if the user right-clicks the page the Input box is not getting the focus. I'd like the Input box to get the focus no matter where on the page the user clicks be it right-click or left-click. Right now there is no context menu when the user right-clicks. Do you think that's the problem? Any ideas how to get this right-click left-click Input box...
3
1119
by: Concorde7224 | last post by:
Hi, I am using Microsot Web Browser control in a VC++ (.net) desktop application (Windows forms application). How do I make this control transparent so that if I have any other control like Textbox under the Browser control, it is made visible (after making the browser transparent). -TIA-
2
1949
by: lucifer | last post by:
hi i am making an http server it has following functions main() { if option is "-?", output the hints and stop check the directory supplied is sensible and not a security risk become a daemon process ignore child programs (to avoid zombies when child processes stop)
36
3023
by: sonnystarks | last post by:
I am trying to learn HTML and have obtained several books on the subject. However, I am confused with the proper way of going about it as most of these books give me the basic tags and then say they will soon be deprecated and advise using CSS stylesheets. Which comes first? Do I learn the old tags and then "upgrade" to CSS or just bypass the old tags and learn only the CSS procedures. Doesn't one have to understand the old tags to use...
0
1044
jautrus
by: jautrus | last post by:
Hi, i have one big headache... I need to display a DIV (400px by 300px) in EXACT center (vertical and horizontal) of the browser window in response of some events. It’s not very hard to do this by making the DIV position absolute and calculating and setting its left and top values. Problem arises when user scrolls the page and then DIV is displayed. Now DIV does not account for the scroll. What I need is a solution to EXACTLY center...
10
4791
by: brooksr | last post by:
I know VB5/VBA very well but have not used VB to create web pages but need to do so. Can someone explain the purposes and differences between VBScript and VB.NET to create web pages? Also where do Visual Web Developer Express Edition and Microsoft Frontpage fit into the picture? It seems there are a bewildering array of choices in creating websites
7
2116
by: Kesavan | last post by:
Is there any way to run a function or a code-block whenever the client- server communication breaks off. (ie power-off, browser-crash...) Why I need this is, I want to update a login-table to trace user's leave the portal without proper log-off or sign-out. Every time a user at proper sign-in, a flag is set & account is locked until he sign-out by updating in the login-table.At sign-out the flag is released & his account is ready to...
1
3133
by: Shashank | last post by:
Hi all, I am a new member of this community. I am making a http request to a html file placed on a Apache server. On this page there is an embeded perl statement which requires reading environment variables from the server. When I am typing the url of the html page in my browser, I am able to read the Environment variables from the server and getting the desired results. But, when I am making Http request through my window application,...
3
1292
by: shror | last post by:
Hi every body, I need your help please with a small problem with a .swf file header I know that the .swf files are defined in size while we build them and so when we put .swf file in any web page we have to set the size but I have noticed that the .swf files if we opened them directly in our browser are stretched to the size of the browser so is there any way to do this by making the swf file get bigger or smaller according to the size...
0
8869
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.