Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

Tabs overriding focus statements.

$
0
0
Using VB 2010 Express, my focus statements are seemingly being overridden by my tab index (or ignored) in my program. When I have to return to a control on the form and have coded a focus statement to a control, the focus still goes on to the next control in the tab index sequence without regard to the focus statement. I was under the impression that the programmed Focus() statements override the tab index order, but that does not seem to be happening. Assuming that the tab index is the problem, is there some way of programmatic overriding it so that my program responds to my focus statements in the code?

I have considered trying something like this to reorder the tabs when relevant to the program:
VB Code:
  1. 'Declaration
  2. Public Property Tabindex As Integer
  3.  
  4. 'Set the control's Tabindex and TabStop properties
  5. TextBox1.Tabindex = 1
  6. TextBox1.TabStop = True

Or am I barking up the wrong tree entirely?

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>