Stop IE Window From Opening

May 15, 2009

How can you stop IE from opening up in a WebBrowser control on a new window (target=_blank")? I've gotten the WebBrowser_NewWindow thig and tried e.Cancel and CancelEventArgs and none of these work. What do I do?

View 1 Replies


ADVERTISEMENT

Closing A Window While Opening Another / Opening A Url In The Same Tab

Jul 27, 2010

I am making a program that edits my website with the input that I put in. But, it is requiring multiple forms (obviousily), but I don't know how to make it close the one I am in while opening the other. For example: I have a form that opens first that requires a Username and Password, so nobody can obviousily use it without knowing them. When I submit the correct username and password and go on with the editing, I need the login form to close. I do not know the coding for this part. Is it:

[Code]...

View 6 Replies

VB Web Browser - Stop IE From Opening?

Sep 11, 2008

I am working on a tabbed web browser and it is going great! Only one problem! When someone presses on a link that has a target of _blank or a new window, it opens in IE!

I have tried things like:

Private Sub newbrowse_newwindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
e.Cancel = True
End Sub

but that only cancels IE from opening. What I want is it to open in a new tab. I have set it so that NewTab() opens the new tab to the users homepage.

Basically, I need to find out how to get the URL of what the browser is trying to open.

View 12 Replies

Can't Stop MS Word Opening When It's Referenced

Jan 12, 2011

I decided it was about time I learned about accessing Microsoft Office products via VB.NET. I started with Excel and it all worked fine, I could create a new Excel Application, open a workbook from file and read from the sheet then close it all down again no worries. However, when I turned to Word...things got strange. Using the code provided below, every time I run it an instance of Microsoft Word opens itself on the desktop (with no loaded content). I didn't have this problem when using Excel with similar code, so I have to ask..what gives? Is there a way I can stop MS word opening at all? At the moment it just flickers for a second (it opens when I open the document, then when I call the Quit method it shuts down a split second later)[code]...

View 3 Replies

Stop Other MdiChilds Opening As Maximized

Nov 18, 2011

how can i stop other mdiChilds opening up as maximised when the previous one is set to maximised.[code]

View 6 Replies

Asp.net - Opening File Via Hyperlink Causes VS To Stop Debugging?

Jun 21, 2012

This is a rather odd problem i am running into I currently have a web page that i am adding hyperlinks to that when clicked will open a file (usually Word file though there are some Excel files). Here's the problem. When debugging all of the files do open properly, however, files labeled .doc, .docx, or .xls all end up stopping debug mode when they open. I have .docm files that open properly and do not stop debugging. There isn't an error thrown anywhere just a forced stop of debug mode it seems.

Has anyone ran into a problem similar to this? I have only tested locally but i am unsure if it will cause problems when putting it on the test server. I'm still not quite done with the rest of the page so i was hoping to stop this behavior before completeing the project.

View 1 Replies

Stop Form From Opening During Load Event?

Jan 28, 2012

I am trying to open a MDI child form in some presenter class. In the form load handler I perform a number of initializations. If any of them fails I want to cancel opening the form. The current code does not prevent the form from opening.

Private Sub OnFormLoad(ByVal sender As Object, ByVal e As System.EventArgs)
Try
Me.mGridBindsource = New BindingSource()

[Code]....

View 1 Replies

Stop Links From Opening In Default Browser

Jan 29, 2012

I am new to VB but am quick at learning and well I'm not one to hit a problem and just ask for help I have been search google, forums and various VB tutorials and YouTube videos trying to find how to do this with no luck.I am creating a program which will basically speed up the process of creating account at the moment I am working on a program aimed at Twitter and I am so nearly finished apart from I have hit a snag.I have 2 browsers in vb one is for Twitter and the other is url...When the verify link comes through in (webbrowser2/incognitomail) and is clicked it opens in IE when I would like it to open in one of the web browsers.I have searched so many sites and forums and found nothing on this subject

View 3 Replies

Opening A Plink Window From An Application Without Showing The Black Plink Window?

Jul 20, 2011

I am looking to call plink from a vb.net application in the background (without showing the black plink cmd screen) is it possible?

View 1 Replies

Can't Opening New Window

Dec 23, 2009

I'm using a webbrowser control , when i open a new window i cant seem to get the new window to navigate to a different webpage.[code]...

View 8 Replies

Opening Window WPF?

Jan 19, 2011

I'm using VB.net and WPF 4.I cannot seem to open a new window in WPF consistantly. It will work one time, and then the next time I execute the same script, it throws the following exceptionXAMLParseException occuredProvide value ystem.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '4' and line position '208{Cannot evaluate expression because the code of the current method is optimized.}

View 1 Replies

Opening A DOS Window With Some Path?

Apr 5, 2009

how to open a DOS window from a VB.NET app pointing to my own path which I pass as a parameter. For ex: I want the DOS window to be opened with D:TestBedMyApp. All I want to know is how do I pass the path "D:TestBedMyApp" to the DOS window.

View 2 Replies

Opening A New Window In A Backgroundworker?

Jul 3, 2009

I need to create a xaml FlowDocument with a background worker and it must be shown in a new window. The problem is that i can not pass back the flowdocument to the original thread otherwise an exception is raised because the flowdocument belongs to the second thred or opening a new window in the background worker?

View 2 Replies

Opening New Window In VB Browser?

Mar 16, 2012

recently im programming PHP for web based approach and i've been using ready made browser like firefox as my application. But now im switching it to custom browser with visual basic. I've created my own custom browser and it seems ok. but my question here is, how to open up a new browser (new VB browser window) as same as we open a new browser in firefox. I've been using html code that opens new window, but it open up explorer browser instead and it took very long time to open. I want it to open up as VB browser with my php codes inside. Is there any html or php code that could open new vb browser window? instead of explorer or firefox window.

View 9 Replies

Preventing Opening Another Window?

Dec 9, 2009

<VB.NET 2008>I created a MDI frame and I try to open a Winform by clicking menu.I do not want to allow opening same winform which is already opened by user.How do I check whether the winform is already opened or not?

View 5 Replies

Cannot Keep Web Browser Control From Opening A New Window

Oct 20, 2009

I am having an issue with using a VB 2008 web browser control to view local folders in Windows 7.I have an app that allows the user to browse local folders using a web browser control within a winform. This app has been working great with all of the users that currently have Win XP and Win Vista. However, with Win 7, every time a folder within the Web browser control is double clicked on (to navigate into its contents) Win 7 opens a new windows explorer window to display its contents. [code]....

View 1 Replies

Open New Form Without Opening Window?

Feb 4, 2012

I'm making a game in which you advance through the levels when you click some buttons, the way I'm doing it is "formname.show" and "me.hide" inside the button code, but the problem is, using this code, it shows somewhat of an unprofessional look because it opens a new window everytime I reach a new level, and it gets quite annoying also.

View 1 Replies

Opening A New Window As A Dialog Box Via Code?

May 5, 2012

I'm opening a new window as a dialog box via code.If I click on another application (let's say outlook) and then click on my project again in the task bar I get my main window and my dialog box is in the background and I can't get it back. What's wrong and how can I fix this?

