Bonnie,
I was hoping you would see my post. You always seems to solve my "issues" <s>.
If mamory serves me correctly I think it wasn't a "red" idea I got from you but rather a very nice "light blue" idea (or maybe it was from Kevin or maybe Kevin got it from you and I got it from Kevin <bg>) If that doesn't make any sense to you well then I totally missed the point LMAO now I am not making any sense to myself.
I will post more of my subclassing issues tomorrow morning (I am in the middle of something else right now and I don't want to loose my train of thoughts). It appears that relatively simple subclassing techniques (that I think are good) do not work the same way in 2.0 as they did (does) in 1.1,
Do you have 2.0 so you can test if I post some code?
Did you look at the tabpage code in the original post? Can your skillled eyes see anything odd?
Later,
Einar
>Einar,
>
>
I am running into all sorts of sub-classing "issues" with 2.0 which is really frustrating because I only use subclassed stuff in my apps.>
>Wow, I guess I need to start messing with this more. I'm pretty sure you got the "red" idea from me and I sure hope I don't start running into "issues" ... what kind of "issues" have you encountered? I will be getting into 2.0 pretty heavily starting in April.
>
>~~Bonnie
>
>
>>Don't scratch it. Please let me know your idea, it might set off some more ideas. I am running into all sorts of sub-classing "issues" with 2.0 which is really frustrating because I only use subclassed stuff in my apps.
>>
>>>I had an idea, but am scratching it.
>>>
>>>
>>>>I have subclassed the TabPage control (see code further down). This code worked just fine in VS2003, but in VS2005 it doesn't work as expected (i.e. my tabpages are not red)
>>>>
>>>>OK here is my code for my subclassed tabpage:
>>>>
>>>>using System;
>>>>using System.Collections;
>>>>using System.ComponentModel;
>>>>using System.Drawing;
>>>>using System.Windows.Forms;
>>>>
>>>>namespace WindowsApplication19
>>>>{
>>>> class myTabPage : System.Windows.Forms.TabPage
>>>> {
>>>> private System.ComponentModel.IContainer components = null;
>>>> > public override Color BackColor
>>>> {
>>>> get { return base.BackColor; }
>>>> set { ; }
>>>> }
>>>>
>>>> public myTabPage()
>>>> {
>>>> InitializeComponent();
>>>> base.BackColor = Color.Red;
>>>> }
>>>>
>>>> protected override void Dispose( bool disposing )
>>>> {
>>>> if( disposing )
>>>> {
>>>> if (components != null)
>>>> {
>>>> components.Dispose();
>>>> }
>>>> }
>>>> base.Dispose( disposing );
>>>> }
>>>>
>>>> private void InitializeComponent()
>>>> {
>>>> this.SuspendLayout();
>>>> this.ResumeLayout(false);
>>>> }
>>>> }
>>>>}
>>>>
>>>>
>>>>(someone might feel the need to comment that I should not make the backcolor bright red, but this is simply an example <s>)
>>>>
>>>>Any clue about what I am doing wrong?
Semper ubi sub ubi.