Click here to Skip to main content
15,914,221 members
Home / Discussions / C#
   

C#

 
GeneralRe: Setting mouse position using C# Pin
Philip Fitzsimons27-Jan-03 6:12
Philip Fitzsimons27-Jan-03 6:12 
GeneralCalling DLL File In C# Pin
mo7amed27-Jan-03 4:13
mo7amed27-Jan-03 4:13 
GeneralRe: Calling DLL File In C# Pin
Nick Parker27-Jan-03 5:27
protectorNick Parker27-Jan-03 5:27 
GeneralRe: Calling DLL File In C# Pin
Dato27-Jan-03 8:23
Dato27-Jan-03 8:23 
QuestionCalling COM DLL From C#? Bad idea ? Pin
Dato27-Jan-03 4:07
Dato27-Jan-03 4:07 
AnswerRe: Calling COM DLL From C#? Bad idea ? Pin
Nick Parker27-Jan-03 5:30
protectorNick Parker27-Jan-03 5:30 
GeneralCrippled WNDPROC Pin
Roger Alsing27-Jan-03 3:54
Roger Alsing27-Jan-03 3:54 
GeneralRe: Crippled WNDPROC Pin
Jeff J27-Jan-03 11:59
Jeff J27-Jan-03 11:59 
GeneralVB.Net code to C#.Net code Pin
Firas Rashid27-Jan-03 3:38
Firas Rashid27-Jan-03 3:38 
GeneralRe: VB.Net code to C#.Net code Pin
Philip Fitzsimons27-Jan-03 6:12
Philip Fitzsimons27-Jan-03 6:12 
GeneralCannot access a disposed object Pin
arkr26-Jan-03 20:18
arkr26-Jan-03 20:18 
GeneralRe: Cannot access a disposed object Pin
SimonS26-Jan-03 21:12
SimonS26-Jan-03 21:12 
GeneralRe: Cannot access a disposed object Pin
arkr27-Jan-03 19:29
arkr27-Jan-03 19:29 
GeneralRe: Cannot access a disposed object Pin
SimonS28-Jan-03 21:05
SimonS28-Jan-03 21:05 
Generalvalidating xml file entered by user. Pin
chito26-Jan-03 18:53
chito26-Jan-03 18:53 
QuestionLoading PCX Image in C#? Pin
Shock The Dark Mage26-Jan-03 14:53
Shock The Dark Mage26-Jan-03 14:53 
GeneralManaged DirectX Assemblies Pin
Heath Stewart26-Jan-03 11:41
protectorHeath Stewart26-Jan-03 11:41 
GeneralVS.NET vs. aximp Pin
Paul Riley26-Jan-03 8:13
Paul Riley26-Jan-03 8:13 
GeneralRe: VS.NET vs. aximp Pin
Stephane Rodriguez.26-Jan-03 8:25
Stephane Rodriguez.26-Jan-03 8:25 
GeneralRe: VS.NET vs. aximp Pin
Paul Riley26-Jan-03 10:32
Paul Riley26-Jan-03 10:32 
GeneralRe: VS.NET vs. aximp Pin
Heath Stewart26-Jan-03 11:33
protectorHeath Stewart26-Jan-03 11:33 
QuestionSimilar function as WindowFromPoint in .NET ? Pin
Wizard_0126-Jan-03 3:03
Wizard_0126-Jan-03 3:03 
AnswerRe: Similar function as WindowFromPoint in .NET ? Pin
leppie26-Jan-03 3:59
leppie26-Jan-03 3:59 
GeneralProblems with TabControl & XP Visual Styles Pin
Furty25-Jan-03 20:17
Furty25-Jan-03 20:17 
I'm sure that others have noticed this behaviour, but I have searched all over for a resolution to no avail, so I'll post it here.

When using windows XP visual styles (via manifest file) with a TabControl there are numerous display issues.

The most well-known is the fact that the TabPage background is not correctly painted with the WinXP gradient - this I actually don't care about as my tab pages are filled with either listviews or picture boxes, so the background is irrelevant. This issue has of course been addressed here on the CP already.

The major problem for me is that of you select anything other than a top alignment for your tabpages in conjunction with using winXP visual styles the tabs themselves are drawn totally messed up, along with the text on tabs mysteriously dissapearing.

The app I am developing is heavily reliant on tabcontrols, using a mixture of regular (align=top) controls, with a few left-aligned tabcontrols. Resorting the top-aligned controls throughout will simply waste far too much desktop space, so is not an option.

So here's where I'm at - it's either ditch WinXP visuals, or draw the tabs myself. I really don't want to have to resort to losing the XP look, so drawing the tabs myself is the way I'd like to go. The problem with this is that I simply cannot find an overridable method that allows me to paint the actual tabs (painting the tabpages is no problem), and at this stage the thought of writing my own TabControl from scratch is almost enough to make me turn to the drink.

Can anyone help?
GeneralRe: Problems with TabControl & XP Visual Styles Pin
leppie25-Jan-03 20:27
leppie25-Jan-03 20:27 

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.