# Giving Focus to a textbox

**URL:** <https://forum.kirupa.com/t/giving-focus-to-a-textbox/316150>\
**Category:** Uncategorized\
**Created:** [November 14, 2010, 11:07am UTC](https://forum.kirupa.com/t/giving-focus-to-a-textbox/316150 "2010-11-14T11:07:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoeson](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@shoeson](https://forum.kirupa.com/u/shoeson)\
**Post date:** [November 14, 2010, 11:07am UTC](https://forum.kirupa.com/t/giving-focus-to-a-textbox/316150/1 "2010-11-14T11:07:02Z")

</div>

hi there  
i have a list box and it contains about 50 textboxes arranged in a tabular fashion.  
the textboxes are represented by an array myTextBox[50].

what i wanted to do is to focus a particular textbox in the listbox.  
so what i did is

```auto
myTextBox[3].Focus()

```

to select the fourth textbox on the listbox.  
but it didnt work…the textbox was not focused…  
please help  
and i have set the tabnaviagtion of textbox to Local too…  
thanks
