asp question

  • Thread starter Thread starter matt shudy
  • Start date Start date
M

matt shudy

Hi,

I am trying to have the cursor in a text box all the
time... My roomie said in vb.net you can use a
Focus.BoxName...

Is there a way to do this with regular VB?

Thanks,

Matt Shudy
 
-----Original Message-----
Hi,
Howdy.

I am trying to have the cursor in a text box all the
time... My roomie said in vb.net you can use a
Focus.BoxName...

Is there a way to do this with regular VB?

Typically, you do this with JavaScript. The following
example makes sure that the cursor is always in the text
box T1 after the page loads.

<body onload="document.forms[0].T1.focus();">

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
thank you

matt shudy
-----Original Message-----
-----Original Message-----
Hi,
Howdy.

I am trying to have the cursor in a text box all the
time... My roomie said in vb.net you can use a
Focus.BoxName...

Is there a way to do this with regular VB?

Typically, you do this with JavaScript. The following
example makes sure that the cursor is always in the text
box T1 after the page loads.

<body onload="document.forms[0].T1.focus();">

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

instant messenger with asp 1
asp question 2
ASP question 34
redirecting using asp 2
Trying to store pics in a database... 3
asp help 2
upadting db 1
SQL help 1

Back
Top