Click here to Skip to main content
15,885,244 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Document/view model in C#.. Pin
Heath Stewart23-Dec-03 3:08
protectorHeath Stewart23-Dec-03 3:08 
QuestionHow to program ActiveX control in .NET Pin
young_nacs22-Dec-03 14:11
young_nacs22-Dec-03 14:11 
AnswerRe: How to program ActiveX control in .NET Pin
Heath Stewart23-Dec-03 3:02
protectorHeath Stewart23-Dec-03 3:02 
Generalemulate console mode. Pin
Ray Gregory22-Dec-03 12:13
Ray Gregory22-Dec-03 12:13 
GeneralRe: emulate console mode. Pin
Heath Stewart23-Dec-03 2:54
protectorHeath Stewart23-Dec-03 2:54 
QuestionHow to know at any time the Shift or Control key up or down Pin
god4k22-Dec-03 11:49
god4k22-Dec-03 11:49 
AnswerRe: How to know at any time the Shift or Control key up or down Pin
Heath Stewart22-Dec-03 11:56
protectorHeath Stewart22-Dec-03 11:56 
QuestionHow to format an integer into a string? Pin
Larry Antram22-Dec-03 11:37
Larry Antram22-Dec-03 11:37 
AnswerRe: How to format an integer into a string? Pin
Heath Stewart22-Dec-03 11:52
protectorHeath Stewart22-Dec-03 11:52 
GeneralRe: How to format an integer into a string? Pin
Larry Antram22-Dec-03 11:55
Larry Antram22-Dec-03 11:55 

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.