View 2 Replies

Switch Between Forms Without Opening A New Window?

Jan 16, 2012

I might be going about this the wrong way, but I'm trying to create a form that will include a single button, for instance "Enter". When "Enter" is clicked, I want the form to then display the contents of form 2, which might include more buttons and/or a textbox, etc. I want to do all this without ever opening or closing a form.

View 3 Replies

VS 2008 - Opening File Into New Window

Dec 9, 2010

How to open a file from the harddrive that I just made through VB. I open/read a file > analysis it > Create new file and put info into new file > msgbox "Would you like to open the file you just created? [yes][No]" > if yes then open file to new window.

-Here is the Msgbox
If MsgBox("Your file has been created in the location of your choice," & _
" Would you like to open your file?", _
MsgBoxStyle.YesNo Or MsgBoxStyle.DefaultButton1, "Complete") = vbYes Then
Else
MessageBox.Show("Goodbye", "Complete")
End If

View 4 Replies

VS 2008 - Popup Window Opening In IE

Apr 29, 2010

I wrote the following codes;
Private number As Integer
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("[URL]")
number = 0
End Sub
[Code] .....
But, also opens a popup window opened internet explorer. I also want to open the same WebBrowser
What can I do?

View 5 Replies

Javascript - Opening New Window On Radiobutton Selected With .net?

