473,396 Members | 1,927 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,396 software developers and data experts.

Visual Basic, WebBrowser Help

6
This is my first post on this website so hi everyone and I'll introduce myself. Im 14 from Scotland and I like computer games and I have started programming not that long ago. ;)

Im making a WebBrowser sort of thing (Although not really a WebBrowser). I have it all working fine so you can surf the net and whatever you want to do on it. But im needing help on one feature, I have a text box on the form and I want it to send Whatevers in the text box (Integers, string, ect) to the webbrowser, how would this be done? :confused:

Ps. I have tryed sendkeys, but that dosnt work, Any help would be greatly appreciated, cheers.
Feb 19 '06 #1
3 4950
Keen
6
I cracked the answer myself after ages of guessing random code.

Thought I'd post this incase anyone else in future need this.

Expand|Select|Wrap|Line Numbers
  1. txtbox.text = textbox stuff
  2.  
  3. webbrowser1.focus()
  4. if(webbrowser1.focus = true)then
  5. sendkeys.text(textbox stuff)
  6. sendkeys.text("{enter}")
  7.  
:D
Feb 20 '06 #2
Kimmie
4
Brilliant, Keen! That is exactly what I was looking for! At least I think it will help me - I can't tell since I haven't figured out how to get the focus to the fields I want...
The web page I am trying to enter info into has 2 forms. I want to ignore the first form entirely, then get the individual form elements of the SECOND one and sendkeys.
Any ideas?
Sep 26 '06 #3
you can try on the textbox write
webbrowser1.navigate
Oct 3 '06 #4

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

Similar topics

2
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or...
1
by: Florin | last post by:
Hi, How to return a variable from javaScript to the visual basic? The script is loaded into the webbrowser control as a html page. THX
2
by: declanj | last post by:
Hi, I'm a relative newcomer to visual basic programming but have some knowledge of C and C++. however i recently purchased a copy of vb.net 2003 standard. when i try to install it. it returns a...
9
by: Jay Kim | last post by:
Hi, We're implementing a Windows application using Visual Basic .NET. One of the key features we need to implement is that we should be able to get the accurate byte offset of user selected...
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
0
by: Knackerud | last post by:
Hi there, I'm building the simplest small web browser, using Visual C++ (2005 Express Edition), making a form, dragging over the WebBrowser from the toolbox, setting the initial URL, and...
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
1
by: Bomyne | last post by:
Okay, I got most of the code for this event worked out, but I want to know how to get the URL passed to WebBrowser1_NewWindow by the webbrowser control. Visual Basic .Net 2005
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
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...
0
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,...

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.