Sun. Aug. 29, 2004 5:00 PM PT
I have a user control class which defined as follows...
[event_source(managed)]
public __gc class MyControl : public UserControl {
//----
//-- other fields methods and properties.
//---
public:
__event EventHandler *PositionChanged; //this is the line where
designer has a problem
};
My problem is as soon I defined an event inside the class, designer will not
show the control. Although it shows while designing, but when I close the
solution and re-open it, it will not display the designer, where as it
compiles and run successfully, and user of this control will also get this
event in their property sheet. But I still have the DESIGNER Problem. When I
comment this line designer will show, but will not compile the program,
because, PositionChanged identifier not found.
Am I doing anything wrong. Any Idea.
Thanks.