Click here to Skip to main content
15,921,959 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help - Send a File via Socket Pin
FlyOnIT8-Oct-06 8:52
FlyOnIT8-Oct-06 8:52 
Questionmicrosoft agent Pin
Mohammed Elkholy7-Oct-06 5:19
Mohammed Elkholy7-Oct-06 5:19 
QuestionHow do I submit a book review? Pin
Wolf927-Oct-06 5:12
Wolf927-Oct-06 5:12 
QuestionHelp Parsing HTML/String Pin
UFGrayMatter7-Oct-06 4:02
UFGrayMatter7-Oct-06 4:02 
AnswerRe: Help Parsing HTML/String Pin
Guffa7-Oct-06 11:49
Guffa7-Oct-06 11:49 
GeneralRe: Help Parsing HTML/String Pin
UFGrayMatter7-Oct-06 11:57
UFGrayMatter7-Oct-06 11:57 
AnswerRe: Help Parsing HTML/String Pin
Guffa7-Oct-06 12:16
Guffa7-Oct-06 12:16 
QuestionInheriting from the tabcontrol Pin
thepersonof7-Oct-06 3:01
thepersonof7-Oct-06 3:01 
Hi I have I a class that inherits from TabConrol called MyControl. I have a class that inherits from TabPage called MyTabPage, as below:

(heavily simplified)
class MyTabControl:TabControl<br />
    {<br />
        protected override void OnKeyDown(System.Windows.Forms.KeyEventArgs ke)<br />
        {<br />
            (this.SelectedTab as MyTabPage).PanelContained.KDown(ke);<br />
            base.OnKeyDown(ke);<br />
        }<br />
    }<br />
 class MyTabPage : TabPage<br />
    {<br />
        private MyPanel panelContained;<br />
        public MyPanel PanelContained{<br />
            get { return panelContained; }<br />
            set { panelContained = value; }<br />
        }<br />
    }


How can I override SelectedTab to return a MyTabPage? If I add a MyTabPage and change the panelcontained property, this is null again when I convet it back from SelectedTab.

Seeing as it inherits from TabControl is there a nice way to make it so that I can convert it back into a MyTabPage without losing the added property?



cheeers
AnswerRe: Inheriting from the tabcontrol Pin
Captain See Sharp7-Oct-06 4:12
Captain See Sharp7-Oct-06 4:12 
GeneralRe: Inheriting from the tabcontrol Pin
thepersonof13-Oct-06 10:48
thepersonof13-Oct-06 10:48 
QuestionFiles in folder Pin
Mohammed Elkholy7-Oct-06 2:48
Mohammed Elkholy7-Oct-06 2:48 
AnswerRe: Files in folder Pin
DownBySpj7-Oct-06 3:06
DownBySpj7-Oct-06 3:06 
QuestionRaising events in C# Pin
Mahhouraaaaaa7-Oct-06 1:44
Mahhouraaaaaa7-Oct-06 1:44 
AnswerRe: Raising events in C# Pin
Captain See Sharp7-Oct-06 4:02
Captain See Sharp7-Oct-06 4:02 
QuestionGet time Pin
mehrdadc487-Oct-06 1:39
mehrdadc487-Oct-06 1:39 
Questiongetting error code Pin
DownBySpj7-Oct-06 1:28
DownBySpj7-Oct-06 1:28 
AnswerRe: getting error code Pin
Guffa7-Oct-06 1:55
Guffa7-Oct-06 1:55 
QuestionHow to Convert This Code to C# ? Pin
hdv2127-Oct-06 1:00
hdv2127-Oct-06 1:00 
AnswerRe: How to Convert This Code to C# ? Pin
Aashutoshkumar7-Oct-06 1:12
Aashutoshkumar7-Oct-06 1:12 
Questionsend mail Pin
vivek.s.vivek6-Oct-06 23:24
vivek.s.vivek6-Oct-06 23:24 
AnswerRe: send mail Pin
Rajesh_K_Sharma7-Oct-06 9:12
Rajesh_K_Sharma7-Oct-06 9:12 
QuestionFormBoardStyle Pin
ShadowRayz6-Oct-06 19:27
ShadowRayz6-Oct-06 19:27 
AnswerRe: FormBoardStyle Pin
Amar Chaudhary6-Oct-06 19:53
Amar Chaudhary6-Oct-06 19:53 
GeneralRe: FormBoardStyle Pin
leppie6-Oct-06 23:31
leppie6-Oct-06 23:31 
QuestionIterate over cells in DataGridViewColumn Pin
drinkingbird6-Oct-06 17:42
drinkingbird6-Oct-06 17:42 

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.