VS 2008 Interacting With A Webpage?
Jul 2, 2009I just wondered if it was possable to say load a webpage then press a button on a certan webpage?
View 9 RepliesI just wondered if it was possable to say load a webpage then press a button on a certan webpage?
View 9 RepliesI want to make a usercontrol that I can then use on my project form, and then interact with it. (for example, get the result of a calculation that was made in the user control and then make futher calculations on my form) I basicly know how to make a Usercontrol, by not how to use the information that it derives for further use.
View 3 RepliesI didn't know where to post this question so I hope I put it in the right forum...I am not new to Visual Basic, however I am definitely not an advanced user. I would like to build an application that would allow me to interact with other programs on my computer. For example, if I were to build an application that could control iTunes, how would I go about this?
Or, I am looking to make an application that would allow me to do little things on my computer like disable my track pad if I have a mouse plugged in. How would I build something that could interact with windows (or iTunes) like that?
I searched around the web for some tutorials and code examples, but couldn't find anything up to date. For example if i wanted to hit the "+" button on the windows calculator using an application i made what would be the best route to do so?
View 3 RepliesI am lookin for source from where i can learn to change control properties at runtime using VB.NET. Actually I havent started working on the project so I cant mention exactly what I need.
View 4 RepliesI have a project in Visual Basic 2008 where there is a Main Class and couple of classes inside the Main Class. I want to be able to share variables/objects within the Main Class and SubClasses while those vars/object are instanced.
Ex:
Code:
Public Class clsMain
Public t as New clsSub1
[Code].....
So, can i make var1 be in separate instances per clsMain in the memory while being able to access the var1 in clsSub1?
I am trying to have a ComboBox on my form, be able to change the selected item in a Listbox/Combobox on a website, through a webbrowser control.
For instance, here is the HTML coding I am trying to interact with on the webpage:
<select name="day">
<option>1</option><option>2</option><option>3</option><option>4</option><option>5</option><option>6</option><option>7</option><option>8</option>
[Code].....
I want to be able to make Internet Explorer navigate to the "about:blank" page every time its user navigates to a wesite that is blocked by the HOSTS file. Does anyone know the code that I can use to do this?
View 18 RepliesWhat classes has vb.net got to work with video files...like mpg or mp4i wanna write some code to be able to save a specific video frame to a jpg image.
View 1 RepliesI have a MDI parent on which i launch a child form
Dim NewMDIChild As New Frm_addOT
'Set the Parent Form of the Child window.
NewMDIChild.MdiParent = Me
'Display the new form.
NewMDIChild.Show()
His child form contains several comboboxes which hold data from a dbase(sql)
When new data is entered in the cmb it checks the database and if it isn't in there it launches another window
FRM_OTlistaddklant.Visible = True
and copy's the newly entered text in a textbox.
FRM_OTlistaddklant.TB_klantnaam.Text = OTaddklant_naam
then i can give in the details etc.
now, when this is done and the users presses a button "Add"
the information is written to sql(which works perfect)
than i have a public sub on the Frm_addOT which should refill the combobox and
also set the backcolor to a specific color.
and the last two things will not work. Actually when i try to change the backcolor on Frm_addot it triggers the event backcolorchanged and says it has changed but it is not visible.
I'm trying to start to use the Task class for multi-threading. This is a really simple example so I can work out the ins and outs. As an example, I have the below thread, the thread.sleep is used to represent large amounts of data processing, at the end of which I'd like to update something on the screen. Please advise a good way to achieve the idea of the below code with respect to the text box update.
With the old threading system, I would grab the UI context, and do a .post/.send to it. I'd like to have that ability with the newer task system, but am open to the preferred way of solving this.
As a back ground, the threads I will be replacing were previously constantly running during the app with a do/while that was killed at app close.
[Code]...
I am using VB.NET to automate a web form submission using SHDocVw.InternetExplorer. I have navigated to the form, filled in all of the fields successfully, and clicked the update button. By design the web application then opens a JavaScript SubModal window in the center of the screen. It looks like a "floating iframe" for lack of a better description. [code]I need to find a reliable way (i.e Not SendKeys). to get the HTML source of this popup in order to click a button.
View 1 RepliesI am writing (and teaching myself how to write) an experimental assembly in VB.NET 3.5 that is exposed via COM and then called from some Excel VBA code to initiate an instance of a class that traps some Excel events and then perform some functions on the active workbook in Excel.To initiate the class, a reference to the Excel Application is passed from the VBA (I am using a PIA for Excel in the assembly).I needed to perform a time-consuming operation on the active workbook from my assembly so I decided to use a BackgroundWorker in a WinForm so that I can display a progress dialog for the operation whilst the operation completes in the background.
I would like to know if there are any problems with interacting with Excel via COM using a background worker in this way? Reason for asking is that the main class in the assembly holds the reference to the Excel application object, and this is then passed to the BackgroundWorker so that it can determine the active workbook and then perform some operations on it. I am only accessing the workbook itself (not other objects) through one procedure.
following error as I am unable to find a fix:Description:A problem caused this program to stop interacting with Windows.
[Code]...
I have a windows form that I would like to have search for an html button in the user's browser. I would need the location of the button on the screen.
View 4 RepliesI have a windows form that I would like to have search for an html button in the user's browser. I would need the location of the button on the screen
View 13 Repliesi have an aspx page with vb.net back end. in that page i get names and url's from the database depending on different conditions. My requirement is that when i get the url, the code should then use that url and have that webpage in a small preview form on my existing aspx page. so basically i have a table as follows -
[Code]...
I have a method that is asynchronously called when System.Net.Sockets.NetworkStream.BeginRead completes.
skDelegate = New AsyncCallback(AddressOf skDataReceived)
skStream.BeginRead(skBuffer, 0, 100000, skDelegate, New Object)
In that callback method, I need to interact with the UI thread.
Sub skDataReceived(ByVal result As IAsyncResult)
CType(My.Application.OpenForms.Item("frmMain"), frmMain).refreshStats(d1, d2)
End Sub
This causes an exception after the method completes. (when End Sub is executed)
[Code]...
If only there were an easier way of traversing ASP.NET controls in the codebehind. This has been the bane of my existence as an interning .NET developer. entifying the proper member of the ListView controls. I've deleted all the presentation code in the markup to make it easier to look, since it isn't relevant anyway. Here's the situation:Markup
<asp:ListView ID="NewProduct" runat="server" DataSourceID="NewProductSDS" DataKeyNames="ID">
<ItemTemplate>
[code].....
I have a windows service application that is meant to interact with SQL server database (INSERT, UPDATE, ETC). The windows service application is also multi-threaded.I created an "App_Data " folder to keep my database and used app.config file for connection information, etc.
After installing and starting the service, nothing happens, the database doesnt get updated, etc.
Has anyone ever written a windows service application that interacts with a database? Kindly advice me on how to overcome this problem..
I'm trying to put together a simple GUI for ffmpeg (a command-line video conversion, encoder, decoder etc..), mostly for video encoding/conversion... Now I am able to interact with ffmpeg.exe (the command line app that does all the big conversion work) with the System.Diagnostic.Process class (I know how to start the process with the arguments I need etc..) But the problem is, when I'm converting a moderately long video file it can take several minutes to complete...
[Code]...
I have a Data Grid View pulling in rows of data from an Access Database. I would like to code it so that when a user double clicks on a row, a window opens with that particular row being opened.
In addition, I would like to code a button so that it does the same, that is open a window with the selected row data.
How can I get the selected row ID or other data in VB?
EDIT: Forgot to mention this is a DataGridView.
A recent project of mine has been to make a designer. I've finished everything, but when I click the controls to show the properties window, the control interacts with the cursor. So my question is: How do I freeze the controls from interacting with clicking or key presses without disabling the control itself?
View 11 RepliesI making a webpage with the help visual basic. I wanted to put a flv video in it and i used flash control for asp.net [URL]. I made the player in flash told it to download the video from the sever. Now when i put the player on the webpage and put the webpage on the sever it cant play the video. But when i just pres the the player which is in swf format it works. It can download the video. But when i put the player on my webpage it cant.
View 5 Replieson my local network, I have an XML on a computer called "test.xml". If I go into my web browse and type: can see the xml file with the Elements. If I visit it in VB.NET using a Web Browser, again, I can see the content. However, when I try to parse this information into VB it fails every-time. I've Tried using:
WebBrowser1.Document.Body.OuterHTML
WebBrowser1.Document.Body.OuterText
and they both give me the error: "Objec
[code].....
How to open a webfile?, not to download![url]...
View 8 RepliesIs there a way to load and get let's say only the first 500 characters of a website instead of the whole thing?
View 6 RepliesI got a small issue. Im trying to grab some links(about 5 only) from a webpage that can change frequently.
Im using:
For Each ClientControl As HtmlElement In wb.Document.Links
ListBox1.Items.Add(ClientControl.GetAttribute("href"))
Next
It gets the value of the link the files are (the hyperlink) and allows me to download the file, but I want to get to get the string assocaited with it as well
For example, A link says click here! and bring you to a page.
I can get the link to the page, but not the text click here according to my source code.
I'm actually trying to code a downloader for a site that generate download links.The program can download one link, but when there are more than one link, it only downloads the first one.
[Code]...
I want to make a program that connects a webpage and logs in it .And than it should able to do searching in that webpage.[code]...
View 2 Replies