473,441 Members | 1,498 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,441 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 2306
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...
0
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...

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.