Close all but one tab.

I have a page control on my main form that gets its tabs populated
form from a frame this all works great I have a popup menu that give the user an option to free a single tab or all the tabs except the welcome tab (this doesn't work).

Heres what I have for code:

[color=Green]for iPage := 0 to PageControl1.PageCount - 1 do

On another note how can I prevent the same form being opened in a tab
multiple times.

Heres what I have for that"

[color=Green]i := 'AdminMain';
for iPage := 0 to co.PageControl1.PageCount - 1 do
if i = co.pagecontrol1.Pages[iPage].caption then[/color]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!