Html - Pass Information To VB Program
Mar 5, 2012I am making a download manager in VB 2010. I need to be able to pass the download link from an HTML page to the VB Application. This is what i think i need to do in the HTML:
[Code]...
I am making a download manager in VB 2010. I need to be able to pass the download link from an HTML page to the VB Application. This is what i think i need to do in the HTML:
[Code]...
How can I pass information from my textbox in my program to the username box on [URL] as well as password, and then execute log in?
View 2 Repliesi have a form that I need to do two separate functions, however about 95% of the code is the same it's just that last 5% so I don't want to create two forms. What I would like to do is when I click on a button to open the form pass it a variable or something so I can determine which of the two buttons were used to open the form.
Basically if Button1 is clicked do this if button2 was clicked do that...
I'm just starting out with vb and am working on a single form project.
Basically I'm trying to take information entered in a textbox on the main forum, Appear in a tab control at the bottom of the forum through the use of a button.
As far as I can tell, I need to code the onclick button portion of it but am unsure about how to pass the information to the specific label in the tab control.
I need to retrieve information from a table in a HTML code.
The page i need to retrieve info from is not mine so i can't change the HTML code to make it solve my problem.[code]...
I'm creating temp file to hold and pass information. What is prefered, XML or text files, and why?
View 3 RepliesThe method I'm currently using to extract html and the parse is via a WebBrowser control.I'm grabbing a collection of tags, sorting through the ones I want, and then pulling the innertext.Doing this on my development machine is kind of slow, but manageable. At max, I can go through 60 different web pages across 3 different sites. It takes about 5 mins on my machine.
However, this app is targeted towards machine that have a quarter of the technology that my computer has. So, it takes anywhere from 10-15 minutes. This is less than ideal.I've bee reading up on the documentation on HTTPWebRequest. However, form what I've seen I can't seem to find a way to grab the HTML and then parse it with a method from HTTPWebRequest.
Due to the way I'll be using it, I won't be able to use RegEx to parse the data and was hoping there was a method within the HTTPWebRequest property to do it.
How do I get information from a string html?
I am working on a megaupload downloader and I can not take information from a string, that is this: <span class="down_txt2"> UltraMU.rar </ span> It would be the name of the file that I want to download. I tried with this
Private Sub WebBrowser1_DocumentCompleted (ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles WebBrowser1.DocumentCompleted
[Code]...
When I go to try it gives me the error and I can not fix it You could write the code to be able to take the name of the file, in this case "UltraMU.rar?
I am in the process of prototyping a small sockets application, which monitors IT infrastructure (due to in-house financial and deployment restrictions, I am unable to utilise an existing commercial or open-source solution). Basically, I have a server application and associated agent process for communicating heart-beat data to the server. The server application implements a TCP socket class (TCPDevice), which is called from a WinForm. I am aware of the restriction on updating the UI from processes running on separate threads, and that the preferred technique for acheiving this is via the use of Delegates in conjunction with the Invoke method. Having had very little need previously for using Delegates (apart from of course std windows events and the BackGroundWorker control), I am at a loss as to how to do this in the context of my application, and would appreciate some assistance, although it has occurred to me that I could use the backgroundworker for marshalling updates to the UI.
Eventually the application will need to update a grid of devices via feeds from the defined agents, however for the purpose of this exercise simply updating a status bar on the UI will suffice. The section of the code which I believe is relevant to propogating the code to the form is contained in the OnDataReceived method.Below is a code excerpt from the protoype app which should put the above into appropriate context:
Code from the form:
[code]...
The method I'm currently using to extract html and the parse is via a WebBrowser control. I'm grabbing a collection of tags, sorting through the ones I want, and then pulling the innertext.
Doing this on my development machine is kind of slow, but manageable. At max, I can go through 60 different web pages across 3 different sites. It takes about 5 mins on my machine.
However, this app is targeted towards machine that have a quarter of the technology that my computer has. So, it takes anywhere from 10-15 minutes. This is less than ideal.
Does anyone know of any other method that I could do that would take less resources and perform a lot quicker?
I am trying to pass some information from a VB form to my MySQL database. i have named all the textbox's the same as the field in the database and checked all my database fields and textbox names which are all correct. When i try to enter information into a form I sometimes get an error at the .executeNonQuery section of the code.
To test, I outputted the SQLStatement string to a textbox ( which pulled through all the fields from the textboxes correctly) then manually inputted the completed SQL query into the database and it worked. But when I try to do this in one go it seems to fail if there is too much text ( if i enter 'a' into each field it works). Are they limits to the size of the SQL query that can be passed from VB?? all the MySql database fields are set to text with no size limits.
[Code]...
1)Send a request to an external hardware by SerialPort1.write.
2)Receive this information in SerialPort1_DataReceived.
3)Set this information (integer from 0 to 31) on UserInterface (like cell phone signal level....)
How to pass level information to this graphical subroutine without receive cross - thread error?
========================
Serial request
========================
Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer_Livello_Segnale.Tick
SerialPort1.Write("AT+CSQ" & vbCrLf)
[code]....
What i'm trying to do is retrieve 2-3 pieces of information from a parsed html file, then add the data into a listview in the corresponding columns i was initially going to do a function for each piece of information to retrieve but thought maybe i could do it all with 1 function instead.
[Code]...
what i am trying to do is extract information beween two tags in some html from the source of a website. The contents of the text between the two tags will always be different. the code i currently have is;
[Code]...
Is there a possibillity to get in a vb program information from a called vb program?For example: Dim id As Integer = Shell("C:program.exe id_1") program.exe is a vb windows form program and must return a value back.
View 1 RepliesThe info i need extracted is formatted:
<TD><A HREF="http://xxxxx.com/xxxxxx/index.html"><IMG SRC="../xxxxx/thumbnails/xxxxx.jpg"> </A></TD>
<TD>=== <B><A HREF="http://xxxxxxxxx.com/xxxxxxxx/index.html">LINE 0</A></B> ===<BR>
<FONT SIZE="2" COLOR="#400080">
[code]....
how do i extract the info between TD=== and /a and Line 1,2, and 3 and store it into a database from a live website?
This may sound really stupid but I have to ask cause I'm not finding this answer anywhere.I have an application where the user will need to sign up for a new user account on the website [URL]..However when I am using Firefox's plug-in Firebug to view html I am getting something totally different than when I just right click on the site and view the page source.
What I am trying to do is to get the captcha from the website and display it in a picturebox on the application so the user can view the captcha, solve the captcha and then the app post is back to the service for a response.
Here is the source that I am getting using Firefox's Firebug to inspect the element:
<td>
<input type="hidden" value="Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK" name="iden">
<img class="capimage" src="/captcha/Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK.png" alt="i wonder if these things even work">
</td>
[Code]...
Why would the two be showing me two different versions of the HTML?
And how would you be able to grab that source to view in a picturebox using webclient?
I have a .Net 3.0 application that needs to pass an integer to another program on the same machine. I was using a WCF service to do this, but ran into user rights issues when trying HOSTING the service on the local box.
View 4 RepliesI just got into VB 2010 with SQL 2008 Server Report. I was able to create a report as my wish and it's vieable via direct url (URL). But I want to pass login Information and Selection parameters to the report. But I don't want to pass them thru URL, So I want to load them from the application (winform) and launch the report in iexplorer.
View 1 RepliesI'm making an installer that needs to have information stored inside the exe itself.I cannot use my.settings because it is stored outside the application and if it is changed and the exe is moved to another computer it will reset to default.
And I cannot use resources since I cannot add/edit resources after the application is build.
Is there any way I can store and change info even if the application is moved to another location?
Is it possible to get information on the APIs in Vb.Net?
View 2 RepliesI'm having a tough time with fixing this problem i'm to make a program that gets information of the net and when the information changes it should show a message box.
[Code]...
I'm doing a project in VB.NET 2005, in which I have to extract the tag information of mp3 files. For that purpose I have used code in this page. But the issue is when one of the tag is empty, it didn't return any values.[code]...
View 2 RepliesI want to ask is it possible to get a information from my program lets say for example: I have one circuit where I store number from one to ten and when the user click a button,the program print them in a list box. Is it possible with another program made with visual basic 2010 to take out that information ? Now someone will say that I will use this information for cracking goals,but that is not true.
[Code]...
Suppose I save a file as *.tar (this extension is my own making) using a vb6 program. Now when the user clicks this file, the window asks 'with what program to open this file' and he/she selects the exe of my program. Now I want to pass the name of file clicked to my program. Like when we click *.xls file, the exe of Excel program knows which file has been opened or clicked. Is there a way?
View 5 RepliesI'm trying to pass a callback function from a C++ dll to a VB.NET application.Here is my current C++ code :
void DLL_EXPORT registerEvent( void (*callBackFunction)(string str),string str)
{
callBackFunction(str);
}
void test(string str)
[Code]...
I know I gotta get a book or something because things are just way too hard for me. But before that happens I have what I think should be an easy question.
I want to create a variable in xaml, the angle that a control is currently at, and then use this variable in my VB code (event handler).
Or even better can I, while in VB code, check the current angle a specific control is at so that I can add to the number when setting the new angle?
I have a form and from this I call
dialogPrintDiet.ShowDialog()
which launchs my dialog. I need to pass a string value and need the easiest way to do this in VB.NET .
I get a compile error Type "ctltype" is not defined with this code.
This is .NET 1.1 legacy code so not good I know.[code]...
I have tried a lot of things but I cannot get this to work. I can pass and receive ordinary strings (char*) to C++, but I cannot receive Unicode strings (w_char_t *) in C++.[code]...
View 2 Replies