Determine URL About To Be Opened By NewWindow Event?

Feb 4, 2011

I'm trying to build a simple desktop application to keep users on a certain website. It's very simple, just a webbrowser control with right click disabled. However certain applications on our website require popup windows and those windows always open up a full browser window. [code]....

View 1 Replies


ADVERTISEMENT

Can Get NewWindow Event?

May 23, 2009

[code]The Me.DocumentCompleted works fine, and i have access to alot of webBrowser events.But Me.NewWindow is not recognized... web browsers should have a NewWindow event built in.. i have used it in other Vb.Net 2008 appsAny way i can get the NewWindow event?

View 3 Replies

Get URL From New Window With WebBrowser.NewWindow Event?

Dec 19, 2010

Is it possible to get the URL from a new window being opened by using the WebBrowser.NewWindow event? If so, how?

View 2 Replies

Using The NewWindow Event To Open Links And Buttons In A New Window?

Jul 7, 2011

I'm making a web browser and am using the NewWindow event to open links and buttons in a new window. The problem is that it says, (Object is not a member of System.Windows.Forms.WebBrowser). Do I have to add a Reference to my application or something? Below is my code:Private Sub WebBrowser1_NewWindow2(ByVal ppDisp As Object, ByVal Cancel As Boolean)

Dim frm As Form1
frm =
New Form1
ppDisp = frm.WebBrowser1.Object FRM.WEBBROWSER1.OBJECT IS THE CODE THAT'S NOT WORKING.
frm.Show()
End Sub

View 12 Replies

Handle Browser Popups Using The NewWindow Event Of The WebBrowser Control

Oct 21, 2010

I'm trying to handle browser popups using the NewWindow event of the WebBrowser control. The one main thing I needed is the cookie from the main browser control on my form to be passed to the popup window. Below is the only way I've been able to open the popup and pass the Document.Window.Opener value to it so that when java script is executed, it knows where the opener window is. I am getting the following error right now when trying to set the cookie from my webbrowser control to the iexplore instance of the popup window that opened.

[Code]...

View 1 Replies

Windows.form.webbrowser's Newwindow Event Does Not Capture New Window Request

Sep 22, 2009

I used to use windwos.form.webbrowser along with cast of its activeXinstance to shdocvw's webbrwoser to get the newwindows event to force new windows in another tab instead of popup. also capture right click new window requests to another instance of browser in another tab but keeping the security context

[Code]...

View 3 Replies

Possible For Each Instance Of It To Determine If It Was First / 2nd / 3rd To Be Opened?

Mar 24, 2010

I've tried searching this forum for an answer to my problem with no luck. I've set my program to allow multiple instances of it to run. Is it possible for each instance of it to determine if it was the first, 2nd, 3rd, etc to be opened? It would be very useful if for example if the program has been opened a 2nd time I would like to be able to load a different set of parameters for certain things for the 2nd instance. The same with the 3rd instance.

View 9 Replies

Determine If Network Folder Opened Successfully?

Nov 19, 2008

Since it will be run by the user I don't want the user to have to do anything but send the IT department the log file it creates.

What I want to do is see if a folder on the network can be opened successfully. I do not want to ping it, but actually open it and see if it loads. I can do this for a website by retrieving the http status code, but I can't find any references to something similar for explorer.exe. Here is a basic flowchart of this part of the program:

ping server --yes--> access \server_namefolder
--no--> access \server_IPfolder
--no--> Authentication Issue
--yes--> DNS Issue

Note also that just checking authentication won't work because it could also be a DNS problem. I guess I could check them both, but I would rather do it this way if possible (and I don't know how to go about checking either one)

View 1 Replies

Determine If Outlook Appointment Opened As Single Occurrence Or Series?

Feb 27, 2012

I'm building an Outlook add-in in Visual Studio 2010, using VSTO with VB.net, to sync Outlook Calendar data with an internal, proprietary Calendar. Our users want to be able to open a recurring appointment in Outlook, send the Appointment details and have the internal calendar update with the recurring appointment details. I actually have code in place that works just fine for creating recurring appointments and single appointments. The problem is that I can see no difference (when viewing the AppointmentItem or RecurrenceItem members) between a single occurrence of the series being opened, or if the entire series has been opened; all the data is the same, all the functions have the same result. I can see there's the difference in menu bars, but I don't even see a way to detect that difference.

View 1 Replies

VS 2005 : Determine Whether Processes Have Been Opened Or Closed During A Given Time Frame?

Feb 11, 2010

