Click here to Skip to main content
15,915,336 members
Home / Discussions / C#
   

C#

 
AnswerRe: TabControl on a WinForm without showing the Tab header? Pin
OriginalGriff12-May-09 2:13
mveOriginalGriff12-May-09 2:13 
AnswerRe: TabControl on a WinForm without showing the Tab header? Pin
syntax28uk12-May-09 3:14
syntax28uk12-May-09 3:14 
GeneralRe: TabControl on a WinForm without showing the Tab header? Pin
Michael Bookatz12-May-09 4:05
Michael Bookatz12-May-09 4:05 
GeneralRe: TabControl on a WinForm without showing the Tab header? Pin
OriginalGriff12-May-09 5:06
mveOriginalGriff12-May-09 5:06 
GeneralRe: TabControl on a WinForm without showing the Tab header? Pin
OriginalGriff12-May-09 5:15
mveOriginalGriff12-May-09 5:15 
GeneralRe: TabControl on a WinForm without showing the Tab header? Pin
syntax28uk12-May-09 6:15
syntax28uk12-May-09 6:15 
GeneralRe: TabControl on a WinForm without showing the Tab header? Pin
OriginalGriff12-May-09 8:13
mveOriginalGriff12-May-09 8:13 
AnswerRe: TabControl on a WinForm without showing the Tab header? PinPopular
Pyrrhon12-May-09 23:29
Pyrrhon12-May-09 23:29 
Try that derived class form TabControl. It simply overrides the DisplayRectangle and adds a ShowTab Property for your new TabControl class. Does it help you ?


public class MyTabControl : TabControl
    {
        public override Rectangle DisplayRectangle
        {
            get
            {
                if (showTabs)
                {
                    return base.DisplayRectangle;
                }
                else
                {
                    return new Rectangle(0, 0, Width, Height);
                }
            }
        }

        #region Properties
        private bool showTabs = true;
        [Category("Apparence"),
        Description("Indique si les onglets s'affichent."),
        DefaultValue(true)]
        public bool ShowTabs
        {
            get { return showTabs; }
            set
            {
                showTabs = value;
                RecreateHandle();
            }
        }
        #endregion
    }

GeneralRe: TabControl on a WinForm without showing the Tab header? Pin
syntax28uk13-May-09 3:32
syntax28uk13-May-09 3:32 
GeneralRe: TabControl on a WinForm without showing the Tab header? Pin
Pyrrhon13-May-09 4:43
Pyrrhon13-May-09 4:43 
QuestionHow to place user controls dynamically on a windows form Pin
Nekkantidivya12-May-09 1:11
Nekkantidivya12-May-09 1:11 
AnswerRe: How to place user controls dynamically on a windows form Pin
Christian Graus12-May-09 1:15
protectorChristian Graus12-May-09 1:15 
AnswerRe: How to place user controls dynamically on a windows form PinPopular
DaveyM6912-May-09 1:25
professionalDaveyM6912-May-09 1:25 
GeneralRe: How to place user controls dynamically on a windows form Pin
Michael Bookatz12-May-09 1:34
Michael Bookatz12-May-09 1:34 
GeneralRe: How to place user controls dynamically on a windows form Pin
Henry Minute12-May-09 1:57
Henry Minute12-May-09 1:57 
GeneralRe: How to place user controls dynamically on a windows form Pin
Rob Philpott12-May-09 4:20
Rob Philpott12-May-09 4:20 
GeneralRe: How to place user controls dynamically on a windows form [modified] Pin
DaveyM6912-May-09 5:02
professionalDaveyM6912-May-09 5:02 
AnswerRe: How to place user controls dynamically on a windows form Pin
tim_gunning12-May-09 1:26
tim_gunning12-May-09 1:26 
QuestionHow to make the property having listview type Pin
lnmca12-May-09 1:04
lnmca12-May-09 1:04 
AnswerRe: How to make the property having listview type PinPopular
Christian Graus12-May-09 1:17
protectorChristian Graus12-May-09 1:17 
General[Message Deleted] Pin
lnmca12-May-09 1:31
lnmca12-May-09 1:31 
GeneralRe: How to make the property having listview type Pin
Christian Graus12-May-09 1:37
protectorChristian Graus12-May-09 1:37 
GeneralRe: How to make the property having listview type Pin
Tom Deketelaere12-May-09 1:45
professionalTom Deketelaere12-May-09 1:45 
General[Message Deleted] Pin
lnmca12-May-09 2:03
lnmca12-May-09 2:03 
GeneralRe: How to make the property having listview type Pin
Christian Graus12-May-09 2:18
protectorChristian Graus12-May-09 2:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.