deleting a tab control

Steve_ContrisSteve_Contris Member Posts: 114
Is there a way to make one of the tab controls on a form invisible or disabled without removing all the controls on it?
What would Elvis do?

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    No,

    If you want to preserve the orriginal form you can either save it to new form or export it to a fob.
  • Steve_ContrisSteve_Contris Member Posts: 114
    thanks Mark
    What would Elvis do?
  • themavethemave Member Posts: 1,058
    I agree you can't make the whole tab invisable, but you can disable or hide the controls on it. And almost make it apear as if it is not there.

    set the "Visable" property of each control on the tab to "No", and set the "Enabled" property to "No"

    they will all still be there, but you won't see anything, the tab will appear to be blank

    Then set the tab page name to be a blank space, nothing will appear on the tab, and if it is the last one on the list it will appear as if it doesn't exist.
  • Steve_ContrisSteve_Contris Member Posts: 114
    That does come pretty close - I might see if that will make the people that are requesting this happy. I would rather not have to save off a copy of the form
    What would Elvis do?
  • krikikriki Member, Moderator Posts: 9,118
    themave wrote:
    set the "Visable" property of each control on the tab to "No", and set the "Enabled" property to "No"
    No need to also set the "Enabled"="No". "Visible"=No is enough.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • sggsgg Member Posts: 109
    themave wrote:
    set the "Visable" property of each control on the tab to "No", and set the "Enabled" property to "No"

    I agree. you could also add a FRAME Control to the TAB. Then put all the controls Inside the Frame. Set the "ShowCaption" Property of the TAB to NO

    That way, you set the "Visible" Property for the FRAME instead of All the Controls on the TAB.

    This is useful if you have MANY controls on the TAB.
    Sunday, Godwin G
Sign In or Register to comment.