View Single Post
Old July 10th, 2003, 10:19 AM
owain owain is offline
Friend of Wrox
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts

You could change the caption of the appropriate button when the tab is selected from "Update" to "&Update", and change all the other button caption's to "Update"

For example, if you have all 3 buttons in a control array cmdUpdate (cmdUpdate(0), cmdUpdate(1) etc.), you could do something like this:

cmbUpdate(0).Caption = "Update"
cmbUpdate(1).Caption = "Update"
cmbUpdate(2).Caption = "Update"

cmdUpdate(TabSelected).Caption = "&Update"
I hope that helps.

Owain Williams