TabControl

0
0

Hello,

Is it possible to hide (or at least Disable) tabpages in a tabcontrol?

tabControl1.TabPages[1].Enabled = false;

tabControl1.TabPages[1].Visible= false;

tabControl1.TabPages[1].Width= 0;

Nothing seems to do the job.

Any idea?

  • You must to post comments
0
0

Sorry, my fault.

The property is called Hidden and it´s working fine:

TabPages[n].Hidden = true | false

Best regards
Frank

  • Ricardo Nogueiar
    Thanks! It checks. :) And what about the icons for the tabepages? How can i do ti in runtime?
  • Frank (ITG)
    Hi Ricardo, try e.g. this.tabControl1.TabPages[1].ImageSource = “icon-upload”; Best regards, Frank
  • You must to post comments
0
0

Hi Ricardo,

TabPages[n].Enable = false disables all controls on that tab page but still makes the page selectable.
The command you are searching for is TabPages[n].Hide(). But it seems there is a regression here.

I will log an issue and keep you updated.

Best regards
Frank

  • Ricardo Nogueiar
    Thanks Frank, I’ve tried the Hide method too, whith no luck. I’ll wait for you update.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.