473,322 Members | 1,778 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,322 software developers and data experts.

Capturing a Window Title

The following code iterates through any process with the name
IEXPLORE. The property myProcess.MainWindowTitle incorrectly returns
an empty string for each item. The myProcess.id property correctly
returns a unique program identifier.

Is retrieving a window title a problem in asp.net?
Dim myProcesses() As Process
Dim myProcess As Process

myProcesses = Process.GetProcessesByName("IEXPLORE")
For Each myProcess In myProcesses
ListBox1.Items.Add("Title " & myProcess.MainWindowTitle)'Doesn't
Work
ListBox1.Items.Add("ID " & myProcess.id) 'Does Works
Next
Thank you,
Elliot Semmelman
Nov 18 '05 #1
2 1458
Because the ASP.NET process on the server doesn't have a window title - it's
just a service, after all. Are you attempting to access the window title on
the client? Your code behind runs on the server, not on the client.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Elliot" <es********@afgweb.com> wrote in message
news:e5**************************@posting.google.c om...
The following code iterates through any process with the name
IEXPLORE. The property myProcess.MainWindowTitle incorrectly returns
an empty string for each item. The myProcess.id property correctly
returns a unique program identifier.

Is retrieving a window title a problem in asp.net?
Dim myProcesses() As Process
Dim myProcess As Process

myProcesses = Process.GetProcessesByName("IEXPLORE")
For Each myProcess In myProcesses
ListBox1.Items.Add("Title " & myProcess.MainWindowTitle)'Doesn't
Work
ListBox1.Items.Add("ID " & myProcess.id) 'Does Works
Next
Thank you,
Elliot Semmelman

Nov 18 '05 #2
Because the ASP.NET process on the server doesn't have a window title - it's
just a service, after all. Are you attempting to access the window title on
the client? Your code behind runs on the server, not on the client.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Elliot" <es********@afgweb.com> wrote in message
news:e5**************************@posting.google.c om...
The following code iterates through any process with the name
IEXPLORE. The property myProcess.MainWindowTitle incorrectly returns
an empty string for each item. The myProcess.id property correctly
returns a unique program identifier.

Is retrieving a window title a problem in asp.net?
Dim myProcesses() As Process
Dim myProcess As Process

myProcesses = Process.GetProcessesByName("IEXPLORE")
For Each myProcess In myProcesses
ListBox1.Items.Add("Title " & myProcess.MainWindowTitle)'Doesn't
Work
ListBox1.Items.Add("ID " & myProcess.id) 'Does Works
Next
Thank you,
Elliot Semmelman

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg | last post by:
I want to be able to capture the user pressing Ctrl+S. I know that the IE browser has a key binding for Ctrl+S but is there any way that I can be notified of this key press anyway. I have found...
6
by: Robert Nurse | last post by:
Hi, Is it at all possible to capture and suppress the backspace key when focus is not on a form edit control? Basically, while the page is loading I don't want the user pressing the backspace...
15
by: Nayan | last post by:
Hi, Can anyone suggest working sample of capturing a window's picture? I tried a few, but couldn't get the image. I don't know why those functions are not getting the image. Note: I want the...
4
by: miha.vitorovic | last post by:
Hi all. I know this is more of a DOM question, but here it goes: Browser == Firefox suppose I have two frames. One has many links and is opening pages in the other one. I would like to check...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.