Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab control: on click events

Status
Not open for further replies.

lachesis

Technical User
Sep 25, 2002
138
NZ
I have a problem with the behaviour of the OnClick event in a tab control. I'm not familiar with tab controls at all - this is the first one I've used.

The main problem I encounter is that I can't get the OnClick event to function on the visible "tab" portion of the control? Am i missing something?

L.
 
lachesis,
use the OnChange Event for the Tab Control, not the OnClick Event for the Tab Page. You can then test which Tab Page has been chosen.

By the way, this has been answered before quite recently. Did you do a search?
 
Thanks will try that.

And YES (... must ... get ... cofffeeee) I did a search. It's just a shame some of the subject lines are so obscure, the search engine ends up some anonymous looking posts.

cheers
L.
 
Anyone know how to scroll a list control to the row index of the 'first' selected value??

For example, a list with 200 items:

Selected items at row# 99, 140, 150, 155

[red]
rowIdx = 99 ' item to scroll to
ctlListName.Selected(rowIdx) = True
' some code here to
' force ctlListName to scroll down
' & put rowIdx at the top of the control
...
[/red]

cheers
L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top