By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

?? Class Name - Help ??

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.