473,779 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Capturing a Window Title

The following code iterates through any process with the name
IEXPLORE. The property myProcess.MainW indowTitle 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.GetProc essesByName("IE XPLORE")
For Each myProcess In myProcesses
ListBox1.Items. Add("Title " & myProcess.MainW indowTitle)'Doe sn't
Work
ListBox1.Items. Add("ID " & myProcess.id) 'Does Works
Next
Thank you,
Elliot Semmelman
Nov 18 '05 #1
2 1475
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********@afg web.com> wrote in message
news:e5******** *************** ***@posting.goo gle.com...
The following code iterates through any process with the name
IEXPLORE. The property myProcess.MainW indowTitle 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.GetProc essesByName("IE XPLORE")
For Each myProcess In myProcesses
ListBox1.Items. Add("Title " & myProcess.MainW indowTitle)'Doe sn'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********@afg web.com> wrote in message
news:e5******** *************** ***@posting.goo gle.com...
The following code iterates through any process with the name
IEXPLORE. The property myProcess.MainW indowTitle 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.GetProc essesByName("IE XPLORE")
For Each myProcess In myProcesses
ListBox1.Items. Add("Title " & myProcess.MainW indowTitle)'Doe sn'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
4973
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 tons of examples of capturing keys in IE but *none* of them work for capturing Ctrl+S, Ctrl+F, Ctrl+P,etc or any key combination that has a binding in IE. Does anyone know how to do this?
6
15602
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 key which IE interprets as a desire to return to the previous page. Thanks
15
9745
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 snapshot of the window even when it's not visible. And, I work in "C#". An example: http://www.developerfusion.co.uk/show/4630/
4
1588
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 if the page is finished loading. This is the example of the "links" frame. ----
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10302
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10136
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.