Windows Form Interacting With Browser?
Jul 19, 2010I 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 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 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 Repliesfollowing error as I am unable to find a fix:Description:A problem caused this program to stop interacting with Windows.
[Code]...
I 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 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..
But now I have a need to allow the user to choose a folder path without selecting a file. Basically a folder location, on the local hard drive where my code will read the files located in the choosen folder and process against them.
I am drawing a total blank and my web searches are not giving me what I am looking for.
I initially developed this with a Windows FolderDialogBrowser control, but it will not run on the web server, likely a security issue, and I can not change it.
Public Class FolderBrowserDialogExampleForm
Inherits Form
Private folderBrowserDialog1 As FolderBrowserDialog
[Code].....
I have an app that navigates to a web site and upon the site loading I get this pop up message
I'm trying to disable this and I'm currently using a web browser.
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 RepliesMany of our users, internal and external, start our web application. Then at some later point, they open a new window from within the browser. They want to have 2 independent sessions of the application running. However, by doing it this way they are actually using the same session data.
Is there a way, in code, to determine if there is another browser window open with the same session?
We're using VS 2008, C# and/or VB.Net.
COMBINING MY RESPONSES FROM BELOW:
Maybe I'm saying this wrong. When they open a second window and change it to a different widget number, and then go back to the original window, on the next post-back it will be using the second window's widget number, not its own. We are using IE7.
I 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 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 just wondered if it was possable to say load a webpage then press a button on a certan webpage?
View 9 RepliesI tried using the web browser control for the first time.The problem I had was that the size of the web browser defaulted to the size of the form. Even when I tried to downsize the webbrowser ( via properties ) it still filled the entire form. I also tried to drastically increase the size of the form( again via the form's properties ), the web browser still filled the entire form. how to create a form where the web browser only takes up half the space of the form.
View 1 RepliesI am making a webbrowser,how to prevent my browser from opening new IE windows. Because what happens is, there are some links that will open new windows and therefore IE comes in place because it is set as default windows browser which I really don't want because my browser looks really bad if it opens links in another webbrowser.I want it to be just a basic browser, it has only one window, and it should navigate within that window. This is because the browser is integrated in a bigger application only for some website applications that are related to this main application.I am using VB.net 2008 Express Edition?
View 9 RepliesI 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.
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'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.
I had created a windows forms application in vb.net. It contained several windows. Now the users of that application are telling me to display all in one main form. They want to see all the details in one form. I had implemented MDI but they want something like tabs. On different tabs different forms should be displayed. How shall I implement this.
View 4 RepliesA 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 RepliesHow can I change the background of my form to look like that of Windows Mobility Center in Windows Vista?
View 2 RepliesIt is possible to create windows service using windows form control in vb.net. give me the url or links. The windows forms control such as, Timer control, list-box, notify-icon control etc.
View 1 Replies