Subclass SF's control


Author
Message
kkchan
kkchan
StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)StrataFrame Novice (52 reputation)
Group: Forum Members
Posts: 48, Visits: 97
Hi,

May I know anything wrong for code below?

I am facing problem VS.NET will exit automatically if I drop the control (derived from SF control) on form. However, if I changed to derived from standard control (System.WIndows.Forms) then is ok.



Any ideas?



using System;

using System.Collections.Generic;

using System.Text;



using MicroFour.StrataFrame.UI.Windows.Forms;

using System.Windows.Forms;



namespace JK.Framework.UI.Windows.Forms

{

public class LinkLabel : MicroFour.StrataFrame.UI.Windows.Forms.LinkLabel //System.Windows.Forms.LinkLabel //MicroFour.StrataFrame.UI.Windows.Forms.LinkLabel

{

protected override void OnLinkClicked(System.Windows.Forms.LinkLabelLinkClickedEventArgs e)

{

base.OnLinkClicked(e);

this.HandleClicked();



}



protected void HandleClicked()

{

MessageBox.Show("Clickedaa");

}

}

}

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
kkchan - 17 Years Ago
StrataFrame Team - 17 Years Ago
Chan - 17 Years Ago
StrataFrame Team - 17 Years Ago
                     Sorry, I really can't make it after trying and trying.

I...
Chan - 17 Years Ago
                         Hi,
I tried to create an derived label (mylabel) based on...
Chan - 17 Years Ago
                         BTW, I am using C#, therefore I cant copy the source code from SF and...
Chan - 17 Years Ago
                             You need to add a few "using" statements to the top of your subclassed...
StrataFrame Team - 17 Years Ago
                                 OK, for everyone having a problem with subclassing a control & killing...
StrataFrame Team - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search