Add tab page to tab control programatically

  • Thread starter Thread starter Dale Fye
  • Start date Start date
D

Dale Fye

I've been working with a tab control all day. This particular control is
being used to provide a variety of different details regarding a database I
am working with.

Unfortunately, I do not know how many tabs I will need for a particular
operation, so I would like to keep the number down to a reasonable level (3
or 4) in design view. However, I would like to be able to add additional
tabs to the control at run-time, if they do not already exist in sufficient
quantity.

Anyone know how to accomplish this?

Dale
 
Dale said:
I've been working with a tab control all day. This particular control is
being used to provide a variety of different details regarding a database I
am working with.

Unfortunately, I do not know how many tabs I will need for a particular
operation, so I would like to keep the number down to a reasonable level (3
or 4) in design view. However, I would like to be able to add additional
tabs to the control at run-time, if they do not already exist in sufficient
quantity.


No can do.

However, you can make them invisible until needed.

Me.tabCtl.Pages(2).Visible = True
 
Thanks Marshall.

Had that part figured out, but since I am unsure how many tabs I will need,
I was hoping I could start out with 3 or 4, and add programatically, if
needed. Oh, well. I guess I'll just build about 10 and see if that meets
my needs.


Thanks

Dale
 
Back
Top