473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Setting focus to textbox after clicking on multipage tab

I am new to this, and I haven't really done any programming in Access. I
was wondering if there is a way to open the second page of my multipage
form and have the focus set on my first textbox? Right now, of course the
focus is set on the tab and then I have to tab to the textbox. Can I click
on the tab and the focus be set to the textbox?

Thanks,

Lee

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #1
1 2499
On Wed, 09 Feb 2005 14:35:36 GMT, Lee Stafford via AccessMonster.com
<fo***@AccessMonster.com> wrote:
I am new to this, and I haven't really done any programming in Access. I
was wondering if there is a way to open the second page of my multipage
form and have the focus set on my first textbox? Right now, of course
the
focus is set on the tab and then I have to tab to the textbox. Can I
click
on the tab and the focus be set to the textbox?


Private Sub tabControl_Change()
If Me.tabControl.Value = 1 Then
Me.txtBox.SetFocus
Endif
End Sub
Darryl Kerkeslager
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mystery Man | last post by:
We have an MDI application that is not setting always setting focus to the newly corrected MDI. It is creating the form and it is the topmost but it does not have focus. The code we are using to...
2
by: Jesper | last post by:
Hi, I'm showing a usercontrol containing a textbox on the screen by clicking a notifyIcon in the taskpane. I use textBox.Focus() to set the focus for the texbox, and I also get a blinking...
4
by: Tim Meagher | last post by:
I am finding some odd behavior. When clicking in a textbox, I find that the focus is resorting to a different button on my web page, not to the textbox.. I would like the focus to remain on the...
18
by: Euphor2 | last post by:
I'm in school, taking a VB .NET 2003 course, and the teacher taught us how to use Sender.Focus() to return focus to the control from which focus was received. However, when I got home, and tried...
4
by: SJ | last post by:
Hi all, I have come across a weird problem when attempting to automatically set the focus in a vb.net form to a checkbox control... In my form I have (on a tab page in a tab control) several...
1
by: clickon | last post by:
For testing purposes i have got a 2 step WizardControl. Eqach step contains a text box, TextBox1 and TextBox2 respectively. If i put the following code in the respective activate event handlers...
3
by: BK | last post by:
I've created a small calculator that will pop up on demand within a form. The calculator is working fine, but I'm having a focus problem. The calculator looks almost identical to the Windows...
0
by: jonefer | last post by:
Can someone provide an example (vb.net) of how I can 1. set focus to a textbox during other events other than load for example - after clicking a certain button. 2. set a corresponding default...
0
by: gomzi | last post by:
Hi, I would like to know as to how one could set the textbox focus through code behind, as currently clicking on a link at the bottom doesn't make the textbox at the top of the page visible to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.