?? Class Name - Help ??

  • Thread starter Thread starter nomaam
  • Start date Start date
N

nomaam

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.
 
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
 
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
 
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.
 
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
 
Back
Top