Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: tracking user behavior Pin
Nick Parker24-Dec-03 12:57
protectorNick Parker24-Dec-03 12:57 
GeneralRe: tracking user behavior Pin
Heath Stewart27-Dec-03 4:25
protectorHeath Stewart27-Dec-03 4:25 
GeneralRe: tracking user behavior Pin
Newbie128-Dec-03 22:07
Newbie128-Dec-03 22:07 
GeneralRe: tracking user behavior Pin
Heath Stewart29-Dec-03 3:45
protectorHeath Stewart29-Dec-03 3:45 
GeneralRe: tracking user behavior Pin
Newbie15-Jan-04 19:50
Newbie15-Jan-04 19:50 
GeneralAsp.net webserver Pin
jnngill23-Dec-03 8:15
jnngill23-Dec-03 8:15 
GeneralRe: Asp.net webserver Pin
leppie23-Dec-03 8:49
leppie23-Dec-03 8:49 
GeneralProtect C# Source Code Pin
Razer23-Dec-03 5:40
Razer23-Dec-03 5:40 
GeneralRe: Protect C# Source Code Pin
Mike Ellison23-Dec-03 5:58
Mike Ellison23-Dec-03 5:58 
GeneralRe: Protect C# Source Code Pin
jconwell23-Dec-03 7:48
jconwell23-Dec-03 7:48 
GeneralRe: Protect C# Source Code Pin
Heath Stewart23-Dec-03 9:25
protectorHeath Stewart23-Dec-03 9:25 
GeneralRe: Protect C# Source Code Pin
Nick Seng23-Dec-03 14:35
Nick Seng23-Dec-03 14:35 
GeneralFile masks Pin
Guinness4Strength23-Dec-03 3:38
Guinness4Strength23-Dec-03 3:38 
GeneralRe: File masks Pin
Heath Stewart23-Dec-03 5:00
protectorHeath Stewart23-Dec-03 5:00 
GeneralRe: File masks Pin
Guinness4Strength24-Dec-03 3:41
Guinness4Strength24-Dec-03 3:41 
GeneralRe: File masks Pin
Broken God25-Dec-03 8:40
Broken God25-Dec-03 8:40 
Generalchange tab control bg color Pin
hazzem elrefai23-Dec-03 2:42
hazzem elrefai23-Dec-03 2:42 
GeneralRe: change tab control bg color Pin
Heath Stewart23-Dec-03 3:18
protectorHeath Stewart23-Dec-03 3:18 
You'll have to handle painting yourself since TabControl.BackColor always returns SystemColors.Control. You'll have to extend TabControl with your own class and override OnPaint to do so. There should be several articles here on CP ( I knew of a good one, but the bastard went commercial and pulled all his articles off CP after he got all our free help and beta testing! Mad | :mad: )

Why is this so hard? Because almost every control in System.Windows.Forms is just a wrapper for its Windows Common Controls equivalent where such details are often abstracted or don't fit the .NET pattern at all times. It is possible, though. I used a similar approach to override the painting for the actual TagPages in order to make them use the Theme API (for Visual Styles) correctly (they don't by default).

[EDIT]
Note: this is only for the TabControl itself. To paint the TabPages, see the next message I posted (memory slipped!).
[/EDIT]

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: change tab control bg color Pin
Heath Stewart23-Dec-03 3:26
protectorHeath Stewart23-Dec-03 3:26 
GeneralIE Toolbar (Band) Pin
Morten Kristensen23-Dec-03 1:32
Morten Kristensen23-Dec-03 1:32 
GeneralRe: IE Toolbar (Band) Pin
Heath Stewart23-Dec-03 3:13
protectorHeath Stewart23-Dec-03 3:13 
GeneralRe: IE Toolbar (Band) Pin
Morten Kristensen23-Dec-03 3:38
Morten Kristensen23-Dec-03 3:38 
GeneralRe: IE Toolbar (Band) Pin
Heath Stewart23-Dec-03 4:02
protectorHeath Stewart23-Dec-03 4:02 
GeneralRe: IE Toolbar (Band) Pin
Morten Kristensen23-Dec-03 4:21
Morten Kristensen23-Dec-03 4:21 
GeneralDocument/view model in C#.. Pin
hammackj22-Dec-03 15:20
hammackj22-Dec-03 15:20 

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.