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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSTab

Status
Not open for further replies.

fheyn

Programmer
Mar 22, 2001
198
DE
Hi,
using SSTab, how do I add a control to a specific tab at
runtime?
 
fheyn,
Let us assume you need to add a command button to the specific tab. In order to do it you may employ the following technique:

1. At design time, add invisible command1(0) command button as a first element of the array to that specific tab.

2. At run time, utilize this code:

Load Command1(1)
Command1(1).Visible = True

This tehcnique relies on control arrays. There is another technique available that relies on control collection.

Vladk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top