StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Subclass SF's control
Subclass SF's control
Post Reply
Like
0
Subclass SF's control
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
kkchan
kkchan
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
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
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Subclass SF's control
kkchan
-
17 Years Ago
Can you drop a LinkLabel from the StrataFrame Controls & Components...
StrataFrame Team
-
17 Years Ago
Hi,
I can drop Strataframe control to form without any problem,...
Chan
-
17 Years Ago
It might be a type editor problem. It might be easiest if you take the...
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
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search