Is there a way to determine whether processes have been opened or closed during a given time frame? I'm working on code that will take an initial copy of your processes list, and then based on a timer, continue to take copies, which will compared to the initial processes list to determine which processes have been opened or closed until the timer ends. I'm capturing the processes list's in an Array list.

Dim processesList As String //Initial processes list
Dim processActivity As String //Opened or Closed processes
Dim processesAtStart As New ArrayList // Initial processes as ArrayList (To Compare)
Dim processesCheck As New ArrayList // Latest processes as ArrayList (To Compare)

[code]....

View 10 Replies

Raise Event When A File Is Opened?

Jan 17, 2010

I want to monitor for when a file is opened(movies that I open with a media player) and raise an event when that happens. I figure i've got 2 options: the first is monitoring the filesystem for a change in 'last accessed' property of the file- not good, since it doesn't change immediately. And second,monitor for when a process of the player is launched, and get the info from the titlebar. How can I do that ?

View 3 Replies

Handle Event If Form Is Opened With A File?

Oct 4, 2011

Do you mean, "opens a file" or "is opened with a file"?

View 1 Replies

Determine If An Event Has Been Attached To Yet?

Jun 18, 2009

I have two objects - one that contains some code with will fire an event, and one that contains the handler for that event. I can't "AddHandler" in the Load of the first object,because an instance of the second object doesn't exist yet. When I raise my event, I want to check to see if a copy of object2 has been instantiated (easy to do), and if a handler has been attached to the event yet (not sure how to do this).I'm also open to another recommendation about how to do this instead. If I do my AddHandler in Object1.Load, and Object2 doesn't exist yet, then it will never handle my event, even if I create it later.Right now, in the code that fires the event, I've just resorted to doing a RemoveHandler and then an AddHandler every single time the event is raised, and then I know I'll attach when the object finally exists, but I know this is a crappy method.

View 3 Replies

Determine An Event From An External Application

Jun 6, 2011

I am developing a program where I will save the information from a "Log file" from an external application..I have a biometrics system that reads and saves the log file to disk,once the user logs to the system, the system will save the file to a log file after that the system that i will develop will read the data from the "log file"(probably a text file) and send it to sql server.

View 3 Replies

Determine An Event From An External Application?

Oct 21, 2009

I am developing a program where I will save the information from a "Log file" from an external application..example: I have a biometrics system that reads and saves the log file to disk,once the user logs to the system, the system will save the file to a log file after that the system that i will develop will read the data from the "log file"(probably a text file) and send it to sql server what event should I use?

View 2 Replies

Shared Leave Event - Determine The Name And Value?

Nov 24, 2011

I am working on a new assignment. Our instructor wants us to code a shared leave event for three textboxes (txtBox1, txtBox2, txtBox3).I understand how to code the shared event and how to make a generic tbox for it:

Private Sub txtDescription_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtBox1.Leave, txtBox2.Leave, txtBox3.Leave

'generic textbox
Dim txtText As TextBox
txtText = CType(sender, TextBox)


We are told that if the generic textbox contains data and the data has been modified (against the database record), we need to : Determine the name (name property) of the textbox that casued the evend and Determine the value (text property) of that textbox.I know to check to see if anything is in the generic box by the length property, and if it is modified by the modified method, but how do you determine the name and value? Is it a case statement?

View 2 Replies

Determine What Type Of Object Is The Sender Of An Event?

Nov 25, 2011

Heres my sub:

Dim onThisTable as String ="Name"
Private Sub skill_mouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.MouseHover, button2.MouseHover, panel1.MouseHover, panel2.MouseHover, pbox1.MouseHover

[Code]....

Now I wish to give onThisTable a different value depending what the user pass over (panel or a pbox or a button) but I cant find what is the correct way to compare what type it is ...

Private Sub skill_mouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.MouseHover, button2.MouseHover, panel1.MouseHover, panel2.MouseHover, pbox1.MouseHover

[Code]....

View 1 Replies

Determine Whether A Form Has Raised Its Shown Event?

Aug 5, 2011

I have an MDI application that can either run in TABBED or WINDOWED mode. When a user selects something from the menu a form is shown. All menuItem clicks pretty much look the same:

Dim frm As New <SomeForm>
frm.MdiParent = MDIParentForm
frm.Show()

[code].....

View 3 Replies

Using Reflection To Determine If A Control Supports An Event?

Mar 7, 2011

To avoid the TRY Catch Block, is there a way to determine if the control supports the specified event without having a try catch block?

[code]...

View 1 Replies

VS 2008 Generic Event Determine Sender In Sub

Jul 8, 2009

