Subclass SF's control


Author
Message
kkchan
kkchan
StrataFrame Novice (96 reputation)StrataFrame Novice (96 reputation)StrataFrame Novice (96 reputation)StrataFrame Novice (96 reputation)StrataFrame Novice (96 reputation)StrataFrame Novice (96 reputation)StrataFrame Novice (96 reputation)StrataFrame Novice (96 reputation)StrataFrame Novice (96 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");

}

}

}

Reply
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
OK, for everyone having a problem with subclassing a control & killing VS when you drop it on a form, we've fixed the problem.  It only happened on controls that were ILocalizable because the LocalizationDesigner got itself into a loop while trying to get the designer actions for the control.  Took us a while to figure out where it was failing, but it's working now, so you'll need the latest version of the Extensiblity DLL in your GAC.  I've also included the 4 Core DLLs because they are versioned with this extensibility DLL.
Attachments
StrataFrame.zip (178 views, 2.00 MB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




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

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

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search