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

C#

 
QuestionBackColor [modified] Pin
half-life6-Nov-07 2:28
half-life6-Nov-07 2:28 
AnswerRe: BackColor Pin
Michael Sync6-Nov-07 3:34
Michael Sync6-Nov-07 3:34 
GeneralRe: BackColor Pin
half-life6-Nov-07 3:47
half-life6-Nov-07 3:47 
AnswerRe: BackColor Pin
Christian Wikander6-Nov-07 3:37
Christian Wikander6-Nov-07 3:37 
GeneralRe: BackColor Pin
half-life6-Nov-07 3:45
half-life6-Nov-07 3:45 
GeneralRe: BackColor Pin
Anthony Mushrow6-Nov-07 3:57
professionalAnthony Mushrow6-Nov-07 3:57 
GeneralRe: BackColor Pin
half-life6-Nov-07 5:28
half-life6-Nov-07 5:28 
AnswerRe: BackColor Pin
Christian Wikander6-Nov-07 3:57
Christian Wikander6-Nov-07 3:57 
Though not stripes, I threw this example together. You can paint anything in OnPaintBackground.

<br />
        Color m_Color1 = Color.Red, m_Color2 = Color.Black;<br />
<br />
        public Color Color1<br />
        {<br />
            get { return m_Color1; }<br />
            set { m_Color1 = value; }<br />
        }<br />
<br />
        public Color Color2<br />
        {<br />
            get { return m_Color2; }<br />
            set { m_Color2 = value; }<br />
        }<br />
<br />
        protected override void OnPaintBackground(PaintEventArgs e)<br />
        {<br />
            Brush brush = new System.Drawing.Drawing2D.LinearGradientBrush(new Point(e.ClipRectangle.Left, e.ClipRectangle.Top), new Point(e.ClipRectangle.Right, e.ClipRectangle.Bottom), m_Color1, m_Color2);<br />
            e.Graphics.FillRectangle(brush, e.ClipRectangle);<br />
        }<br />

GeneralRe: BackColor Pin
half-life6-Nov-07 5:25
half-life6-Nov-07 5:25 
QuestionTabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 1:09
half-life6-Nov-07 1:09 
AnswerRe: TabPage (Or - What's Wrong With that Control??) Pin
Anthony Mushrow6-Nov-07 1:14
professionalAnthony Mushrow6-Nov-07 1:14 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 1:31
half-life6-Nov-07 1:31 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
Nagy Vilmos6-Nov-07 1:57
professionalNagy Vilmos6-Nov-07 1:57 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 2:31
half-life6-Nov-07 2:31 
AnswerRe: TabPage (Or - What's Wrong With that Control??) Pin
Tamimi - Code6-Nov-07 3:46
Tamimi - Code6-Nov-07 3:46 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 5:23
half-life6-Nov-07 5:23 
AnswerRe: TabPage (Or - What's Wrong With that Control??) Pin
snorkie6-Nov-07 4:59
professionalsnorkie6-Nov-07 4:59 
GeneralRe: TabPage (Or - What's Wrong With that Control??) Pin
half-life6-Nov-07 5:19
half-life6-Nov-07 5:19 
QuestionFile Creation Time Pin
telha6-Nov-07 1:02
telha6-Nov-07 1:02 
AnswerRe: File Creation Time Pin
Anthony Mushrow6-Nov-07 1:17
professionalAnthony Mushrow6-Nov-07 1:17 
AnswerRe: File Creation Time Pin
Rob Philpott6-Nov-07 1:18
Rob Philpott6-Nov-07 1:18 
QuestionTextBox validating e.cancel=true does not cancel button event Pin
fracalifa6-Nov-07 0:48
fracalifa6-Nov-07 0:48 
AnswerRe: TextBox validating e.cancel=true does not cancel button event Pin
telha6-Nov-07 1:07
telha6-Nov-07 1:07 
AnswerRe: TextBox validating e.cancel=true does not cancel button event Pin
Nagy Vilmos6-Nov-07 1:25
professionalNagy Vilmos6-Nov-07 1:25 
GeneralRe: TextBox validating e.cancel=true does not cancel button event Pin
fracalifa6-Nov-07 3:00
fracalifa6-Nov-07 3:00 

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.