Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
VB.NET
Windows Forms
??? How to - Control IE useing VB.NET ???
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="nomaam" data-source="post: 730" data-attributes="member: 407"><p>Is it possible to limit the number of open Internet Explorer windows? </p><p></p><p>My VB.NET program will be using IE, and I would like to ensure that only one IE window can be open. This will be done to prevent pop-up windows from interfering with its work. </p><p></p><p>I know there are free pop-up blocking programs that I can use, but I would like to have this function built into my program. </p><p></p><p>Any help would be appreciated.</p><p></p><p>I have found this code to ensure that only one instance of the VB.NET program is open; could this be modified to control the amount of IE windows? </p><p></p><p>This is the code:</p><p></p><p>[code]</p><p></p><p></p><p>Private Sub Form_Load()</p><p> ' See if there is already and instance.</p><p> If App.PrevInstance Then</p><p> ' Activate the previous instance</p><p> AppActivate App.Title</p><p></p><p> ' Send a key (here SHIFT-key) to set the</p><p> ' form from the previous instance to the</p><p> ' top of the screen.</p><p> SendKeys "+", True</p><p></p><p> ' Terminate the new instance</p><p> Unload Me</p><p> End If</p><p>End Sub</p><p></p><p>[/code]</p><p></p><p></p><p>I am fairly new to VB.NET.</p></blockquote><p></p>
[QUOTE="nomaam, post: 730, member: 407"] Is it possible to limit the number of open Internet Explorer windows? My VB.NET program will be using IE, and I would like to ensure that only one IE window can be open. This will be done to prevent pop-up windows from interfering with its work. I know there are free pop-up blocking programs that I can use, but I would like to have this function built into my program. Any help would be appreciated. I have found this code to ensure that only one instance of the VB.NET program is open; could this be modified to control the amount of IE windows? This is the code: [code] Private Sub Form_Load() ' See if there is already and instance. If App.PrevInstance Then ' Activate the previous instance AppActivate App.Title ' Send a key (here SHIFT-key) to set the ' form from the previous instance to the ' top of the screen. SendKeys "+", True ' Terminate the new instance Unload Me End If End Sub [/code] I am fairly new to VB.NET. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
VB.NET
Windows Forms
??? How to - Control IE useing VB.NET ???
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom