I am starting to dislike tabpages more and more but in some cases it just makes so much sense to use them. I am playing around with some other options that look pretty nice too.
I'll post some other code tomorrow, this time it is a button subclass, but I have to simplify a button subclass and test it in both 1.1 and 2.0 first. Right now I see different behaviour in 2.0 compared to 1.1.
But now I've got to debug a dataset issue that popped up that I didn't expect (hmm I guess if I did expect it then it wouldn't be an issue <bg>)
Einar
>Einar,
>
>No, the "red" was definitely from me. I've never used "blue". <s>
>
>But, yeah, I have 2.0 loaded on my home desktop computer. I can test some stuff if you post code (although I won't be working home tomorrow, I'll be at the office, so I can't test anything 'til I get home).
>
>I haven't used TabPages, so I doubt if I'd be able to see anything jumping out at me. But, if I get a chance later tonite (or maybe tomorrow night), I'll try it out on my 2.0 machine and see what I can see.
>
>~~Bonnie
>
>
>
>>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.