473,508 Members | 2,088 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.Navigate(ComboBox1.Text)
End if

thanks
Feb 19 '08 #1
4 1220
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
4793
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...
8
2002
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...
3
1116
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...
2
1895
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...
36
2999
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...
0
1039
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...
10
4546
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...
7
2106
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...
1
3120
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 ...
3
1286
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...
0
7226
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7328
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,...
0
7388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7499
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...
0
5631
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,...
1
5055
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...
0
1561
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 ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.