473,397 Members | 2,116 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,397 software developers and data experts.

Pass data from HTML file to Visual Basic .exe From - Auto fill data from web file to

Hi I want to pass html form values (eg Name = Ram) to Visual Basic Form as Auto load same data from Web to Vb.Net exe From.
Sep 6 '19 #1
1 2304
SioSio
272 256MB
Ex.Find name="ie" from html of google site, extract the character string from there to ">" and store it in tg.

Expand|Select|Wrap|Line Numbers
  1. Dim client As WebClient = New WebClient()
  2. Dim Str As string = client.DownloadString ("https://www.google.com/")
  3. Dim SearchStr As String = "name=""ie"""
  4. Dim p1 As Integer = 0
  5. Dim p2 As Integer = 0
  6. Dim ps As Integer = 0
  7. Dim tg As String
  8. p1 = Str.IndexOf(SearchStr, ps)
  9. If p1 >= 0 Then
  10.     p2 = Str.IndexOf(">", p1)
  11.     tg = Str.Substring(p1+SearchStr.Length, p2 - (p1+SearchStr.Length))
  12. End If
Dec 18 '19 #2

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

Similar topics

1
by: A-PK | last post by:
Hi I wanna shown all my Data from SQL server to Visual Basic.net. could someone guide me on that ? is there any object enable to do that. SQL Server 2000 Database - contacts 2 tables - supplies...
6
by: harish | last post by:
I want to give a page break when my one of the field change to some different value. I want separte page for different value at run time.
1
by: All | last post by:
Hi I have a bunch of text files which need to be organized. What I want to do is to select three continuous lines from each text file and write them down in another text file. Each of those three...
1
by: czi02 | last post by:
I'm using visual basic 6.0 and don't know how to connect the program that I've been made in html. Would u help. Thanks. Hope you'll send me some codes on connecting html to visual basic. Well thanks...
1
by: Nidal Khader | last post by:
Dear Sir, Please I wont to know how to connect mone than 2 ActiveX Data Object in one form in visual basic 6 with access bata base , or how to connect more than 2 tables or more in one form...
1
by: pate20 | last post by:
I'm modifing a unfinished form which created by someone else, and tying it to a database which dataadapter, datasource and a Dataset. I have been goofing around with this forms and code. So far...
3
by: pankajGoyal1958 | last post by:
I am trying to import csv file into sql server. csv file data is C,FD,20111231,08,000,C,ECB,FLL,FLL,C1,,2011111009592368,,,,, C,IS,20111231,05,000,C,KWR,TPA,TPA,F3,,2011111009592368,,,,, ...
6
by: wisni1rr | last post by:
I have a form "Add" that I use to enter data into my database. All the controls on this form are textbox controls (for data entry). How would I make these textboxes auto-fill as the user types into...
1
by: mrukmana02 | last post by:
Hello everyone. I need your help to finishing my Diploma Final Project. I have database MySQL in phpMyAdmin. And to show the data, i was created MMI (Man Main Interface) by Visual Studio 2012. I...
1
by: mrukmana02 | last post by:
Hello everyone. I need your help to finishing my Diploma Final Project. I was created MMI (Man Main Interface) using Visual Basic (Visual Studio 2012). My database using MySQL in phpMyAdmin. So, i...
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: 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...
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:
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
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,...
0
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...

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.