Jul 19, 2011

I have 2 radiobuttons as shown below:

<asp:RadioButton runat="server" GroupName="ebrochType" Text="Select Type 1" TextAlign="Right" ID="rbtSelect1" OnCheckedChanged="sel1" AutoPostBack="true" />
<asp:RadioButton runat="server" GroupName="ebrochType" Text="Select Type 2" TextAlign="Right" ID="rbtSelect2" OnCheckedChanged="sel2" AutoPostBack="true" />

When one of these is selected, I need to open a page in a new window with no menubar etc...

Is this possible in the code behind?

I tried this but it did not work (it just refreshed the page/updatepanel):

Sub sel1(sender As Object, e As EventArgs)

Page.ClientScript.RegisterStartupScript(Me.GetType(), "select1", "window.open('http://www.google.co.uk','','')", True)

View 2 Replies

Opening Word Document In A Window Form?

Aug 30, 2010

I have been able to open a word document via a button click which holds some text programatically.But what i want to know is" Is it possible for me to open the said word document within a windows form so that it will be within the application itself but not somewhere else.i have been using this code show the word document but i want it within the form like having a picture in a picture box on a form. not somewhere outside the application.

[Code]...

View 3 Replies

Print Preview Opening In Small Window

Sep 16, 2010

I'm using a WebBrowser to print some HTML data, all works good except for the print preview called in the load completed event - It opens as a very small window in the top left, anything I can do to improve this?

Private Sub BtnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnPrint.Click
Dim webBrowserForPrinting As New WebBrowser()
AddHandler webBrowserForPrinting.DocumentCompleted, New WebBrowserDocumentCompletedEventHandler(AddressOf PrintDocument)
[Code] .....

View 1 Replies

VS 2010 Opening Outlook New Email Window With .NET?

Aug 19, 2009

Protected Sub btnToEmail(ByVal sender As Object, ByVal e As EventArgs) Handles ButtonToEmail.Click
Dim Outl As Object
Outl = CreateObject("Outlook.Application")
If Outl IsNot Nothing Then

[code]....

And below it said the person had problem where the message opened twice. He said changing omsg.Display(False) will display it once. This didnt work for me.

View 27 Replies

VS 2010 Opening Outlook New Email Window?

Sep 22, 2011

I was following this codeThis is my

Protected Sub btnToEmail(ByVal sender As Object, ByVal e As EventArgs) Handles ButtonToEmail.Click
Dim Outl As Object

[code]....

View 1 Replies

Stop Notification Window From Stealing Focus?

Apr 15, 2012

In my WPF application I have a notification window that appears at the top right for 3 seconds and closes. Just a normal notification window.But when it appears, it takes the focus away from any window that was active.For example, if I'm typing in Chrome and the window appears, chrome looses focus and my typing is halted.The notification window is set to top most so that it will appear on top of other windows, but how do I go about stopping it from stealing the focus of the user?

View 1 Replies

Get Error Message When Opening VB Window In PowerPoint 2010?

Dec 28, 2010

When I attempt to open the visual basic window in PowerPoint 2010 I get the following message:STDOLE2.TBL could not be registered. What causes this and how is this fixed?

View 4 Replies

JavaScript - Opening New Window To Display Another ASPX Page

Dec 6, 2011

In my code behind, I need to open a little window that displays another aspx page. I have found many ways to do this in JavaScript, but haven't been able to find a way to do it using VB.Net. Looks like you can call window.open() in JavaScript. Is there a VB.Net version of this call, or is this something that has to be done client side?

View 2 Replies

Using Window.open Via ClientScript.RegisterStartupScript Only Opening Two New Windows?

Nov 29, 2011

I have a point in my .NET (VB) application at which the user is prompted to select zero to many documents to be printed, which are spawned off in separate new windowsThe list of documents selected is passed in from the previous page, pipe-delimited, as part of the querystring, which is then split to create a list of documents. My code iterates through this list, builds the new window's URL dynamically and then spawns the new window. For some reason I'm getting a maximum of two new pop-up windows, regardless of whether the user chose three or more, and the list is being populated fully and properly

View 1 Replies







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