Is it possible to have a sub that is triggered when any control of a specified type is clicked (or some other interaction), and then within the code of that sub, determine the sender and depending on the sender perform an action?For example, you create buttons dynamically, and assign them a name based on a counter that tells the number of buttons on the form. Now you click on a button, but there was no code written for 'button123.mouseclick' specifically. Instead, you get the name of the sender (button123) and you do something specific to that button.[code]

View 5 Replies

Get The NewWindow's URL?

Mar 28, 2010

How do I get the NewWindow's URL? I'm trying to get links that open New Windows to open them in another webbrowser instead of opening Internet Explorer. So far, I have:

Private Sub wb1_NewWindow(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles wb1.NewWindow
e.Cancel = True
End Sub

View 3 Replies

Determine Which Datagridview Visible On Button Click Event?

Aug 3, 2009

I have a tabcontrol which contain 4 tabpages. Each tabpage have a datagridview.

When i select any tabpage the datagridview of it will show.

I want to check what datagridview is showwing(visible) in button1 click event.

I dont want to loop through controls thenafter check visible propety of control.

View 1 Replies

How To Handle NewWindow

Feb 6, 2011

I have an an application with a webbrowser. At some point, one of the url's it navigates to opens up as a popup window in internet explorer. I would like to direct the popup window to open up in another webbrowser in my app (WebBrowser2 instead of WebBrowser1 for example) instead. How do i do this?

View 1 Replies

Webbrowser Newwindow Come Blank?

Dec 14, 2010

i've made a webbrowser and its simple and i make a code for the pop up window like open a newwindow of the webbrowser... however i will post my code and my pop up screen with the source code of the pop up

View 3 Replies

Make A Idle Event That Sets A Timer To Determine If System Idles For A Minute

Dec 5, 2011

I wanna know how to make a Idle event that sets a timer to determine if my system idles for a minute and pop outs a form and stop the timer if that form loads?

View 2 Replies

Control Array - Add New Event - Click Event Code And Calling It A Doubleclick Event

Jul 31, 2010

I've read thru Iceplug's tutorial on control arrays and got it working. I tried to add a new event by basically copying his click event code and calling it a doubleclick event. I used the proper addhandler and assigned the correct name to my sub. I have the click event changing the background color to blue and the doubleclick event changing the background color to green. The background color does not change to green. Why?

Heres the tutorial with my new code encased in asterisks ...

Code:

Imports System
Imports System.Windows.Forms

Public Class form1

[CODE]...

View 7 Replies

C# - Difference Between Load Event,Activate Event And Enter Event In The Form?

Mar 30, 2009

I am using VB.NET for Windows applications. What is the difference between Load event,Activate event and Enter event in the Form and in which order the above event is executed.

View 2 Replies

Override An Event - TextChanged Event Not To Be Triggered When The CellClick Event Occurs?

Jul 20, 2010

I'm trying to validate a few things in a form I'm building. It has a datagrid with clients info (taken from an access database) and a few textboxes where the user can type some search criteria. The thing is that those same textboxes are used to add new clients to the database and to modify a client's information if one from the datagrid is selected, so I made it that the buttons to insert and modify clients are disabled on load and thenevery time the text on a textbox changes ("TextChanged" event) they become enabled. So far so good. But then I wanted to make it so when a client from the datagrid is selected both buttons become disabled again until the text on a textbox changes (to make sure they're adding a different client and not the same one that was
selected).

I tried using the CellClick event from the datagrid to disable the buttons, but since every time a client is selected from the datagrid the info is shown on the textboxes, this triggers the TextChanged event too, and the buttons become available.So, is there a way I can tell the TextChanged event not to be triggered when the CellClick event occurs?

View 3 Replies

Project Cannot Be Opened

Apr 1, 2012

I have a project the was written by someone else. I am very new to VB. I am trying to make changes the the project. When I first opened it it went through the conversion with no errors. The report has not errors however when I try to open the project I get the error "vbproj cannot be opened because this project type (.vbproj) is not supported by this version of the application". I am using VB2008 Express and have read all the other responses to the issue but Ijust do not know waht to do.

View 3 Replies

Run A Sub From A Form That Has Not Been Opened

Nov 29, 2009

If I need to run a sub from another form, I would normally do something like this:

DirectCast(Application.OpenForms("frmTest"), frmTest).PublicSub()

How would I run the sub if the user never opened the form? The form is an options form and it may not be opened by the user if they opt out of changing the default values. I don't want to change the location of the sub because the sub relies on a lot of info on that form.

I tried Google and playing around with intellisense, but I've come up with nothing so far.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved