PC Review


Reply
Thread Tools Rate Thread

?? Class Name - Help ??

 
 
nomaam
Guest
Posts: n/a
 
      16th Jul 2004
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.

 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      16th Jul 2004
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


 
Reply With Quote
 
One Handed Man \( OHM - Terry Burns \)
Guest
Posts: n/a
 
      16th Jul 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
nomaam
Guest
Posts: n/a
 
      16th Jul 2004
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.

 
Reply With Quote
 
Sriram Krishnan
Guest
Posts: n/a
 
      17th Jul 2004
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" <(E-Mail Removed)> wrote in message
news:40f839ea$(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't specify a location for new class code file on class diagram>new class dialog? Andy B Microsoft C# .NET 3 14th Feb 2008 01:57 AM
call a mnuFileNew_Click method from a Main MDI class from another class (can be a MdiChild class.. )? M. G, Microsoft Dot NET Framework Forms 1 31st May 2006 06:28 AM
Can it possible redefine class with subclass when inherit base class with sub class? ABC Microsoft C# .NET 4 10th Jan 2006 11:13 PM
Pass an instantiated base class to a new class that inherits the same class -- Possible?? Brad Navarro Microsoft C# .NET 3 9th Jan 2004 01:07 AM
activex ,money tree dialer,RdxE Class,updaate class,YInstStarter Class damaged RUSSELL Windows XP Performance 1 23rd Nov 2003 02:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:19 AM.