Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
General Discussion
»
C# Winform example with property pages
C# Winform example with property pages
Post Reply
C# Winform example with property pages
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Jarrett Robertson
Jarrett Robertson
posted 12 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 12,
Visits: 1
In the examples->All Examples->User Interface->Editors available at runtime you show a property page that has line properties that launch the NStrokeStyleTypeEditor. When I looked at the source code it doesn't show the property pages. Is there a way for me to achieve this same effect of embedding that form? I tried the standard way of using property pages but I wasn't able to get it to work.
Any help would be appreciated.
Reply
Like
0
Reply
Nevron Support
Nevron Support
posted 12 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hello Jarrett,
To be able to display NStrokeStyleTypeEditor when an object which has property of type NStrokeStyle is put in a PropertyGrid you need to set Editor attribute to this property which specifies the editor.
Here is an example class.
public class Test
{
[Editor(typeof(NStrokeStyleTypeEditor), typeof(UITypeEditor))]
public NStrokeStyle StrokeStyle
{
get
{
return m_StrokeStyle;
}
set
{
m_StrokeStyle = value;
}
}
private NStrokeStyle m_StrokeStyle;
}
I hope this helps.
Best Regards,
Nevron Support Team
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
C# Winform example with property pages
Jarrett Robertson
-
12 Years Ago
Hello Jarrett, To be able to display NStrokeStyleTypeEditor when an...
Nevron Support
-
12 Years Ago
Sorry for the late reply. I recently was able to implement the code...
Jarrett Robertson
-
12 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search