473,378 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Build a web browser in VB6 without using Enter key

20
i am making a web browser and wont to be able to use The Enter key to affectively press go, if possible tell me the code or tell me where to start and what command to use ( i am using visual basic 6 )
Feb 18 '08 #1
6 2031
gobblegob
133 100+
add an Combobox ( this will be the address bar ) and name it CboUrl
add a WebBrowser control and call it wWeb
add a Command button called CmdGo
then copy this code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub CmdGo_Click()
  2.     wWeb.Navigate CboUrl.Text
  3. End Sub
Gobble.
Feb 19 '08 #2
jamesd0142
469 256MB
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 #3
ooroboo
20
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.  
i tried using both codes and none seemed to work for me thanks for trying , not sure if i understood fully
Feb 19 '08 #4
jamesd0142
469 256MB
i tried using both codes and none seemed to work for me thanks for trying , not sure if i understood fully
This code basically checks the asci code of every key thats pressed when the textbox is being used.

if the enter key is pressed the code executes.

You understand that you need to double click the textbox and change from text changed event to keypress event ... right?
Feb 19 '08 #5
ooroboo
20
i tried using both codes and none seemed to work for me thanks for trying , not sure if i understood fully
ahh don't worry , i retyped some of the code made a few minor changes and it works thank you

i understand the process more and on adding more keys that preform tasks

and yes i did forget to change to key press :P only started vb today
Feb 19 '08 #6
gobblegob
133 100+
ahh don't worry , i retyped some of the code made a few minor changes and it works thank you

i understand the process more and on adding more keys that preform tasks

and yes i did forget to change to key press :P only started vb today

Your welcome hope your having fun
<<<Gobble>>>
Feb 19 '08 #7

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

Similar topics

0
by: Rob Young | last post by:
This is the latest in the "Total Non-Programmer" series. Any feedback on the usability of this tutorial would be greatly appreciated. Thanks, Rob How to Build A Web Database (Without...
3
by: Kevin Matthews | last post by:
i'm having strange problems with browser compatibility between firefox and internet explorer, ---------------------------------------- The following is the CSS:...
5
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there...
11
by: ajikoe | last post by:
Hello, I used Visual C# Standard Edition. I want to comment my program using xml commentary method, I don't know why if I use value and example tag, it is not working / showed in the html...
3
by: Jerry Boone | last post by:
I have a development unit running XP Pro and I cannot get it to build a web project without restarting IIS. There errors in the task list are.... ! Could not copy temporary files to the output...
2
by: Joe Shum | last post by:
Hi All: I am pretty new at ASP.NET development. Currently I need to build a Web Server app using C# and ASP.NET to automatically and repeatly refresh data changes at fixed intervals (2 to 30...
4
by: David Lozzi | last post by:
I am developing ASP.NET with VB.NET using VisualStudio.Net, and every little line I change, I have to build the application. Why is that? Is it by design? When I first started with the development, I...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
10
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.