PDA

View Full Version : Remove focus from web1


msw
03-01-2008, 08:59 AM
Does anyone know how to take the focus off the web page (ie) web1 and put focus on the items on the page. The problem being when I try to scroll on a list view or combo box the whole page scrolls even with scroll lock on
any solutions please ?

longedge
03-01-2008, 09:46 AM
Use Page.SetFocus. If you haven't got an object on the page that is capable of 'accepting' focus you could put a second 'dummy' 1x1pixel web object on there to use.

RizlaUK
03-01-2008, 03:09 PM
or you can use "Page.SetFocus("");" to set the focus back to the page (remove focus from all objects)