473,385 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

detect whether ie is running or not

31
I want to create a windows app which can display a message box whenever i open or close the internet explorer window. As the internet explorer window is opened a messagebox showing that "internet window is now opened" and when it is closed a msgbox showing "ie window is closed".
Kindly help this newbie in writing the code for the same that how can my app made in vb.net detects that ie is opened.

Thanx a million in advance.
Regards,
rajan arora
Feb 8 '10 #1
4 3868
CroCrew
564 Expert 512MB
Hello rajanji,

Here is a start for you:

Expand|Select|Wrap|Line Numbers
  1.     Function InternetExplorerRunning() As Boolean
  2.         Dim a As Array = Process.GetProcesses(".")
  3.         Dim proc As Process
  4.         Dim ReturnThis As Boolean = False
  5.  
  6.         For Each proc In a
  7.             If proc.ProcessName.ToString = "iexplore" Then
  8.                 ReturnThis = True
  9.             End If
  10.         Next
  11.  
  12.         Return ReturnThis
  13.     End Function
  14.  
Happy Coding,
CroCrew~
Feb 8 '10 #2
rajanji
31
Sir i have written this coding given by you in Form_Load() event and used a msgbox to show theat "IE running" and if returnthis = False then Msgbox says "IE not running" and its working like a charm but one thing more i want to do is that i want the msgbox saying "IE not running" when Internet explorer is closed and again when the Internet Explorer is opened a Msgbox appears saying "IE running" . This is not happening it appears only once while the application runs . After that while the application is running there are no msgboxes displaying "IE Running" or "IE not running" .
How this can be done

Thanks for your support in advance
Regards,
Rajan Arora
Feb 24 '10 #3
sashi
1,754 Expert 1GB
User timer to monitor if IE is running
Feb 24 '10 #4
JamieHowarth0
533 Expert 512MB
A timer is perfect for this kind of thing, you need to poll the running process list regularly to test if iexplore.exe is present in the list.

codegecko
Feb 24 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Vince C. | last post by:
Hi. I'm using Visual Interdev 6 (SP5) to server-side debug my ASP scripts. I'd like to detect whether I'm running the script under a debugging session or not. The detection should work on...
23
by: David McCulloch | last post by:
QUESTION-1: How can I detect if Norton Internet Security is blocking pop-ups? QUESTION-2a: How could I know if a particular JavaScript function has been declared? QUESTION-2b: How could I...
5
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
1
by: Gaetan | last post by:
I have ASP.Net code calling methods in an assembly. Those same methods can be called from a Windows service as well. I would like the methods to access data stored in the Application object only...
2
by: Oenone | last post by:
Is it possible to detect whether my application is running within a Terminal Server session or not? I'd like to automatically switch off some of my graphics rendering under this environment as...
6
by: Fred Hedges | last post by:
Using .NET 1.1, I need to be able to detect if Themes are enabled or disabled, not for a specific application, but for the system as a whole (ie. the current user). The reason I need to be able to...
14
by: ThunderMusic | last post by:
Hi, I want to detect in my C# app (can use iterop) if the workstation is locked. I've seen on the web people saying it's impossible except by looking if the Screensaver process is running. There...
4
by: Bill Nguyen | last post by:
How can I detect timezone and whether daylight saving is applied on a client PC/server using VB.NET? Thanks Bill
15
by: Eric Renken | last post by:
Is there something in System.Environment that can tell me if the program is running on a 64bit OS? What I am thinking is right now is to check the size of IntPtr and if it is 4 then it is 32bit,...
0
by: =?Utf-8?B?am1hZ2FyYW0=?= | last post by:
My program needs to do X when someone 'starts using' their Windows user account, and it should do Y when they 'stop using' their Windows user account. By 'starts using' I mean they log on, unlock...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.