473,396 Members | 2,018 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,396 software developers and data experts.

?? Class Name - Help ??

How can i find out the class name of a text box within internet
explorer?

I am following a tutorial and this is the step i am having problems
with:

---------------------------------------------------------
lpsz1 refers to the classname of the current window you are trying to
find. So in our example (notepad), the textbox that I am typing in
right now is called "Edit". 90% of the textboxes you see are "Edit",
yet rich textboxes are not "Edit" There is no need to sweat class
names because an API SPY gets them for you!
----------------------------------------------------------

The API SPY program that i got down will not identify the class name
of a text box within Internet Explorer.

Any ideas would be great.

thanks.

Nov 20 '05 #1
4 1220
Hi Nomaam

When it is not an inherited textbox the classname is always *textbox*, or do
you mean the object name? When it is the classname I am curious why.

I hope this helps?

Cor
Nov 20 '05 #2
I'm not sure exactly what you are trying to do here. It's not clear if you
are using ASp.NET and are trying to determine the servercontrol class type
or if you are using a simple html page.

For example, a simple Text field in HTML would render like this.

<INPUT id="Text1" type="text" name="Text1">
Can you be more specific.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"nomaam" <te***********@hotmail-dot-com.no-spam.invalid> wrote in message
news:40********@Usenet.com...
How can i find out the class name of a text box within internet
explorer?

I am following a tutorial and this is the step i am having problems
with:

---------------------------------------------------------
lpsz1 refers to the classname of the current window you are trying to
find. So in our example (notepad), the textbox that I am typing in
right now is called "Edit". 90% of the textboxes you see are "Edit",
yet rich textboxes are not "Edit" There is no need to sweat class
names because an API SPY gets them for you!
----------------------------------------------------------

The API SPY program that i got down will not identify the class name
of a text box within Internet Explorer.

Any ideas would be great.

thanks.

Nov 20 '05 #3
thanks for the replies.

i am useing VB.NET, and i am working within a windows form.

what i'm trying to do is send keystrokes to a certain field within a
webpage in Internet Explorer. then check the value of that field and
see if the keys have been sent properly.

one tutorial that i am following suggests useing 'sendmessage' to send
the keys, and 'findwindow' to find the field withina certian
application. it says that each text field will have a class name that
you have to specify. ie: in notepad the area where you type text has a
class name of "edit".

i was wondering how would you identify the class name of a field
within a webpage in Internet Eplorer? or does each field even have a
unique class name?

if anyone knows of a better way of sending keys to a webpage field and
checking the value of that field affter i would appreciate any
suggestions.

thanks.

Nov 20 '05 #4
Hmm..isn't there any way to access the DOM of a currently open IE Window?
That might be the easiest way to do it - but I'm not sure whether that is
possible

--
Sriram Krishnan
Microsoft Student Ambassador
http://www.dotnetjunkies.com/weblog/sriram
"nomaam" <te***********@hotmail-dot-com.no-spam.invalid> wrote in message
news:40**********@Usenet.com...
thanks for the replies.

i am useing VB.NET, and i am working within a windows form.

what i'm trying to do is send keystrokes to a certain field within a
webpage in Internet Explorer. then check the value of that field and
see if the keys have been sent properly.

one tutorial that i am following suggests useing 'sendmessage' to send
the keys, and 'findwindow' to find the field withina certian
application. it says that each text field will have a class name that
you have to specify. ie: in notepad the area where you type text has a
class name of "edit".

i was wondering how would you identify the class name of a field
within a webpage in Internet Eplorer? or does each field even have a
unique class name?

if anyone knows of a better way of sending keys to a webpage field and
checking the value of that field affter i would appreciate any
suggestions.

thanks.

Nov 20 '05 #5

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

Similar topics

6
by: Brian Jones | last post by:
I'm sure the solution may be obvious, but this problem is driving me mad. The following is my code: class a(object): mastervar = def __init__(self): print 'called a'
21
by: Jon Slaughter | last post by:
I have a class that is basicaly duplicated throughout several files with only members names changing according to the class name yet with virtually the exact same coding going on. e.g. class...
0
by: keith bannister via .NET 247 | last post by:
(Type your message here) -------------------------------- From: keith bannister Hi, I'm new to .net (as of last week) but here goes. I want to serialize/deserialize a file the conforms...
5
by: Keith Bannister | last post by:
I'm new to .net so here goes. I'm tying to deserialize a class that is associated with an XML schema. I created the C# class with xsd.exe as below: xsd.exe /c /n:somenamespace...
5
by: Andy | last post by:
Hi all, I have a site with the following architecture: Common.Web.dll - Contains a CommonPageBase class which inherits System.Web.UI.Page myadd.dll - Contains PageBase which inherits...
5
by: Joe Van Dyk | last post by:
Say I have the following class: using std::string; class Player { public: Player() : name(""), age(""), other_stuff("") {} private: string name; string age;
11
by: Darren.Ratcliffe | last post by:
Hi guys Posted what was probably a rather confusing post about this the other day, so I am going to have another go and see if I can make more sense. This sis purely a I've got a base class...
10
by: telesphore4 | last post by:
I want to inherit fresh copies of some class variables. So I set up a metaclass and meddle with the class variables there. Now it would be convenient to run thru a dictionary rather than...
5
by: alan | last post by:
Hello world, I'm wondering if it's possible to implement some sort of class/object that can perform mapping from class types to strings? I will know the class type at compile time, like so:...
11
by: Rafe | last post by:
Hi, I'm working within an application (making a lot of wrappers), but the application is not case sensitive. For example, Typing obj.name, obj.Name, or even object.naMe is all fine (as far as...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.